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

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

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

Marco@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
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

Markus,

actually… NO!
I read the alert in the error lines, but I thought that it was a part of wxpython install, and that, in some way, I didn’t found it because of internal errors! all that because python-NumPy is not included in python GUI requirements

so, I’ll install it and retry :wink:

please patch http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README and add info about it.

Thanks

Marco


Da: neteler.osgeo@gmail.com per conto di Markus Neteler
Inviato: gio 27/03/2008 10.16
A: marco.pasetti@alice.it
Oggetto: Re: [GRASS-dev] WinGRASS-6.3.0RC6 & Python GUI

Ciao Marco,

do you actually have python-NumPy installed?
That’s needed…

ciao
markus

On Thu, Mar 27, 2008 at 10:10 AM, marco.pasetti@alice.it wrote:

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

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

Marco@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

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


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


Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/

Hi,

I installed NumPy, but it solved only the first item in the error list; I have the same error screenshot (Execution Failed: ‘g.region.exe -u -g -p -c’) and then

Traceback (most recent call last):
File “C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py”, line 1358, in
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’

Marco


Da: grass-dev-bounces@lists.osgeo.org per conto di marco.pasetti@alice.it
Inviato: gio 27/03/2008 10.29
A: grass-dev@lists.osgeo.org
Oggetto: R: [GRASS-dev] WinGRASS-6.3.0RC6 & Python GUI

Markus,

actually… NO!
I read the alert in the error lines, but I thought that it was a part of wxpython install, and that, in some way, I didn’t found it because of internal errors! all that because python-NumPy is not included in python GUI requirements

so, I’ll install it and retry :wink:

please patch http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README and add info about it.

Thanks

Marco


Da: neteler.osgeo@gmail.com per conto di Markus Neteler
Inviato: gio 27/03/2008 10.16
A: marco.pasetti@alice.it
Oggetto: Re: [GRASS-dev] WinGRASS-6.3.0RC6 & Python GUI

Ciao Marco,

do you actually have python-NumPy installed?
That’s needed…

ciao
markus

On Thu, Mar 27, 2008 at 10:10 AM, marco.pasetti@alice.it wrote:

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

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

Marco@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

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


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


Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/

Hi Marco,

2008/3/27, marco.pasetti@alice.it <marco.pasetti@alice.it>:
[snip]

> Marco@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 *

marco.pasetti@alice.it wrote:

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

My first guess is that it's related to GDAL, i.e. it can't find either
the GDAL DLL or one of the (many) DLLs which GDAL requires.

The Python error is a consequence of g.region failing. Essentially, if
g.region doesn't work, the GUI isn't going to work.

--
Glynn Clements <glynn@gclements.plus.com>

Hi Glynn,

How could that be if all works well with tcl/tk GUI?
I tried, and g.region works perfectly if I open GRASS with tcl/tk GUI.

Marco

-----Messaggio originale-----
Da: Glynn Clements [mailto:glynn@gclements.plus.com]
Inviato: giovedì 27 marzo 2008 22.24
A: marco.pasetti@alice.it
Cc: grass-dev@lists.osgeo.org
Oggetto: Re: [GRASS-dev] WinGRASS-6.3.0RC6 & Python GUI

marco.pasetti@alice.it wrote:

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

My first guess is that it's related to GDAL, i.e. it can't find either the
GDAL DLL or one of the (many) DLLs which GDAL requires.

The Python error is a consequence of g.region failing. Essentially, if
g.region doesn't work, the GUI isn't going to work.

--
Glynn Clements <glynn@gclements.plus.com>

Marco Pasetti wrote:

How could that be if all works well with tcl/tk GUI?
I tried, and g.region works perfectly if I open GRASS with tcl/tk GUI.

The path, maybe? Windows uses %PATH% to locate DLLs.

Of course, there are other reasons why the call might fail, e.g. it
could be a problem with the gcmd code.

--
Glynn Clements <glynn@gclements.plus.com>

The path, maybe? Windows uses %PATH% to locate DLLs.

All needed paths have been added to %PATH% for grass63.bat and to $PATH for
grass63 (as I launch GRASS using grass63 -wxpython from MSYS console)

Marco

-----Messaggio originale-----
Da: Glynn Clements [mailto:glynn@gclements.plus.com]
Inviato: venerdì 28 marzo 2008 1.11
A: Marco Pasetti
Cc: grass-dev@lists.osgeo.org
Oggetto: Re: R: [GRASS-dev] WinGRASS-6.3.0RC6 & Python GUI

Marco Pasetti wrote:

How could that be if all works well with tcl/tk GUI?
I tried, and g.region works perfectly if I open GRASS with tcl/tk GUI.

The path, maybe? Windows uses %PATH% to locate DLLs.

Of course, there are other reasons why the call might fail, e.g. it could be
a problem with the gcmd code.

--
Glynn Clements <glynn@gclements.plus.com>

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

Hi,

2008/3/28, Marco Pasetti <marco.pasetti@alice.it>:

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:

great:-)

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.

yes, I know, some Windows-specific errors, I will try to fix it, but
not for 6.3.0.

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

Entered code is checked against currently loaded EPSG database, I
enabled loading default EPSG database file (on entering the EPSG
wizard page), see

http://trac.osgeo.org/grass/changeset/30775

also backported to releasebranch_6_3 (for 6.3.0).

Martin

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