[GRASS-dev] [GRASS GIS] #3867: menudata.py: global name 'error_handler' is not defined

GRASS GIS trac at osgeo.org
Tue Jul 16 12:23:13 PDT 2019


#3867: menudata.py: global name 'error_handler' is not defined
--------------------------+-------------------------
  Reporter:  marisn       |      Owner:  wenzeslaus
      Type:  defect       |     Status:  reopened
  Priority:  normal       |  Milestone:  7.4.5
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by marisn):

 Replying to [comment:8 annakrat]:
 > I still can't reproduce it but please try this:
 https://github.com/OSGeo/grass/pull/52

 It is a cat and mouse game now:

 {{{
 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 665, in _loadMetadata
     sys.stderr.write("%s: %s\n" % (module, e))
   File "/home/maris/soft/grass-main/dist.x86_64-pc-linux-
 gnu/etc/python/grass/exceptions/__init__.py", line 48, in __str__
     return str(self.value)
 UnicodeEncodeError: 'ascii' codec can't encode characters in position
 79-80: ordinal not in range(128)
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3867#comment:11>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list