[GRASS-dev] no more GRASS 7 for Mac

Michael Barton Michael.Barton at asu.edu
Fri Aug 9 16:47:28 PDT 2013


I wanted to compile GRASS 7 again to post new binaries. But now the workaround that Anna and I worked out a couple months back no longer works.

In the workaround, I start GRASS 7 and let it crash back to the terminal. Then I cd to ../gui/wxpython and run…

python core/toolboxes.py > xml/menudata.xml

This builds a new menudata.xml file.

That still works. But when I try to launch the GUI, I get the following error.


GRASS 7.0.svn (spain_utm_ed50z30):/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython > g.gui
Launching <wxpython> GUI in the background, please wait...
Traceback (most recent call last):
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/wxgui.py", line 143, in <module>
    sys.exit(main())
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/wxgui.py", line 136, in main
    app = GMApp(workspaceFile)
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/wxgui.py", line 50, in __init__
    wx.App.__init__(self, False)
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/python/wx/_core.py", line 7981, in __init__
    self._BootstrapApp()
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/python/wx/_core.py", line 7555, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/wxgui.py", line 84, in OnInit
    workspace = self.workspaceFile)
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/lmgr/frame.py", line 110, in __init__
    self._moduleTreeBuilder = LayerManagerModuleTree()
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/lmgr/menudata.py", line 62, in __init__
    MenuTreeModelBuilder.__init__(self, filename, expandAddons=expandAddons)
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/menutree.py", line 69, in __init__
    xmlTree = etree.parse(filename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/etree/ElementTree.py", line 862, in parse
    tree.parse(source, parser)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/etree/ElementTree.py", line 586, in parse
    parser.feed(data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/etree/ElementTree.py", line 1245, in feed
    self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0
GRASS 7.0.svn (spain_utm_ed50z30):/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython >


So whatever has been done since 25 June, when I last did this successfully, has broken it further. Perhaps that can help you guys figure out what is going wrong.

Note that this may work with Python 2.7 and wxPython 2.9 unstable (that's what you used in the Spring I believe). But is does not work with the stock Mac Python 2.6 and wxPython 2.8 any more. That is a problem for users of Mac OS X 10.6 unless installing MacPython 2.7 will solve it.

Michael

______________________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
Tempe, AZ  85287-2402
USA

voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)
www:  http://csdc.asu.edu, http://shesc.asu.edu
http://www.public.asu.edu/~cmbarton

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130809/70a2348c/attachment.html>


More information about the grass-dev mailing list