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

GRASS GIS trac at osgeo.org
Mon Jul 8 04:28:35 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
 Keywords:               |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+-------------------------
 Some imports missing? Tested with f79c3568d69f2d706b9c9383a0a3e188d2137b0b

 {{{
 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 70, in __init__
     error_handler(_("Unable to parse user toolboxes XML files. "
 NameError: global name 'error_handler' is not defined
 }}}

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



More information about the grass-dev mailing list