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

I just compiled GRASS 7 Trunk.

It crashes on startup with the following error:

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
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 (SHESC), 480-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

Hi Michael,

···

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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
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 (SHESC), 480-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


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

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

···

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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
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 (SHESC), 480-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


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

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@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 (SHESC), 480-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

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

Hi Michael,

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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
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 (SHESC), 480-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


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

There are the same (bogus?) errors for the set of tools that need separate windows that have been showing up for months. No others.

I’m away from my office computer for the next several weeks while I am in Europe. I might be able to get on remotely or recompile on my MB Air to answer your question.

Michael

···

On Mon, May 13, 2013 at 10:51 PM, Michael Barton <Michael.Barton@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 (SHESC), 480-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

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

Hi Michael,

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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
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 (SHESC), 480-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


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

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.

Michael

···

On Mon, May 13, 2013 at 10:51 PM, Michael Barton <Michael.Barton@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 (SHESC), 480-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

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

Hi Michael,

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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
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 (SHESC), 480-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


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Mon, May 13, 2013 at 11:51 PM, Michael Barton <Michael.Barton@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.

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 13, 2013, at 2:18 PM, Anna Petrášová <kratochanna@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@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 (SHESC), 480-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

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

  Hi Michael,

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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 (SHESC), 480-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

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hi Michael,

···

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

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

Anna

On Mon, May 13, 2013 at 11:51 PM, Michael Barton <Michael.Barton@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.

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 13, 2013, at 2:18 PM, Anna Petrášová <kratochanna@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@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 (SHESC), 480-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

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

Hi Michael,

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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
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 (SHESC), 480-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


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

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

···

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

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

Anna

On Mon, May 13, 2013 at 11:51 PM, Michael Barton <Michael.Barton@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.

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 13, 2013, at 2:18 PM, Anna Petrášová <kratochanna@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@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 (SHESC), 480-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

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

Hi Michael,

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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
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 (SHESC), 480-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


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hi,

is one week now that i’m testing a grass7 build, using wx cocoa (svn version built from source)

i’m really happy to say that almost everything is working fine!

… few debug reported here :

  • profile tool :
    – the pen widget doesn’t draw a line and no profile is plotted but …
    if i select the “measure tool” make a measurement and then without quitting the measurement tool (boucle click on the canvas) i open the profile tool … then the profile is plotted correctly

  • add text layer :
    – doesn’t change the font size

  • map composer run but doesn’t have a toolbar

nothing is printed in the shell during the guy session, should i set some env var to have more verbose

  • nviz doesn’t render the 3d canvas, but there is no crash :slight_smile: , the rendering-progress-bar load , this the log in the wx console

Traceback (most recent call last):
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 366, in OnPaint

self.DoPaint()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 406, in DoPaint

self.UpdateMap()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 1166, in UpdateMap

self.SwapBuffers()
File “/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-
packages/wx-2.9.4-osx_cocoa/wx/glcanvas.py”, line 124, in
SwapBuffers

return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
wx._core
.
PyAssertionError
:
C++ assertion “context” failed at /BUILD/wxPython-
src-2.9.4.0/src/osx/cocoa/glcanvas.mm(289) in SwapBuffers():
should have current context

if there is something i can do to do more testing i will be happy to work on it.

p.s.
with wx 2.9 we have great webkit support
@Anna have already tried to work on webkit in wx ?
i will start to investigate this to see how to add a new tab to include the Ipython notebook
if of interest, at this link there is a simple pyqt app that does something similar :

https://github.com/damianavila/vIPer/blob/master/viper.py

Massimo.

Hi,

···

On Mon, May 20, 2013 at 3:37 PM, epi <massimodisasha@gmail.com> wrote:

Hi,

is one week now that i’m testing a grass7 build, using wx cocoa (svn version built from source)

i’m really happy to say that almost everything is working fine!

