Send grass-windows mailing list submissions to grass-windows@lists.osgeo.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/grass-windows or, via email, send a message with subject or body 'help' to grass-windows-requ...@lists.osgeo.org You can reach the person managing the list at grass-windows-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of grass-windows digest..." Today's Topics: 1. Re: r.basin for windows [was Re: WinGrass6.5.svn-installer with selected addons] (Helmut Kudrnovsky) 2. Re: r.basin for windows [was Re: WinGrass6.5.svn-installer with selected addons] (Helmut Kudrnovsky) 3. Re: Re: r.basin for windows [was Re: WinGrass6.5.svn-installer with selected addons] (Margherita Di Leo) ---------------------------------------------------------------------- Message: 1 Date: Sun, 23 Oct 2011 08:17:22 -0700 (PDT) From: Helmut Kudrnovsky <hel...@web.de> Subject: [GRASS-windows] Re: r.basin for windows [was Re: WinGrass6.5.svn-installer with selected addons] To: grass-windows@lists.osgeo.org Message-ID: <1319383042864-6922190.p...@n2.nabble.com> Content-Type: text/plain; charset=us-ascii >> GRASS 6.5> cmd /c testpython >> C:\Program Files\GRASS 6.5.SVN\Python25 > >This indicates that PYTHONHOME is pointing at the bundled version. > >> 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] >> GRASS 6.5> > >This indicates that the Python interpreter is the installed version. > >My guess is that the command is executing the .py file directly, >rather than the batch file. > >Is %GISBASE%\scripts in the path? yes, it is set in C:\Program Files\GRASS 6.5.SVN\etc\env.bat: rem Set Path to utilities (libraries and binaries) used by GRASS set PATH=%GISBASE%\msys\bin;%PATH% set PATH=%GISBASE%\extrabin;%GISBASE%\extralib;%PATH% set PATH=%GISBASE%\tcl-tk\bin;%GISBASE%\sqlite\bin;%GISBASE%\gpsbabel;%PATH% set PATH=%GISBASE%\bin;%GISBASE%\scripts;%PATH% [...] rem Path to the python directory set PYTHONHOME=%GISBASE%\Python25 if "x%GRASS_PYTHON%" == "x" set GRASS_PYTHON=python Helmut -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WinGrass6-5-svn-installer-with-selected-addons-tp6873977p6922190.html Sent from the Grass - Win mailing list archive at Nabble.com. ------------------------------ Message: 2 Date: Sun, 23 Oct 2011 12:48:32 -0700 (PDT) From: Helmut Kudrnovsky <hel...@web.de> Subject: [GRASS-windows] Re: r.basin for windows [was Re: WinGrass6.5.svn-installer with selected addons] To: grass-windows@lists.osgeo.org Message-ID: <1319399312074-6922825.p...@n2.nabble.com> Content-Type: text/plain; charset=us-ascii >- r.ipso > > Traceback (most recent call last): > File "c:\Program Files\GRASS > 6.5.SVN\etc\wxpython\gui_modules\prompt.py", line 804, in > OnItemSelected >[...] >- r.wf: > > Traceback (most recent call last): > File "c:\Program Files\GRASS > 6.5.SVN\etc\wxpython\gui_modules\prompt.py", line 1098, in > OnKeyPressed >[...] for the record, beside the python-pythonpath-pythonhome issue, by testing the scripts r.ipso and r.wf it has been observed that there is the python-lib-tk missing in the osgeo4w-based wingrass-installers and therefore matplotlib isn't correctly working. a workaround is changing the matplotlib-backend in the scripts by i.e. import sys import os import matplotlib <= !!! matplotlib.use('wx') <= !!! import matplotlib.pyplot as plt import grass.script as grass import numpy as np Helmut -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WinGrass6-5-svn-installer-with-selected-addons-tp6873977p6922825.html Sent from the Grass - Win mailing list archive at Nabble.com. ------------------------------ Message: 3 Date: Sun, 23 Oct 2011 23:17:23 +0200 From: Margherita Di Leo <direg...@gmail.com> Subject: Re: [GRASS-windows] Re: r.basin for windows [was Re: WinGrass6.5.svn-installer with selected addons] To: Helmut Kudrnovsky <hel...@web.de> Cc: grass-windows@lists.osgeo.org Message-ID: <CABa=8qon9urog4fu5yxqrwqzpfu1i7f1c35iutvrcqmqxxj...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Hi Helmut, 2011/10/23 Helmut Kudrnovsky <hel...@web.de> > >- r.ipso > > > > Traceback (most recent call last): > > File "c:\Program Files\GRASS > > 6.5.SVN\etc\wxpython\gui_modules\prompt.py", line 804, in > > OnItemSelected > >[...] > >- r.wf: > > > > Traceback (most recent call last): > > File "c:\Program Files\GRASS > > 6.5.SVN\etc\wxpython\gui_modules\prompt.py", line 1098, in > > OnKeyPressed > >[...] > > for the record, beside the python-pythonpath-pythonhome issue, by testing > the scripts r.ipso and r.wf it has been observed that there is the > python-lib-tk missing in the osgeo4w-based wingrass-installers and > therefore > matplotlib isn't correctly working. > > a workaround is changing the matplotlib-backend in the scripts by i.e. > > import sys > import os > import matplotlib <= !!! > matplotlib.use('wx') <= !!! > import matplotlib.pyplot as plt > import grass.script as grass > import numpy as np > feel free to do such modification in the scripts if it solves the issue. madi > > Helmut > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/WinGrass6-5-svn-installer-with-selected-addons-tp6873977p6922825.html > Sent from the Grass - Win mailing list archive at Nabble.com. > _______________________________________________ > grass-windows mailing list > grass-windows@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-windows > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/grass-windows/attachments/20111023/cffa406a/attachment-0001.html ------------------------------ _______________________________________________ grass-windows mailing list grass-windows@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-windows End of grass-windows Digest, Vol 60, Issue 20 *********************************************