[GRASS-dev] Re: [GRASS-windows] compiling WINGrass Python Scripts -
glynn at gclements.plus.com
Wed Dec 14 08:35:01 EST 2011
Johannes Radinger wrote:
> I tried no to put 'set PYTHONPATH=%GISBASE%\etc\python;%PYTHONPATH%'
> into the env.bat file of my selfcompiled GRASS6.5SVN on Windows.
> Anyway it took me a while to get the 'real' correct line I think (as mentioned in the wiki)
> In the env.bat file (C:\\OSGeo4W\apps\grass\grass-6.5.svn\etc\env.bat)
> there are now following lines:
> set GISBASE=%OSGEO4W_ROOT%\apps\grass\grass-6.5.svn
> set GRASS_SH=%OSGEO4W_ROOT%\apps\msys\bin\sh.exe
> set GRASS_WISH=%OSGEO4W_ROOT%\bin\wish.exe
> set GRASS_PYTHON=%OSGEO4W_ROOT%\bin\python.exe
> set GRASS_PROJSHARE=%OSGEO4W_ROOT%\share\proj
> set GRASS_HTML_BROWSER=explorer
> set PATH=%OSGEO4W_ROOT%\apps\grass\grass-6.5.svn\bin;%OSGEO4W_ROOT%\apps\grass\grass-6.5.svn\lib;%PATH%
> set PYTHONPATH=%OSGEO4W_ROOT%\apps\Python25;%PYTHONPATH%
> is that correct so far???
No. If GISBASE isn't defined at that point, try:
PYTHONPATH shouldn't include the directory where Python itself is
installed. PYTHONHOME is used for that, e.g.:
> ImportError: No module named collections
This error may be caused by a broken Python installation or a missing
or incorrect PYTHONHOME setting.
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev