[GRASS-dev] [GRASS GIS] #3867: menudata.py: global name 'error_handler' is not defined
GRASS GIS
trac at osgeo.org
Tue Jul 9 01:38:00 PDT 2019
#3867: menudata.py: global name 'error_handler' is not defined
--------------------------+-------------------------
Reporter: marisn | Owner: wenzeslaus
Type: defect | Status: assigned
Priority: normal | Milestone:
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords:
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Comment (by marisn):
Replying to [comment:1 annakrat]:
> The fix is rather simple, but could you please test
https://github.com/OSGeo/grass/pull/43? I was not able to test and I
wonder why do you get that error at all.
Yes, whit this fix it is possible to get one step further:
{{{
/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
UserWarning: wxPython/wxWidgets release number mismatch
warnings.warn("wxPython/wxWidgets release number mismatch")
r.agent: Unable to fetch interface description for command '<r.agent>'.
Details: <[Errno 2] No such file or directory>
r.agent: Unable to fetch interface description for command '<r.agent>'.
Details: <[Errno 2] No such file or directory>
Traceback (most recent call last):
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/gui/wxpython/wxgui.py", line 172, in <module>
sys.exit(main())
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/gui/wxpython/wxgui.py", line 159, in main
app = GMApp(workspaceFile)
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/gui/wxpython/wxgui.py", line 53, in __init__
wx.App.__init__(self, False)
File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line
8628, in __init__
self._BootstrapApp()
File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line
8196, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/gui/wxpython/wxgui.py", line 106, in OnInit
workspace=self.workspaceFile)
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/gui/wxpython/lmgr/frame.py", line 131, in __init__
self._moduleTreeBuilder =
LayerManagerModuleTree(message_handler=add_menu_error)
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/gui/wxpython/lmgr/menudata.py", line 73, in __init__
self, fallback, message_handler=message_handler)
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/menutree.py", line 73, in __init__
expAddons(xmlTree)
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/toolboxes.py", line 363, in expandAddons
_expandRuntimeModules(root, loadMetadata=True)
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/toolboxes.py", line 626, in _expandRuntimeModules
desc, keywords = _loadMetadata(name)
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/toolboxes.py", line 663, in _loadMetadata
task = gtask.parse_interface(module)
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/task.py", line 521, in parse_interface
tree = etree.fromstring(get_interface_description(name))
File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
gnu/etc/python/grass/script/task.py", line 497, in
get_interface_description
"\n\nDetails: <{det}>".format(cmd=cmd, det=decode(cmderr))))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2:
ordinal not in range(128)
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3867#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list