[GRASS-dev] grass-dev Digest, Vol 82, Issue 57

Martin Landa landa.martin at gmail.com
Tue Jan 1 08:43:51 PST 2013


Hi,

2013/1/1 Brian Sanjeewa Rupasinghe <jinkabs at gmail.com>:

> http://grasswiki.osgeo.org/wiki/GRASS_and_Python. However when i set the
> environment variables in my machine according to above wiki, I cannot
> connect to GRASS 6.4.3 with Python 2.7.3. When i use following
> two imports:
>>> import os, sys
>>>
>>> From grass.lib import grass
>>>
>
> For the second one, it gives an error message saying "No module named
> grass.lib"

did you set up PYTHONPATH or modified sys.path? Eg.

sys.path.append(r"C:\OSGeo4W\apps\grass7.0svn\etc\python") or something similar?

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-dev mailing list