glad to hear that, I quickly tested wxGUI some time ago on wxPython 2.9 on linux so the most apparent bugs should be fixed. Unfortunately most bugs you listed here are not reproducible on my ubuntu with 2.9 classic wxPython.

… few debug reported here :

  • profile tool :
    – the pen widget doesn’t draw a line and no profile is plotted but …
    if i select the “measure tool” make a measurement and then without quitting the measurement tool (boucle click on the canvas) i open the profile tool … then the profile is plotted correctly

hm, I don’t have this behavior, it’s working properly. The only problem is that the dashed line does not disappear after rerendering.

  • add text layer :
    – doesn’t change the font size
  • map composer run but doesn’t have a toolbar

again, both work for me

nothing is printed in the shell during the guy session, should i set some env var to have more verbose

this is normal, everything goes to gui command console, only when you switch to debug mode it goes to terminal

  • nviz doesn’t render the 3d canvas, but there is no crash :slight_smile: , the rendering-progress-bar load , this the log in the wx console

please try again, I just updated the code for 2.9

Traceback (most recent call last):
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 366, in OnPaint

self.DoPaint()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 406, in DoPaint

self.UpdateMap()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 1166, in UpdateMap

self.SwapBuffers()
File “/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-
packages/wx-2.9.4-osx_cocoa/wx/glcanvas.py”, line 124, in
SwapBuffers

return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
wx._core
.
PyAssertionError
:
C++ assertion “context” failed at /BUILD/wxPython-
src-2.9.4.0/src/osx/cocoa/glcanvas.mm(289) in SwapBuffers():
should have current context

if there is something i can do to do more testing i will be happy to work on it.

I cannot do much about the bugs which I can’t reproduce, especially when there is no error…

p.s.
with wx 2.9 we have great webkit support
@Anna have already tried to work on webkit in wx ?

not yet, I probably missed something when I compiled wx 2.9, it was not working and then I didn’t try again.

Thanks and keep testing:)

Anna

i will start to investigate this to see how to add a new tab to include the Ipython notebook
if of interest, at this link there is a simple pyqt app that does something similar :

https://github.com/damianavila/vIPer/blob/master/viper.py

Massimo.

thanks Anna!

that’s my bathymetry

http://geofemengineering.it//data/nviz_mac_wx-29_cocoa.png

I tried to changing resolution, use the slope map as color, light settings and other tools , everything was working properly :slight_smile:

few question :

is it possible to “unlock” the layer manager and the map display so that when i move the layer manager the map window doesn’t move with it ?

an important bug:

i was looking for possible options in the preference settings to unlock the movement of mapdispaly when the layer manager is mived,
but i had to force quit the gui every time i tried to do something in that panel

when i click on “apply” in the console i have :
Settings applied to current session but not saved

then the gui is no more responsive and i forced it to quit

… will be nice to be able to set the transparence for the fringe panels :slight_smile:

i’ll try to export the verbose debug ant test again all the other widgets.

and generate more useful logs,

thanks

Massimo.

···

On Mon, May 20, 2013 at 3:37 PM, epi <massimodisasha@gmail.com> wrote:

Hi,

is one week now that i’m testing a grass7 build, using wx cocoa (svn version built from source)

i’m really happy to say that almost everything is working fine!

glad to hear that, I quickly tested wxGUI some time ago on wxPython 2.9 on linux so the most apparent bugs should be fixed. Unfortunately most bugs you listed here are not reproducible on my ubuntu with 2.9 classic wxPython.

… few debug reported here :

  • profile tool :
    – the pen widget doesn’t draw a line and no profile is plotted but …
    if i select the “measure tool” make a measurement and then without quitting the measurement tool (boucle click on the canvas) i open the profile tool … then the profile is plotted correctly

hm, I don’t have this behavior, it’s working properly. The only problem is that the dashed line does not disappear after rerendering.

  • add text layer :
    – doesn’t change the font size
  • map composer run but doesn’t have a toolbar

again, both work for me

