<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>&nbsp;</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>&nbsp;</DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Traceback (most recent call last):<BR>&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1358, in &lt;module&gt;<BR>&nbsp;&nbsp;&nbsp; sys.exit(main())<BR>&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1351, in main<BR>&nbsp;&nbsp;&nbsp; app = GMApp(workspaceFile)<BR>&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1273, in __init__<BR>&nbsp;&nbsp;&nbsp; wx.App.__init__(self, False)<BR>&nbsp; File "C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7836, in __init__<BR>&nbsp;&nbsp;&nbsp; self._BootstrapApp()<BR>&nbsp; File "C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7433, in _BootstrapApp<BR>&nbsp;&nbsp;&nbsp; return _core_.PyApp__BootstrapApp(*args, **kwargs)<BR>&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1289, in OnInit<BR>&nbsp;&nbsp;&nbsp; workspace = self.workspaceFile)<BR>&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 158, in __init__<BR>&nbsp;&nbsp;&nbsp; self.NewDisplay(show=False)<BR>&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1025, in NewDisplay<BR>&nbsp;&nbsp;&nbsp; auimgr=self._auimgr, showMapDisplay=show)<BR>&nbsp; File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\wxgui_utils.py", line 76, in __init__<BR>&nbsp;&nbsp;&nbsp; self.Map = render.Map()&nbsp;&nbsp;&nbsp; # instance of render.Map to be associated with display<BR>&nbsp; File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py", line 210, in __init__<BR>&nbsp;&nbsp;&nbsp; self.InitRegion()<BR>&nbsp; File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py", line 244, in InitRegion<BR>&nbsp;&nbsp;&nbsp; self.SetRegion()<BR>&nbsp; File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py", line 462, in SetRegion<BR>&nbsp;&nbsp;&nbsp; self.region = self.__adjustRegion()<BR>&nbsp; File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py", line 296, in __adjustRegion<BR>&nbsp;&nbsp;&nbsp; mapwidth&nbsp;&nbsp;&nbsp; = 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 &amp; 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>&nbsp;</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&nbsp;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>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>so, I'll install it and retry ;-)</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</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>&nbsp;and add info about it.</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Thanks</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</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 &amp; 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,&nbsp; &lt;marco.pasetti@alice.it&gt; wrote:<BR>&gt;<BR>&gt;<BR>&gt; Hi all,<BR>&gt;<BR>&gt; I reinstalled Python (2.5.2) + Python Extensions for Windows (Build 210 -<BR>&gt; py2.5) + WxPython (2.8.7.1 - unicode - py25) but I still have the same<BR>&gt; errror (follows):<BR>&gt;<BR>&gt; <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>&gt;<BR>&gt; Then, after pressing ok button, reports as follows in MSYS console:<BR>&gt;<BR>&gt; Marco@NOTEBOOKMARCO /usr/local/bin<BR>&gt; $ grass63 -wxpython<BR>&gt; Cleaning up temporary files.....<BR>&gt; Starting GRASS ...<BR>&gt; WARNING: Attention!<BR>&gt; WARNING: Locking is not supported on Windows!<BR>&gt; GRASS GUI should be wxpython<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __________&nbsp; ___&nbsp;&nbsp; __________&nbsp;&nbsp;&nbsp; _______________<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; / ____/ __ \/&nbsp;&nbsp; | / ___/ ___/&nbsp;&nbsp; / ____/&nbsp; _/ ___/<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; / / __/ /_/ / /| | \__ \\_&nbsp; \&nbsp;&nbsp; / / __ / / \__ \<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; / /_/ / _, _/ ___ |___/ /__/ /&nbsp; / /_/ // / ___/ /<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \____/_/ |_/_/&nbsp; |_/____/____/&nbsp;&nbsp; \____/___//____/<BR>&gt;<BR>&gt; Welcome to GRASS 6.3.0RC6 (2008)<BR>&gt; GRASS homepage:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A href="http://grass.osgeo.org/">http://grass.osgeo.org/</A><BR>&gt; This version running thru:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bourne Shell (/bin/sh)<BR>&gt; Help is available with the command:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g.manual -i<BR>&gt; See the licence terms with:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g.version -c<BR>&gt; If required, restart the GUI with:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g.gui wxpython<BR>&gt; When ready to quit enter:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit<BR>&gt;<BR>&gt; GRASS 6.3.0RC6 (SIT-Lombardia):C:/MSYS/local/bin &gt;<BR>&gt; profile.py:<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; This module requires the NumPy module,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; which could not be imported.&nbsp; It probably is not installed<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; (it's not part of the standard Python distribution). See the<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Numeric Python site (<A href="http://numpy.scipy.org/">http://numpy.scipy.org</A>) for information on<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; downloading source or binaries.<BR>&gt; Traceback (most recent call last):<BR>&gt;&nbsp;&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1358, in<BR>&gt; &lt;module&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; sys.exit(main())<BR>&gt;&nbsp;&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1351, in<BR>&gt; main<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; app = GMApp(workspaceFile)<BR>&gt;&nbsp;&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1273, in<BR>&gt; __init__<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; wx.App.__init__(self, False)<BR>&gt;&nbsp;&nbsp; File<BR>&gt; "C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line<BR>&gt; 7836, in __init__<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; self._BootstrapApp()<BR>&gt;&nbsp;&nbsp; File<BR>&gt; "C:\DevTools\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line<BR>&gt; 7433, in _BootstrapApp<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return _core_.PyApp__BootstrapApp(*args, **kwargs)<BR>&gt;&nbsp;&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1289, in<BR>&gt; OnInit<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; workspace = self.workspaceFile)<BR>&gt;&nbsp;&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 158, in<BR>&gt; __init__<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; self.NewDisplay(show=False)<BR>&gt;&nbsp;&nbsp; File "C:/MSYS/local/grass-6.3.0RC6/etc/wxpython/wxgui.py", line 1025, in<BR>&gt; NewDisplay<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; auimgr=self._auimgr, showMapDisplay=show)<BR>&gt;&nbsp;&nbsp; File<BR>&gt; "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\wxgui_utils.py", line<BR>&gt; 76, in __init__<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; self.Map = render.Map()&nbsp;&nbsp;&nbsp; # instance of render.Map to be associated<BR>&gt; with display<BR>&gt;&nbsp;&nbsp; File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",<BR>&gt; line 210, in __init__<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; self.InitRegion()<BR>&gt;&nbsp;&nbsp; File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",<BR>&gt; line 244, in InitRegion<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; self.SetRegion()<BR>&gt;&nbsp;&nbsp; File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",<BR>&gt; line 462, in SetRegion<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; self.region = self.__adjustRegion()<BR>&gt;&nbsp;&nbsp; File "C:\MSYS\local\grass-6.3.0RC6\etc\wxpython\gui_modules\render.py",<BR>&gt; line 296, in __adjustRegion<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; mapwidth&nbsp;&nbsp;&nbsp; = abs(self.region["e"] - self.region["w"])<BR>&gt; KeyError: 'e'<BR>&gt;<BR>&gt; Martin, I really don't know why it works for you and not for me! There's<BR>&gt; something frustrating in that, because you followed the guide I wrote... and<BR>&gt; that I, obviously, followed too!<BR>&gt;<BR>&gt; Marco<BR>&gt; _______________________________________________<BR>&gt;&nbsp; grass-dev mailing list<BR>&gt;&nbsp; grass-dev@lists.osgeo.org<BR>&gt;&nbsp; <A href="http://lists.osgeo.org/mailman/listinfo/grass-dev">http://lists.osgeo.org/mailman/listinfo/grass-dev</A><BR>&gt;<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>