[GRASS-dev] [GRASS GIS] #2498: yet another problem with GUI toolbox menu

GRASS GIS trac at osgeo.org
Fri Nov 21 13:46:12 PST 2014


#2498: yet another problem with GUI toolbox menu
---------------------------+------------------------------------------------
 Reporter:  cmbarton       |       Owner:  grass-dev@…              
     Type:  defect         |      Status:  new                      
 Priority:  normal         |   Milestone:  7.1.0                    
Component:  wxGUI          |     Version:  svn-trunk                
 Keywords:  menu tree xml  |    Platform:  Unspecified              
      Cpu:  OSX/Intel      |  
---------------------------+------------------------------------------------
 I just compiled from GRASS trunk. It compiles with the normal set of
 errors in GUI modules using a windowing class created a year or two back.
 Normally these do not have any impact on running. But it is again not
 generating XML file needed for the toolbox menu, probably because it is
 not finding wx again. Here is the error.

 Also, I thought trunk is supposed to be GRASS 7.0. But it is showing up as
 GRASS svn 7.1

 (((

 Welcome to GRASS 7.1.svn (r62850M)
 GRASS homepage:                          http://grass.osgeo.org
 This version running through:            Bash Shell (/bin/bash)
 Help is available with the command:      g.manual -i
 See the licence terms with:              g.version -c
 If required, restart the GUI with:       g.gui wxpython
 When ready to quit enter:                exit

 Launching <wxpython> GUI in the background, please wait...
 GRASS 7.1.svn (Penaguila):~ > Traceback (most recent call last):
   File
 "/Users/cmbarton/grass_source/grass_trunk/macosx/dist/GRASS-7.1.app/Contents/MacOS/gui/wxpython/wxgui.py",
 line 140, in <module>
     sys.exit(main())
   File
 "/Users/cmbarton/grass_source/grass_trunk/macosx/dist/GRASS-7.1.app/Contents/MacOS/gui/wxpython/wxgui.py",
 line 133, in main
     app = GMApp(workspaceFile)
   File
 "/Users/cmbarton/grass_source/grass_trunk/macosx/dist/GRASS-7.1.app/Contents/MacOS/gui/wxpython/wxgui.py",
 line 48, in __init__
     wx.App.__init__(self, False)
   File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-
 packages/wx-2.8-mac-unicode/wx/_core.py", line 7981, in __init__
     self._BootstrapApp()
   File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-
 packages/wx-2.8-mac-unicode/wx/_core.py", line 7555, in _BootstrapApp
     return _core_.PyApp__BootstrapApp(*args, **kwargs)
   File
 "/Users/cmbarton/grass_source/grass_trunk/macosx/dist/GRASS-7.1.app/Contents/MacOS/gui/wxpython/wxgui.py",
 line 82, in OnInit
     workspace = self.workspaceFile)
   File
 "/Users/cmbarton/grass_source/grass_trunk/macosx/dist/GRASS-7.1.app/Contents/MacOS/gui/wxpython/lmgr/frame.py",
 line 119, in __init__
     self._menuTreeBuilder = LayerManagerMenuData()
   File
 "/Users/cmbarton/grass_source/grass_trunk/macosx/dist/GRASS-7.1.app/Contents/MacOS/gui/wxpython/lmgr/menudata.py",
 line 40, in __init__
     MenuTreeModelBuilder.__init__(self, filename,
 expandAddons=expandAddons)
   File
 "/Users/cmbarton/grass_source/grass_trunk/macosx/dist/GRASS-7.1.app/Contents/MacOS/gui/wxpython/core/menutree.py",
 line 64, in __init__
     xmlTree = etree.parse(filename)
   File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 1182, in parse
     tree.parse(source, parser)
   File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 657, in parse
     self._root = parser.close()
   File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 1654, in close
     self._raiseerror(v)
   File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
 line 1506, in _raiseerror
     raise err
 xml.etree.ElementTree.ParseError: no element found: line 1, column 0

 )))

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2498>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list