<HTML dir=ltr><HEAD><TITLE>Re: [GRASS-dev] WinGRASS-6.3.0RC6 & Python GUI</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR><BASE href=http://mailstore.rossoalice.alice.it/exchange/Alice000000001264700/Bozze/R:%20[GRASS-dev]%20WinGRASS-6.3.0RC6%20%26%20Python%20GUI.EML/1_text.htm></HEAD>
<BODY>
<DIV id=idOWAReplyText79791 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi,</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>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</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Traceback (most recent call last):<BR>  File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1358, in <module><BR>    sys.exit(main())<BR>  File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1351, in main<BR>    app = GMApp(workspaceFile)<BR>  File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1273, in __init__<BR>    wx.App.__init__(self, False)<BR>  File "C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7836, in __init__<BR>    self._BootstrapApp()<BR>  File "C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7433, in _BootstrapApp<BR>    return _core_.PyApp__BootstrapApp(*args, **kwargs)<BR>  File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1289, in OnInit<BR>    workspace = self.workspaceFile)<BR>  File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 158, in __init__<BR>    self.NewDisplay(show=False)<BR>  File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1025, in NewDisplay<BR>    auimgr=self._auimgr, showMapDisplay=show)<BR>  File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\wxgui_utils.py", line 76, in __init__<BR>    self.Map = render.Map()    # instance of render.Map to be associated with display<BR>  File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py", line 210, in __init__<BR>    self.InitRegion()<BR>  File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py", line 244, in InitRegion<BR>    self.SetRegion()<BR>  File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py", line 462, in SetRegion<BR>    self.region = self.__adjustRegion()<BR>  File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py", line 296, in __adjustRegion<BR>    mapwidth    = abs(self.region["e"] - self.region["w"])<BR>KeyError: 'e'<BR></FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2><FONT face=Arial>Marco</FONT><BR></DIV></FONT></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Da:</B> grass-dev-bounces@lists.osgeo.org per conto di marco.pasetti@alice.it<BR><B>Inviato:</B> gio 27/03/2008 10.29<BR><B>A:</B> grass-dev@lists.osgeo.org<BR><B>Oggetto:</B> R: [GRASS-dev] WinGRASS-6.3.0RC6 & Python GUI<BR></FONT><BR></DIV>
<DIV dir=ltr>
<DIV id=idOWAReplyText42937 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Markus,</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>actually... NO!</FONT></DIV>
<DIV dir=ltr><FONT size=2>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</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>so, I'll install it and retry ;-)</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>please patch </FONT><A href="http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README"><FONT size=2>http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README</FONT></A><FONT size=2> and add info about it.</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>Thanks</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>Marco</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Da:</B> neteler.osgeo@gmail.com per conto di Markus Neteler<BR><B>Inviato:</B> gio 27/03/2008 10.16<BR><B>A:</B> marco.pasetti@alice.it<BR><B>Oggetto:</B> Re: [GRASS-dev] WinGRASS-6.3.0RC6 & Python GUI<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Ciao Marco,<BR><BR>do you actually have python-NumPy installed?<BR>That's needed...<BR><BR>ciao<BR>markus<BR><BR>On Thu, Mar 27, 2008 at 10:10 AM,  <marco.pasetti@alice.it> wrote:<BR>><BR>><BR>> Hi all,<BR>><BR>> I reinstalled Python (2.5.2) + Python Extensions for Windows (Build 210 -<BR>> py2.5) + WxPython (2.8.7.1 - unicode - py25) but I still have the same<BR>> errror (follows):<BR>><BR>> <A href="http://www.webalice.it/marco.pasetti/temp/grass_bugs/bug002.png">http://www.webalice.it/marco.pasetti/temp/grass_bugs/bug002.png</A><BR>><BR>> Then, after pressing ok button, reports as follows in MSYS console:<BR>><BR>> Marco@NOTEBOOKMARCO /usr/local/bin<BR>> $ grass63 -wxpython<BR>> Cleaning up temporary files.....<BR>> Starting GRASS ...<BR>> WARNING: Attention!<BR>> WARNING: Locking is not supported on Windows!<BR>> GRASS GUI should be wxpython<BR>>           __________  ___   __________    _______________<BR>>          / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/<BR>>         / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \<BR>>        / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /<BR>>        \____/_/ |_/_/  |_/____/____/   \____/___//____/<BR>><BR>> Welcome to GRASS 6.3.0RC6 (2008)<BR>> GRASS homepage:                          <A href="http://grass.osgeo.org/">http://grass.osgeo.org/</A><BR>> This version running thru:               Bourne Shell (/bin/sh)<BR>> Help is available with the command:      g.manual -i<BR>> See the licence terms with:              g.version -c<BR>> If required, restart the GUI with:       g.gui wxpython<BR>> When ready to quit enter:                exit<BR>><BR>> GRASS 6.3.0RC6 (SIT-Lombardia):C:/MSYS/local/bin ><BR>> profile.py:<BR>>     This module requires the NumPy module,<BR>>     which could not be imported.  It probably is not installed<BR>>     (it's not part of the standard Python distribution). See the<BR>>     Numeric Python site (<A href="http://numpy.scipy.org/">http://numpy.scipy.org</A>) for information on<BR>>     downloading source or binaries.<BR>> Traceback (most recent call last):<BR>>   File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1358, in<BR>> <module><BR>>     sys.exit(main())<BR>>   File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1351, in<BR>> main<BR>>     app = GMApp(workspaceFile)<BR>>   File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1273, in<BR>> __init__<BR>>     wx.App.__init__(self, False)<BR>>   File<BR>> "C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line<BR>> 7836, in __init__<BR>>     self._BootstrapApp()<BR>>   File<BR>> "C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line<BR>> 7433, in _BootstrapApp<BR>>     return _core_.PyApp__BootstrapApp(*args, **kwargs)<BR>>   File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1289, in<BR>> OnInit<BR>>     workspace = self.workspaceFile)<BR>>   File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 158, in<BR>> __init__<BR>>     self.NewDisplay(show=False)<BR>>   File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1025, in<BR>> NewDisplay<BR>>     auimgr=self._auimgr, showMapDisplay=show)<BR>>   File<BR>> "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\wxgui_utils.py", line<BR>> 76, in __init__<BR>>     self.Map = render.Map()    # instance of render.Map to be associated<BR>> with display<BR>>   File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",<BR>> line 210, in __init__<BR>>     self.InitRegion()<BR>>   File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",<BR>> line 244, in InitRegion<BR>>     self.SetRegion()<BR>>   File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",<BR>> line 462, in SetRegion<BR>>     self.region = self.__adjustRegion()<BR>>   File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",<BR>> line 296, in __adjustRegion<BR>>     mapwidth    = abs(self.region["e"] - self.region["w"])<BR>> KeyError: 'e'<BR>><BR>> Martin, I really don't know why it works for you and not for me! There's<BR>> something frustrating in that, because you followed the guide I wrote... and<BR>> that I, obviously, followed too!<BR>><BR>> Marco<BR>> _______________________________________________<BR>>  grass-dev mailing list<BR>>  grass-dev@lists.osgeo.org<BR>>  <A href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</A><BR>><BR><BR><BR><BR>--<BR>Open Source Geospatial Foundation<BR><A href="http://www.osgeo.org/">http://www.osgeo.org/</A><BR><A href="http://www.grassbook.org/">http://www.grassbook.org/</A><BR></FONT></P></DIV></DIV></BODY></HTML>