nothing is printed in the shell during the guy session, should i set some env var to have more verbose

this is normal, everything goes to gui command console, only when you switch to debug mode it goes to terminal

  • nviz doesn’t render the 3d canvas, but there is no crash :slight_smile: , the rendering-progress-bar load , this the log in the wx console

please try again, I just updated the code for 2.9

Traceback (most recent call last):
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 366, in OnPaint

self.DoPaint()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 406, in DoPaint

self.UpdateMap()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 1166, in UpdateMap

self.SwapBuffers()
File “/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-
packages/wx-2.9.4-osx_cocoa/wx/glcanvas.py”, line 124, in
SwapBuffers

return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
wx._core
.
PyAssertionError
:
C++ assertion “context” failed at /BUILD/wxPython-
src-2.9.4.0/src/osx/cocoa/glcanvas.mm(289) in SwapBuffers():
should have current context

if there is something i can do to do more testing i will be happy to work on it.

I cannot do much about the bugs which I can’t reproduce, especially when there is no error…

p.s.
with wx 2.9 we have great webkit support
@Anna have already tried to work on webkit in wx ?

not yet, I probably missed something when I compiled wx 2.9, it was not working and then I didn’t try again.

Thanks and keep testing:)

Anna

i will start to investigate this to see how to add a new tab to include the Ipython notebook
if of interest, at this link there is a simple pyqt app that does something similar :

https://github.com/damianavila/vIPer/blob/master/viper.py

Massimo.

On Mon, May 20, 2013 at 8:21 PM, epi <massimodisasha@gmail.com> wrote:

thanks Anna!

that's my bathymetry

http://geofemengineering.it//data/nviz_mac_wx-29_cocoa.png

I tried to changing resolution, use the slope map as color, light settings
and other tools , everything was working properly :slight_smile:

few question :

is it possible to "unlock" the layer manager and the map display so that
when i move the layer manager the map window doesn't move with it ?

this behavior is only on Mac. Do also other multiple-window applications
behave this way (like gimp)?

an important bug:

i was looking for possible options in the preference settings to unlock
the movement of mapdispaly when the layer manager is mived,
but i had to force quit the gui every time i tried to do something in that
panel

when i click on "apply" in the console i have :
Settings applied to current session but not saved

then the gui is no more responsive and i forced it to quit

it is working for me. I have no idea and probably debug messages won't help
much. You could put some print statements in the code to localize more the
problem (starting at gui_core/preferences.py).

.. will be nice to be able to set the transparence for the fringe panels
:slight_smile:

I see

i'll try to export the verbose debug ant test again all the other widgets.

thanks again.

BTW, Michael Barton has had recently problem to start grass 7 wxGUI due to
new (a few weeks ago) toolboxes system (for menu customization). You
doesn't seem to have any problem, is that right?

Anna

and generate more useful logs,

thanks

Massimo.

Il giorno 20/mag/2013, alle ore 13:20, Anna Petrášová <
kratochanna@gmail.com> ha scritto:

Hi,

On Mon, May 20, 2013 at 3:37 PM, epi <massimodisasha@gmail.com> wrote:

Hi,

is one week now that i'm testing a grass7 build, using wx cocoa (svn
version built from source)

i'm really happy to say that almost everything is working fine!

glad to hear that, I quickly tested wxGUI some time ago on wxPython 2.9

on linux so the most apparent bugs should be fixed. Unfortunately most bugs
you listed here are not reproducible on my ubuntu with 2.9 classic wxPython.

.. few debug reported here :

- profile tool :
-- the pen widget doesn't draw a line and no profile is plotted but ...
            if i select the "measure tool" make a measurement and then
without quitting the measurement tool (boucle click on the canvas) i open
the profile tool .. then the profile is plotted correctly

hm, I don't have this behavior, it's working properly. The only problem is
that the dashed line does not disappear after rerendering.

- add text layer :

        -- doesn't change the font size

- map composer run but doesn't have a toolbar

