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:

        set 
PYTHONPATH=%OSGEO4W_ROOT%\apps\grass\grass-6.5.svn\etc\python;%PYTHONPATH%

PYTHONPATH shouldn't include the directory where Python itself is
installed. PYTHONHOME is used for that, e.g.:

        set PYTHONHOME=%OSGEO4W_ROOT%\apps\Python25

> ImportError: No module named collections

This error may be caused by a broken Python installation or a missing
or incorrect PYTHONHOME setting.

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to