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

Thomas Viehmann tv at beamnet.de
Wed Jul 8 06:58:09 UTC 2009


Hi Fabrice,

thanks for sending the additional info.

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.

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.

Kind regards

T.


For reference: My sys.path is

/usr/lib/python2.5
/usr/lib/python2.5/plat-linux2
/usr/lib/python2.5/lib-tk
/usr/lib/python2.5/lib-dynload
/usr/local/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/Numeric
/usr/lib/python2.5/site-packages/PIL
/usr/lib/pymodules/python2.5
/usr/lib/pymodules/python2.5/gtk-2.0
/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode
-- 
Thomas Viehmann, http://thomas.viehmann.net/





More information about the Python-modules-team mailing list