again, both work for me

nothing is printed in the shell during the guy session, should i set some
env var to have more verbose

this is normal, everything goes to gui command console, only when you
switch to debug mode it goes to terminal

- nviz doesn't render the 3d canvas, but there is no crash :slight_smile: , the
rendering-progress-bar load , this the log in the wx console

please try again, I just updated the code for 2.9

Traceback (most recent call last):
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py", line 366, in OnPaint

self.DoPaint()
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py", line 406, in DoPaint

self.UpdateMap()
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py", line 1166, in UpdateMap

self.SwapBuffers()
  File "/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-
packages/wx-2.9.4-osx_cocoa/wx/glcanvas.py", line 124, in
SwapBuffers

return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
wx._core
.
PyAssertionError
:
C++ assertion "context" failed at /BUILD/wxPython-
src-2.9.4.0/src/osx/cocoa/glcanvas.mm(289) in SwapBuffers():
should have current context

if there is something i can do to do more testing i will be happy to work
on it.

I cannot do much about the bugs which I can't reproduce, especially when
there is no error...

p.s.
with wx 2.9 we have great webkit support
@Anna have already tried to work on webkit in wx ?

not yet, I probably missed something when I compiled wx 2.9, it was not
working and then I didn't try again.

Thanks and keep testing:)

Anna

i will start to investigate this to see how to add a new tab to include
the Ipython notebook
if of interest, at this link there is a simple pyqt app that does
something similar :

https://github.com/damianavila/vIPer/blob/master/viper.py

Massimo.

I tryied GIMP 2.8.2 it doesn’t have this behavior

i try to hack in it … everything happen after is printed : “Settings applied to current session but not saved”
i’ll let you kn ow if i found something

:slight_smile:

no i do not have any problem to start it, what i didn’t tried is the main wizard at start … because i set txt in the gisrc preference as default mode, i’ll try to change to wx and see if any problem comes up

manu thanks!

Massimo

···

On Mon, May 20, 2013 at 8:21 PM, epi <massimodisasha@gmail.com> wrote:

thanks Anna!

that’s my bathymetry

http://geofemengineering.it//data/nviz_mac_wx-29_cocoa.png

I tried to changing resolution, use the slope map as color, light settings and other tools , everything was working properly :slight_smile:

few question :

is it possible to “unlock” the layer manager and the map display so that when i move the layer manager the map window doesn’t move with it ?

this behavior is only on Mac. Do also other multiple-window applications behave this way (like gimp)?

an important bug:

i was looking for possible options in the preference settings to unlock the movement of mapdispaly when the layer manager is mived,
but i had to force quit the gui every time i tried to do something in that panel

when i click on “apply” in the console i have :
Settings applied to current session but not saved

then the gui is no more responsive and i forced it to quit

it is working for me. I have no idea and probably debug messages won’t help much. You could put some print statements in the code to localize more the problem (starting at gui_core/preferences.py).

… will be nice to be able to set the transparence for the fringe panels :slight_smile:

I see

i’ll try to export the verbose debug ant test again all the other widgets.

thanks again.

BTW, Michael Barton has had recently problem to start grass 7 wxGUI due to new (a few weeks ago) toolboxes system (for menu customization). You doesn’t seem to have any problem, is that right?

Anna

and generate more useful logs,

thanks

Massimo.

Il giorno 20/mag/2013, alle ore 13:20, Anna Petrášová <kratochanna@gmail.com> ha scritto:

Hi,

On Mon, May 20, 2013 at 3:37 PM, epi <massimodisasha@gmail.com> wrote:

Hi,

is one week now that i’m testing a grass7 build, using wx cocoa (svn version built from source)

i’m really happy to say that almost everything is working fine!

glad to hear that, I quickly tested wxGUI some time ago on wxPython 2.9 on linux so the most apparent bugs should be fixed. Unfortunately most bugs you listed here are not reproducible on my ubuntu with 2.9 classic wxPython.

