Markus Neteler wrote: > > Check that $PYTHONPATH doesn't contain any inappropriate directories, > > and that dist.x86_64-unknown-linux-gnu/etc/python doesn't contain > > anything except the grass subdirectory. > > Interestingly it works today. Perhaps I had set $PYTHONPATH indeed > to the swig/python/ directory as suggested in the examples: > > grep PYTHONPATH examples/* > examples/m.distance.py: # export PYTHONPATH=/usr/src/grass70/swig/python > examples/rasteraccess.py:export PYTHONPATH=/usr/src/grass70/swig/python > examples/vectoraccess.py:# export PYTHONPATH=/usr/src/grass70/swig/python
Right; that will cause the problem which you reported. The only GRASS-related directory which should be added to PYTHONPATH is $GISBASE/etc/python. -- Glynn Clements <gl...@gclements.plus.com> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev