[GRASS-dev] GRASS 7 crashes on startup on Mac

Michael Barton Michael.Barton at asu.edu
Mon May 20 04:00:41 PDT 2013


Hi Anna,

Thanks for the reminder. Just got set up here in Valencia and starting the course today. So it will be a few days at best before I can try to compile this on my MacBook Air.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

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











On May 20, 2013, at 9:06 AM, Anna Petrášová <kratochanna at gmail.com<mailto:kratochanna at gmail.com>> wrote:

Hi Michael,


On Tue, May 14, 2013 at 12:32 AM, Anna Petrášová <kratochanna at gmail.com<mailto:kratochanna at gmail.com>> wrote:



On Mon, May 13, 2013 at 11:51 PM, Michael Barton <Michael.Barton at asu.edu<mailto:Michael.Barton at asu.edu>> wrote:
Perhaps I discovered the problem. Both the distribution version (downloaded in the past hour) and (of course) the compiled version of menudata.xml are empty.

Yes, that's what I was thinking. Could you try to run this separately:

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

which should be done during compilation but it seems to fail somehow. It should generate the xml menu file.

any update? I know you announced to be out of office but maybe you can try it anyway?

Anna



Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

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











On May 13, 2013, at 2:18 PM, Anna Petrášová <kratochanna at gmail.com<mailto:kratochanna at gmail.com>>
 wrote:

There might be a problem with compilation. Is there any error? Could you check file menudata.xml in gui/wxpython/xml/ and the same file in distribution? Is it there and what's inside?


On Mon, May 13, 2013 at 10:51 PM, Michael Barton <Michael.Barton at asu.edu<mailto:Michael.Barton at asu.edu>> wrote:
Anna,

I deleted all the GUI code and did a new svn up and make distclean.

Just finished compiling and have the same error on startup. The GUI crashes.


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<tel:480-965-6262> (SHESC), 480-727-9746<tel:480-727-9746> (CSDC)
fax:          480-965-7671<tel:480-965-7671>(SHESC), 480-727-0709<tel:480-727-0709> (CSDC)
www:  http://csdc.asu.edu<http://csdc.asu.edu/>, http://shesc.asu.edu<http://shesc.asu.edu/>
http://www.public.asu.edu/~cmbarton

On May 13, 2013, at 1:23 PM, Anna Petrášová <kratochanna at gmail.com<mailto:kratochanna at gmail.com>>
 wrote:

Hi Michael,


On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton at asu.edu<mailto:Michael.Barton at asu.edu>> wrote:
I just compiled GRASS 7 Trunk.

It crashes on startup with the following error:

this is related to the new toolboxes and menu customization. I don't know what is wrong because it was tested successfully also on Windows. Could you check what you have in directory toolboxes which should be in the same folder as saved settings file? Also try make distclean or just make clean in gui/wxpython and remove manually the gui files from distribution.

Anna


GRASS 7.0.svn (nc_spm_08):~ > 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 140, 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 133, 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 45, 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 79, 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 106, in __init__
    self._menuTreeBuilder = LayerManagerMenuData()
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/lmgr/menudata.py", line 31, in __init__
    MenuTreeModelBuilder.__init__(self, filename)
  File "/Users/Shared/grass_dev/grass7_dev/macosx/dist/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/menutree.py", line 61, 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 587, in parse
    self._root = parser.close()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/etree/ElementTree.py", line 1254, in close
    self._parser.Parse("", 1) # end of data
xml.parsers.expat.ExpatError: no element found: line 1, column 0

No changes on my end since compiling it without a problem a week ago.

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<tel:480-965-6262> (SHESC), 480-727-9746<tel:480-727-9746> (CSDC)
fax:          480-965-7671<tel:480-965-7671>(SHESC), 480-727-0709<tel:480-727-0709> (CSDC)
www:  http://csdc.asu.edu<http://csdc.asu.edu/>, http://shesc.asu.edu<http://shesc.asu.edu/>
http://www.public.asu.edu/~cmbarton


_______________________________________________
grass-dev mailing list
grass-dev at lists.osgeo.org<mailto:grass-dev at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/grass-dev







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130520/ee721931/attachment-0001.html>


More information about the grass-dev mailing list