… few debug reported here :

  • profile tool :
    – the pen widget doesn’t draw a line and no profile is plotted but …
    if i select the “measure tool” make a measurement and then without quitting the measurement tool (boucle click on the canvas) i open the profile tool … then the profile is plotted correctly

hm, I don’t have this behavior, it’s working properly. The only problem is that the dashed line does not disappear after rerendering.

  • add text layer :
    – doesn’t change the font size
  • map composer run but doesn’t have a toolbar

again, both work for me

nothing is printed in the shell during the guy session, should i set some env var to have more verbose

this is normal, everything goes to gui command console, only when you switch to debug mode it goes to terminal

  • nviz doesn’t render the 3d canvas, but there is no crash :slight_smile: , the rendering-progress-bar load , this the log in the wx console

please try again, I just updated the code for 2.9

Traceback (most recent call last):
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 366, in OnPaint

self.DoPaint()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 406, in DoPaint

self.UpdateMap()
File “/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py”, line 1166, in UpdateMap

self.SwapBuffers()
File “/usr/local/lib/wxPython-2.9.4.0/lib/python2.7/site-
packages/wx-2.9.4-osx_cocoa/wx/glcanvas.py”, line 124, in
SwapBuffers

return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
wx._core
.
PyAssertionError
:
C++ assertion “context” failed at /BUILD/wxPython-
src-2.9.4.0/src/osx/cocoa/glcanvas.mm(289) in SwapBuffers():
should have current context

if there is something i can do to do more testing i will be happy to work on it.

I cannot do much about the bugs which I can’t reproduce, especially when there is no error…

p.s.
with wx 2.9 we have great webkit support
@Anna have already tried to work on webkit in wx ?

not yet, I probably missed something when I compiled wx 2.9, it was not working and then I didn’t try again.

Thanks and keep testing:)

Anna

i will start to investigate this to see how to add a new tab to include the Ipython notebook
if of interest, at this link there is a simple pyqt app that does something similar :

https://github.com/damianavila/vIPer/blob/master/viper.py

Massimo.

Anna,

Still crashes.

See below.

···

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

On Mon, May 13, 2013 at 11:51 PM, Michael Barton <Michael.Barton@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

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

Anna

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

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 13, 2013, at 2:18 PM, Anna Petrášová <kratochanna@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@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 (SHESC), 480-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

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

Hi Michael,

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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
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 (SHESC), 480-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


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

I haven't been following this very well but grass7 crashes for me with the following error:

ERROR: wxGUI requires wxPython >= 2.8.10.1. Your wxPython version is 2.8.8.1.

so I guess I need to get wxPython2.9?

Helena

Helena Mitasova
Associate Professor
Department of Marine, Earth, and Atmospheric Sciences
2800 Faucette Drive, Rm. 1125 Jordan Hall
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

On Jun 4, 2013, at 7:40 PM, Michael Barton wrote:

Anna,

Still crashes.

See below.
______________________________
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-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

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

Hi Michael,

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

On Mon, May 13, 2013 at 11:51 PM, Michael Barton <Michael.Barton@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

I assumed that you want me to run this from the GRASS terminal prompt???

python core/toolboxes.py > xml/menudata.xml
bash: xml/menudata.xml: No such file or directory

