[GRASS-dev] GRASS 6.6 trunk GUI doesn't open

I am using the GRASS6.4 on Ubuntu 10.04, installed from source (6.4.x release branch version) without problems. However, with the latest few revisions, including revision 42617, I can install GRASS, open the first screen to select location and mapset, but than the GUI doesn’t open and I am getting the following error message on the command line:


GRASS 6.4.0svn (latlon):~/Software/Spatial/GRASS/grass64_release > Traceback (most recent call last):
File “/usr/local/grass6.4.current/grass-6.4.0svn/etc/wxpython/wxgui.py”, line 1831, in
sys.exit(main())
File “/usr/local/grass6.4.current/grass-6.4.0svn/etc/wxpython/wxgui.py”, line 1824, in main
app = GMApp(workspaceFile)
File “/usr/local/grass6.4.current/grass-6.4.0svn/etc/wxpython/wxgui.py”, line 1749, in init
wx.App.init(self, False)
File “/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”, line 7978, in init
self._BootstrapApp()
File “/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”, line 7552, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File “/usr/local/grass6.4.current/grass-6.4.0svn/etc/wxpython/wxgui.py”, line 1767, in OnInit
workspace = self.workspaceFile)
File “/usr/local/grass6.4.current/grass-6.4.0svn/etc/wxpython/wxgui.py”, line 142, in init
self.menubar = self.__createMenuBar()
File “/usr/local/grass6.4.current/grass-6.4.0svn/etc/wxpython/wxgui.py”, line 263, in __createMenuBar
self.menubar.Append(self.__createMenu(menuItems), menuLabel)
File “/usr/local/grass6.4.current/grass-6.4.0svn/etc/wxpython/wxgui.py”, line 278, in __createMenu
self.__createMenuItem(menu, *eachItem)
File “/usr/local/grass6.4.current/grass-6.4.0svn/etc/wxpython/wxgui.py”, line 302, in __createMenuItem
rhandler = eval(handler)
File “”, line 1, in
AttributeError: ‘GMFrame’ object has no attribute ‘DispMapCalculator’

This might be related to #1059 wxGUI: No menu option for r.mapcalc, but I am not sure.

Rgds,

Paulo

Hi,

2010/6/21 Paulo <pvanbmail-guard@yahoo.com>:

[...]

line 278, in __createMenu
self.__createMenuItem(menu, *eachItem)
File "/usr/local/grass6.4.current/grass-6.4.0svn/etc/wxpython/wxgui.py",
line 302, in __createMenuItem
rhandler = eval(handler)
File "<string>", line 1, in <module>
AttributeError: 'GMFrame' object has no attribute 'DispMapCalculator'

you are probably using out-dated code (try to run `svn up`).
DispMapCalculator has been renamed to OnMapCalculator, see
http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/gui/wxpython/xml/menudata.xml#L860
and http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py#L1073.

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

I am always using ‘svn update’ to get the latest revision, shouldn’t that just replace old code with updates?

In any case, I downloaded the source in a new folder and that indeed compiled without problem.

Thanks,

Paulo

Hi,

2010/6/21 Paulo <pvanbmail-guard@yahoo.com>:

I am always using 'svn update' to get the latest revision, shouldn't that
just replace old code with updates?

no local modifications? Try out `svn revert . -R`.

Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa