[GRASS-dev] [GRASS GIS] #3405: encoding issue when launching modules (was: g.search.modules: 'ascii' codec can't encode character u'\xe0' in position 11: ordinal not in range(128))
GRASS GIS
trac at osgeo.org
Mon Aug 21 09:40:41 PDT 2017
#3405: encoding issue when launching modules
--------------------------+---------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.2
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: g.search.modules encoding
CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------------
Comment (by mlennert):
Apparently this is a larger issue:
{{{
i.segment --ui
Traceback (most recent call last):
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/gui_core/forms.py", line 2995, in <module>
task.get_cmd(ignoreErrors=True, ignoreRequired=True))
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/task.py", line 248, in get_cmd
errList = self.get_cmd_error()
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/task.py", line 208, in get_cmd_error
{'name': p['name'], 'desc': encode(desc)})
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/utils.py", line 217, in encode
return bytes(string)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
position 29: ordinal not in range(128)
}}}
{{{
v.lrs.create --ui
Traceback (most recent call last):
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/gui_core/forms.py", line 2995, in <module>
task.get_cmd(ignoreErrors=True, ignoreRequired=True))
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/task.py", line 248, in get_cmd
errList = self.get_cmd_error()
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/task.py", line 208, in get_cmd_error
{'name': p['name'], 'desc': encode(desc)})
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/utils.py", line 217, in encode
return bytes(string)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
position 36: ordinal not in range(128)
}}}
{{{
r.surf.idw --ui
Traceback (most recent call last):
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/gui/wxpython/gui_core/forms.py", line 2995, in <module>
task.get_cmd(ignoreErrors=True, ignoreRequired=True))
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/task.py", line 248, in get_cmd
errList = self.get_cmd_error()
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/task.py", line 208, in get_cmd_error
{'name': p['name'], 'desc': encode(desc)})
File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/utils.py", line 217, in encode
return bytes(string)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
position 35: ordinal not in range(128)
}}}
Interestingly, for all these modules no GUI window is created
automatically if they are launched without '--ui' from the command line. I
have the feeling this is new.
When I launch the modules from the GUI menu, I get a window with the error
message, but clicking 'OK' lets me use the module normally.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3405#comment:1>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list