Michael

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 (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 13, 2013, at 2:18 PM, Anna Petrášová <kratochanna@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@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 (SHESC), 480-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

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

Hi Michael,

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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 (SHESC), 480-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

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

AFAIK, this is not needed. My binaries come packaged with wxpython.

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 Jun 5, 2013, at 7:51 AM, Helena Mitasova <hmitaso@ncsu.edu>
wrote:

I haven't been following this very well but grass7 crashes for me with the following error:

ERROR: wxGUI requires wxPython >= 2.8.10.1. Your wxPython version is 2.8.8.1.

so I guess I need to get wxPython2.9?

Helena

Helena Mitasova
Associate Professor
Department of Marine, Earth, and Atmospheric Sciences
2800 Faucette Drive, Rm. 1125 Jordan Hall
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

On Jun 4, 2013, at 7:40 PM, Michael Barton wrote:

Anna,

Still crashes.

See below.
______________________________
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-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

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

Hi Michael,

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

On Mon, May 13, 2013 at 11:51 PM, Michael Barton <Michael.Barton@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

I assumed that you want me to run this from the GRASS terminal prompt???

python core/toolboxes.py > xml/menudata.xml
bash: xml/menudata.xml: No such file or directory

Michael

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 (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 13, 2013, at 2:18 PM, Anna Petrášová <kratochanna@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@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 (SHESC), 480-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

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

Hi Michael,

On Mon, May 13, 2013 at 9:52 PM, Michael Barton <Michael.Barton@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 (SHESC), 480-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

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

Hi,

On Wed, Jun 5, 2013 at 1:40 AM, Michael Barton <Michael.Barton@asu.edu>wrote:

Anna,

Still crashes.

See below.

On Mon, May 13, 2013 at 11:51 PM, Michael Barton <Michael.Barton@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

I assumed that you want me to run this from the GRASS terminal prompt???

yes. Have you run this from gui/wxpython directory? At least xml directory
must be there.

python core/toolboxes.py > xml/menudata.xml
bash: xml/menudata.xml: No such file or directory

It's strange that Massimo recently compiled grass7 (with wxpython 2.9, but
it should not be related, no gui is actually involved in this problem) and
he didn't complain about this (Massimo, is that right?).

Anna

OK. We are getting somewhere.

If I cd to the …/gui/wxpython directory inside the GRASS-7.0.app and run python core/toolboxes.py > xml/menudata.xml, it appears to create the menudata.xml file

GRASS then launches fine. It continues to launch fine subsequently.

Michael

···

Hi,

On Wed, Jun 5, 2013 at 1:40 AM, Michael Barton <Michael.Barton@asu.edu> wrote:

Anna,

Still crashes.

See below.

I assumed that you want me to run this from the GRASS terminal prompt???

yes. Have you run this from gui/wxpython directory? At least xml directory must be there.

python core/toolboxes.py > xml/menudata.xml
bash: xml/menudata.xml: No such file or directory

It’s strange that Massimo recently compiled grass7 (with wxpython 2.9, but it should not be related, no gui is actually involved in this problem) and he didn’t complain about this (Massimo, is that right?).

Anna

On Mon, May 13, 2013 at 11:51 PM, Michael Barton <Michael.Barton@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

On Wed, Jun 5, 2013 at 9:59 PM, Michael Barton <Michael.Barton@asu.edu>wrote:

OK. We are getting somewhere.

If I cd to the ../gui/wxpython directory inside the GRASS-7.0.app and
run python core/toolboxes.py > xml/menudata.xml, it appears to create the
menudata.xml file

GRASS then launches fine. It continues to launch fine subsequently.

Hm, so the problem is probably in the Makefile. Could you send me the whole
make output (after make distclean)? Unfortunately I have very limited
understanding of makefile rules, I was glad I made it work on my computer.
At least you can use grass7 with this workaround now.

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 (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 Jun 5, 2013, at 12:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

Hi,

On Wed, Jun 5, 2013 at 1:40 AM, Michael Barton <Michael.Barton@asu.edu>wrote:

Anna,

Still crashes.

See below.

On Mon, May 13, 2013 at 11:51 PM, Michael Barton <Michael.Barton@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

I assumed that you want me to run this from the GRASS terminal prompt???

yes. Have you run this from gui/wxpython directory? At least xml directory
must be there.

python core/toolboxes.py > xml/menudata.xml
bash: xml/menudata.xml: No such file or directory

It's strange that Massimo recently compiled grass7 (with wxpython 2.9, but
it should not be related, no gui is actually involved in this problem) and
he didn't complain about this (Massimo, is that right?).

Anna