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

Fabrice Silva silva at crans.org
Sun Jul 5 15:41:41 UTC 2009

Package: python-matplotlib
Severity: grave
Justification: renders package unusable

When trying to import matplotlib.pyplot or more precisely
matplotlib.transforms, a ImportError is raised concerning the _path
$ 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'>

Looking for _path, I have the following files:

$ locate matplotlib|grep path

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-matplotlib depends on:
ii  libatk1.0-0            1.26.0-1          The ATK accessibility toolkit
ii  libc6                  2.9-18            GNU C Library: Shared libraries
ii  libcairo2              1.8.8-2           The Cairo 2D vector graphics libra
ii  libfontconfig1         2.6.0-4           generic font configuration library
ii  libfreetype6           2.3.9-5           FreeType 2 font engine, shared lib
ii  libgcc1                1:4.4.0-10        GCC support library
ii  libglib2.0-0           2.20.4-1          The GLib library of C routines
ii  libgtk2.0-0            2.16.4-1          The GTK+ graphical user interface 
ii  libpango1.0-0          1.24.3-1          Layout and rendering of internatio
ii  libpng12-0             1.2.37-1          PNG library - runtime
ii  libstdc++6             4.4.0-10          The GNU Standard C++ Library v3
ii  python                 2.5.4-2           An interactive high-level object-o
ii  python-cairo           1.8.4-3           Python bindings for the Cairo vect
ii  python-dateutil        1.4.1-3           powerful extensions to the standar
ii  python-excelerator     0.6.3a-4          module for reading/writing Excel s
ii  python-glade2          2.14.1-3          GTK+ bindings: Glade support
ii  python-gobject         2.16.1-1          Python bindings for the GObject li
ii  python-gtk2            2.14.1-3          Python bindings for the GTK+ widge
ii  python-matplotlib-data        Python based plotting system (data
ii  python-numpy           1:1.2.1-1.1       Numerical Python adds a fast array
ii  python-pyparsing       1.5.2-1           Python parsing module
ii  python-support         1.0.3             automated rebuilding support for P
ii  python-tk              2.5.2-1.1         Tkinter - Writing Tk applications 
ii  python-tz              2009g-1           Python version of the Olson timezo
ii  python-wxgtk2.8       wxWidgets Cross-platform C++ GUI t
ii  tcl8.4                 8.4.19-3          Tcl (the Tool Command Language) v8
ii  tk8.4                  8.4.19-3          Tk toolkit for Tcl and X11, v8.4 -
ii  zlib1g                 1: compression library - runtime

python-matplotlib recommends no packages.

Versions of packages python-matplotlib suggests:
ii  dvipng                    1.11-1         convert DVI files to PNG graphics
ii  ipython                   0.9.1-3        enhanced interactive Python shell
pn  python-configobj          <none>         (no description available)
pn  python-matplotlib-doc     <none>         (no description available)
ii  python-scipy              0.7.0-1+b1     scientific tools for Python
pn  python-traits             <none>         (no description available)
pn  texlive-extra-utils       <none>         (no description available)
ii  texlive-latex-extra       2007.dfsg.17-2 TeX Live: LaTeX supplementary pack

-- no debconf information

More information about the Python-modules-team mailing list