[Python-modules-team] Bug#626659: python-matplotlib: import matplotlib.pyplot yeilds ImportError: No module named _tkagg

Paul Strefling strefli3 at gmail.com
Sat May 14 02:34:35 UTC 2011


Package: python-matplotlib
Version: 0.99.3-1+b1
Severity: important

In a python2.6 shell issuing the follwing import yeilds an error:

>>> import matplotlib.pyplot
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/matplotlib/pyplot.py", line 78, in
<module>
    new_figure_manager, draw_if_interactive, show = pylab_setup()
  File "/usr/lib/pymodules/python2.6/matplotlib/backends/__init__.py", line 25,
in pylab_setup
    globals(),locals(),[backend_name])
  File "/usr/lib/pymodules/python2.6/matplotlib/backends/backend_tkagg.py",
line 8, in <module>
    import tkagg                 # Paint image to Tk photo blitter extension
  File "/usr/lib/pymodules/python2.6/matplotlib/backends/tkagg.py", line 1, in
<module>
    import _tkagg
ImportError: No module named _tkagg



It seems to be similair to bug #621700 which can most likley be fixed by Julian
Taylor's method:

"
to workaround this bug:
copy /etc/matplotlibrc into $HOME/.matplotlib/

change the line
backend    : TkAgg
to another backend, like GTKAgg (requires python-gtk2), Qt4Agg (requires
python-qt4)
or WXAgg (requires python-wx2.8)
"

It also seems to be similair to ubunut bug #752647:

https://bugs.launchpad.net/ubuntu/natty/+source/matplotlib/+bug/752647



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-matplotlib depends on:
ii  libatk1.0-0             2.0.0-1          The ATK accessibility toolkit
ii  libc6                   2.11.2-11        Embedded GNU C Library: Shared lib
ii  libcairo2               1.10.2-6         The Cairo 2D vector graphics libra
ii  libfontconfig1          2.8.0-2.2        generic font configuration library
ii  libfreetype6            2.4.4-1          FreeType 2 font engine, shared lib
ii  libgcc1                 1:4.6.0-2        GCC support library
ii  libgdk-pixbuf2.0-0      2.23.3-3         GDK Pixbuf library
ii  libglib2.0-0            2.28.6-1         The GLib library of C routines
ii  libgtk2.0-0             2.24.4-3         The GTK+ graphical user interface 
ii  libpango1.0-0           1.28.3-6         Layout and rendering of internatio
ii  libpng12-0              1.2.44-2         PNG library - runtime
ii  libstdc++6              4.6.0-2          The GNU Standard C++ Library v3
ii  python                  2.6.6-14         interactive high-level object-orie
ii  python-cairo            1.8.8-1+b1       Python bindings for the Cairo vect
ii  python-dateutil         1.4.1-3          powerful extensions to the standar
ii  python-gobject          2.28.3-2         Python bindings for the GObject li
ii  python-matplotlib-data  0.99.3-1         Python based plotting system (data
ii  python-numpy            1:1.5.1-2+b1     Numerical Python adds a fast array
ii  python-pyparsing        1.5.2-2          Python parsing module
ii  python-support          1.0.13           automated rebuilding support for P
ii  python-tz               2010b-1          Python version of the Olson timezo
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages python-matplotlib recommends:
ii  python-glade2                2.17.0-4+b1 GTK+ bindings: Glade support
ii  python-tk                    2.7.1-1     Tkinter - Writing Tk applications 

Versions of packages python-matplotlib suggests:
pn  dvipng                      <none>       (no description available)
ii  ipython                     0.10.2-1     enhanced interactive Python shell
ii  librsvg2-common             2.32.1-1     SAX-based renderer library for SVG
ii  python-configobj            4.7.2+ds-3   simple but powerful config file re
pn  python-excelerator          <none>       (no description available)
ii  python-gtk2                 2.17.0-4+b1  Python bindings for the GTK+ widge
pn  python-matplotlib-doc       <none>       (no description available)
pn  python-qt3                  <none>       (no description available)
ii  python-qt4                  4.8.3-2+b1   Python bindings for Qt4
pn  python-scipy                <none>       (no description available)
pn  python-traits               <none>       (no description available)
ii  python-wxgtk2.8             2.8.10.1-3.1 wxWidgets Cross-platform C++ GUI t
ii  texlive-extra-utils         2009-10      TeX Live: TeX auxiliary programs
ii  texlive-latex-extra         2009-10      TeX Live: LaTeX supplementary pack

-- no debconf information





More information about the Python-modules-team mailing list