[Python-modules-team] Bug#535855: matplotlib._path

Fabrice Silva silva at crans.org
Wed Jul 8 08:42:03 UTC 2009

Le mercredi 08 juillet 2009 à 08:58 +0200, Thomas Viehmann a écrit :
> In Fabrice's sys.path output:
>          /usr/share/pyshared
> This seems to be the problem. While the matplotlib/__init__.py lives in 
> that dir, it should be loaded via the symlink in 
> /usr/lib/pymodules/python2.5. Then it finds the _path module in the 
> neighboring symlink.

You may be right: on another machine, the pyshared directory is not in

> Could you manually remove it and try again?
>         import sys
>         sys.path.remove('/usr/share/pyshared')
>         import matplotlib.transforms
> should do the trick. If that works, one would need to figure out where
> the pyshared entry in sys.path comes from.

I will try tonight at home. Which are the mechanism that add items to
sys.path ?

Thanks for helping me on this!
Fabrice Silva
Laboratory of Mechanics and Acoustics - CNRS
31 chemin Joseph Aiguier, 13402 Marseille, France.

More information about the Python-modules-team mailing list