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

marco.pasetti at alice.it marco.pasetti at alice.it
Thu Mar 27 05:29:06 EDT 2008


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 ;-)
 
please patch http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README <http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README>  and add info about it.
 
Thanks
 
Marco

________________________________

Da: neteler.osgeo at gmail.com per conto di Markus Neteler
Inviato: gio 27/03/2008 10.16
A: marco.pasetti at 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 at 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 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 <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
> _______________________________________________
>  grass-dev mailing list
>  grass-dev at lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/grass-dev
>



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


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


More information about the grass-dev mailing list