[Python-modules-team] Bug#535855: ImportError: No module named _path

Kumar Appaiah a.kumar at alumni.iitm.ac.in
Sun Jul 5 17:33:09 UTC 2009


Dear Fabrice,

On Sun, Jul 05, 2009 at 05:41:41PM +0200, Fabrice Silva wrote:
> Package: python-matplotlib
> Version: 0.98.5.3-1
> Severity: grave
> Justification: renders package unusable

Thanks for reporting the bug.

> When trying to import matplotlib.pyplot or more precisely
> matplotlib.transforms, a ImportError is raised concerning the _path
> module.
> $ python
> Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45) 
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib.transforms
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/share/pyshared/matplotlib/transforms.py", line 34, in <module>
>     from matplotlib._path import affine_transform
> ImportError: No module named _path
> >>> import matplotlib
> >>> matplotlib
> <module 'matplotlib' from '/usr/share/pyshared/matplotlib/__init__.py'>

Works for me, though.

> Looking for _path, I have the following files:
> 
> $ locate matplotlib|grep path
> /usr/lib/pymodules/python2.5/matplotlib/path.py
> /usr/lib/pymodules/python2.5/matplotlib/path.pyc
> /usr/lib/pymodules/python2.5/matplotlib/_path.so
> /usr/lib/pyshared/python2.4/matplotlib/_path.so
> /usr/lib/pyshared/python2.5/matplotlib/_path.so
> 

I get:

/usr/lib/pymodules/python2.4/matplotlib/_path.so
/usr/lib/pymodules/python2.4/matplotlib/path.py
/usr/lib/pymodules/python2.4/matplotlib/path.pyc
/usr/lib/pymodules/python2.5/matplotlib/_path.so
/usr/lib/pymodules/python2.5/matplotlib/path.py
/usr/lib/pymodules/python2.5/matplotlib/path.pyc
/usr/lib/pyshared/python2.4/matplotlib/_path.so
/usr/lib/pyshared/python2.5/matplotlib/_path.so

I don't see you missing any files, so it's quite strange. I'll let
Sandro comment, but still wonder if merely reinstalling the package
helps.

Kumar

-- 
Kumar Appaiah
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20090705/a49ed849/attachment.pgp>


More information about the Python-modules-team mailing list