R: [GRASS-dev] WinGRASS-6.3.0RC6 & Python GUI
Martin Landa
landa.martin at gmail.com
Thu Mar 27 16:29:03 EDT 2008
Hi Marco,
2008/3/27, marco.pasetti at alice.it <marco.pasetti at alice.it>:
[snip]
> > Marco at NOTEBOOKMARCO /usr/local/bin
> > $ grass63 -wxpython
> > Cleaning up temporary files.....
> > Starting GRASS ...
> > WARNING: Attention!
> > WARNING: Locking is not supported on Windows!
> > GRASS GUI should be wxpython
> > __________ ___ __________ _______________
> > / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
> > / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
> > / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
> > \____/_/ |_/_/ |_/____/____/ \____/___//____/
> >
> > Welcome to GRASS 6.3.0RC6 (2008)
> > GRASS homepage:
> http://grass.osgeo.org/
> > This version running thru: Bourne Shell (/bin/sh)
> > Help is available with the command: g.manual -i
> > See the licence terms with: g.version -c
> > If required, restart the GUI with: g.gui wxpython
> > When ready to quit enter: exit
> >
> > GRASS 6.3.0RC6 (SIT-Lombardia):C:/MSYS/local/bin >
> > profile.py:
> > This module requires the NumPy module,
> > which could not be imported. It probably is not installed
> > (it's not part of the standard Python distribution). See the
> > Numeric Python site (http://numpy.scipy.org) for information on
> > downloading source or binaries.
> > Traceback (most recent call last):
> > File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1358, in
> > <module>
> > sys.exit(main())
> > File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1351, in
> > main
> > app = GMApp(workspaceFile)
> > File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1273, in
> > __init__
> > wx.App.__init__(self, False)
> > File
> >
> "C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
> line
> > 7836, in __init__
> > self._BootstrapApp()
> > File
> >
> "C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
> line
> > 7433, in _BootstrapApp
> > return _core_.PyApp__BootstrapApp(*args, **kwargs)
> > File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1289, in
> > OnInit
> > workspace = self.workspaceFile)
> > File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 158, in
> > __init__
> > self.NewDisplay(show=False)
> > File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1025, in
> > NewDisplay
> > auimgr=self._auimgr, showMapDisplay=show)
> > File
> >
> "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\wxgui_utils.py",
> line
> > 76, in __init__
> > self.Map = render.Map() # instance of render.Map to be associated
> > with display
> > File
> "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",
> > line 210, in __init__
> > self.InitRegion()
> > File
> "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",
> > line 244, in InitRegion
> > self.SetRegion()
> > File
> "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",
> > line 462, in SetRegion
> > self.region = self.__adjustRegion()
> > File
> "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",
> > line 296, in __adjustRegion
> > mapwidth = abs(self.region["e"] - self.region["w"])
> > KeyError: 'e'
> >
> > Martin, I really don't know why it works for you and not for me! There's
> > something frustrating in that, because you followed the guide I wrote...
> and
> > that I, obviously, followed too!
I compiled RC6 on Windows now, I cannot reproduce this error. Seems to
work here.
Looking at
http://trac.osgeo.org/grass/browser/grass/tags/release_20080321_grass_6_3_0RC6/gui/wxpython/gui_modules/render.py#L221
self.region directory is initialized by
self.region = self.GetRegion()
Result: on my machine RC6 works (GNU/Linux and tested on Windows too)
Can anyone confirm it?
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
More information about the grass-dev
mailing list