[GRASS-dev] [GRASS GIS] #3692: The python gcore message() function does not work in 7.4.2

GRASS GIS trac at osgeo.org
Tue Nov 6 04:56:38 PST 2018


#3692: The python gcore message() function does not work in 7.4.2
-----------------------------+-------------------------
 Reporter:  micha            |      Owner:  grass-dev@…
     Type:  defect           |     Status:  new
 Priority:  normal           |  Milestone:  7.4.3
Component:  Default          |    Version:  7.4.2
 Keywords:  message, python  |        CPU:  Unspecified
 Platform:  Unspecified      |
-----------------------------+-------------------------
 Printing messages (warning, error, info) in a python script using GRASS
 7.4.2 gives no output.

 {{{
 GRASS 7.4.2 (ITM):~ > ipython2
 Python 2.7.12 (default, Dec  4 2017, 14:50:18)
 Type "copyright", "credits" or "license" for more information.

 IPython 5.1.0 -- An enhanced Interactive Python.
 ?         -> Introduction and overview of IPython's features.
 %quickref -> Quick reference.
 help      -> Python's own help system.
 object?   -> Details about 'object', use 'object??' for extra details.
  In [1]: import grass.script as gs
  In [2]: gs.message("Hello")
  In [3]: gs.warning("Hello")
  In [4]: print("Hello")
  Hello
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3692>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list