[GRASS-dev] GRASS 7: r.in.wms compile failure - ImportError: cannot import name log

Glynn Clements glynn at gclements.plus.com
Tue Jun 2 14:47:32 EDT 2009


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 <glynn at gclements.plus.com>


More information about the grass-dev mailing list