[GRASS-dev] PYTHONPATH question

Glynn Clements glynn at gclements.plus.com
Tue Jul 29 16:30:16 EDT 2008


Michael Barton wrote:

> See below...

William has already identified the core problem: scripts are using a
different version of Python to the interactive interpreter, and
presumably only one of the two versions has matplotlib installed.

If you set PYTHONPATH, all interpreters will find modules in those
directories (it will even override system modules, so don't put the
system directories in PYTHONPATH, only site-packages). If PYTHONPATH
is unset, each version will use its own site-packages directory.

Given that the two versions are almost identical (2.5.1 vs 2.5.2), I
suggest setting PYTHONPATH to contain both modules' site-packages
directories, and nothing else.

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


More information about the grass-dev mailing list