[GRASS-dev] [GRASS GIS] #2552: GRASS 7.0 RC1 wxGUI: fails to launch in Spanish locale (UnicodeEncodeError)

GRASS GIS trac at osgeo.org
Mon Jan 19 01:30:04 PST 2015

#2552: GRASS 7.0 RC1 wxGUI: fails to launch in Spanish locale (UnicodeEncodeError)
 Reporter:  santipardo  |       Owner:  grass-dev@…              
     Type:  defect      |      Status:  new                      
 Priority:  normal      |   Milestone:  7.0.0                    
Component:  wxGUI       |     Version:  svn-releasebranch70      
 Keywords:              |    Platform:  Linux                    
      Cpu:  x86-64      |  
 With Spanish locale (es_ES.UTF-8), GRASS 7.0 RC1 doesn't launch. I have
 launched it perfectly in the same installation with locale en_US-UTF-8.
 The problem is happening since beta 4.0.


 Linux Mint 17.1
 $ locale | grep LANG


 Launching <wxpython> GUI in the background, please wait...
 Traceback (most recent call last):
   File "/usr/bin/grass70", line 1461, in <module>
   File "/usr/bin/grass70", line 1122, in bash_startup
     _("3D raster MASK present")))
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xc1' in
 position 180: ordinal not in range(128)
 ERROR: Variable 'LOCATION_NAME' not set
 Traceback (most recent call last):
   File "/usr/lib/grass70/gui/wxpython/wxgui.py", line 37, in <module>
     from lmgr.frame import GMFrame
   File "/usr/lib/grass70/gui/wxpython/lmgr/frame.py", line 50, in <module>
     from lmgr.layertree        import LayerTree, LMIcons
   File "/usr/lib/grass70/gui/wxpython/lmgr/layertree.py", line 37, in
     from mapdisp.frame        import MapFrame
   File "/usr/lib/grass70/gui/wxpython/mapdisp/frame.py", line 65, in
     class MapFrame(SingleMapFrame):
   File "/usr/lib/grass70/gui/wxpython/mapdisp/frame.py", line 71, in
     page = None, Map = Map(), auimgr = None, name = 'MapWindow',
   File "/usr/lib/grass70/gui/wxpython/core/render.py", line 408, in
     self.mapfile = grass.tempfile(create = False) + '.ppm'
   File "/usr/lib/grass70/etc/python/grass/script/core.py", line 704, in
     return read_command("g.tempfile", flags=flags,
   File "/usr/lib/grass70/etc/python/grass/script/core.py", line 427, in
     return handle_errors(returncode, stdout, args, kwargs)
   File "/usr/lib/grass70/etc/python/grass/script/core.py", line 310, in
 grass.exceptions.CalledModuleError: Module run None ['g.tempfile', '-d',
 'pid=2237'] ended with error
 Process ended with non-zero return code 1. See errors in the (error)

Ticket URL: <https://trac.osgeo.org/grass/ticket/2552>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list