[GRASS-user] python module under wingrass7

Glynn Clements glynn at gclements.plus.com
Thu Dec 16 08:20:31 EST 2010


gianluca.massei wrote:

> now .py extension is registered correctly and my module ends with 
> correct code but  The error  message is the same. In linux (ubuntu 10.4 
> LTS) all works fine but in windows my module and all other python 
> standard   modules (e.g. r.mask) return same error. If I set  
> PYTHONPAT=C:\Python27 I have this message " [...] no module named 
> grass.script"

PYTHONPATH should contain the path to GRASS' Python directory, i.e. 
%GISBASE%\etc\python. It shouldn't contain any other entries.

PYTHONHOME should not be set.

PATH shouldn't need an entry for Python.

GRASS_PYTHON should contain the complete path to the Python
interpreter.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list