[GRASS-dev] WinGRASS-6.3.0RC6 & Python GUI

marco.pasetti at alice.it marco.pasetti at alice.it
Thu Mar 27 05:10:33 EDT 2008


Hi all,
 
I reinstalled Python (2.5.2) + Python Extensions for Windows (Build 210 - py2.5) + WxPython (2.8.7.1 - unicode - py25) but I still have the same errror (follows):
 
http://www.webalice.it/marco.pasetti/temp/grass_bugs/bug002.png <http://www.webalice.it/marco.pasetti/temp/grass_bugs/bug002.png> 

Then, after pressing ok button, reports as follows in MSYS console:

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/ <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 <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!

Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20080327/d1fdd8a5/attachment-0001.html


More information about the grass-dev mailing list