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

Marco Pasetti marco.pasetti at alice.it
Thu Mar 27 20:57:09 EDT 2008


I'm afraid folks.. I'm a gigantic idiot!!!

I supposed to work with the *package version* that has all the dlls in an
unique folder, while I was launching grass from the *original* msys
environment, where pgsql.dll is placed in the specific pgsql/lib folder!!!
(Glynn, as usual you were right!!!)

Sorry!

Now the new python interface works, and it automatically starts even if I
don't specify -wxpython after grass63 command in shell.
I didn't have time to perform many tests, but opening existing locations it
seems to work; only two things:

1) when I exit it reports the following message in msys shell:

$ grass63
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 > Traceback (most recent
call last):
  File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\mapdisp.py",
line 2412, in OnFocus
    self.layerbook.SetSelection(pgnum)
  File
"C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\lib\flatnotebook
.py", line 3275, in SetSelection
    if not self._pages.GetEnabled(page) and len(self._windows) > 1 and not
self._bForceSelection:
  File
"C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line
14318, in __getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the PageContainer object has
been deleted, attribute access no longer allowed.
Traceback (most recent call last):
  File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\mapdisp.py",
line 2412, in OnFocus
    self.layerbook.SetSelection(pgnum)
  File
"C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\lib\flatnotebook
.py", line 3275, in SetSelection
    if not self._pages.GetEnabled(page) and len(self._windows) > 1 and not
self._bForceSelection:
  File
"C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line
14318, in __getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the PageContainer object has
been deleted, attribute access no longer allowed.

2) When I create a new location using epsg codes, next button is not enabled
since I don't press Browse codes, even if I already typed the desired code.
Then, I remember that when I created locations with epsg=3003, GRASS asked
me to select an option for towgs84 parameters; now GRASS asks me only for
"Datum Transformation" without showing descriptions for the options (and
narrows button don't work too, I need to enter the option manually)

Thanks and goodnight

Marco



More information about the grass-dev mailing list