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: compiling WINGrass Python Scripts - ExpatError
      (Glynn Clements)


----------------------------------------------------------------------

Message: 1
Date: Wed, 14 Dec 2011 13:35:01 +0000
From: Glynn Clements <gl...@gclements.plus.com>
Subject: Re: [GRASS-windows] compiling WINGrass Python Scripts -
        ExpatError
To: "Johannes Radinger" <jradin...@gmx.at>
Cc: grass-...@lists.osgeo.org, grass-windows@lists.osgeo.org
Message-ID: <20200.42501.933585.416...@cerise.gclements.plus.com>
Content-Type: text/plain; charset=us-ascii


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 <gl...@gclements.plus.com>


------------------------------

_______________________________________________
grass-windows mailing list
grass-windows@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-windows


End of grass-windows Digest, Vol 62, Issue 6
********************************************

Reply via email to