[Python-modules-team] Bug#750630: python-matplotlib: Default backend 'tkagg' broken

Matthias Liertzer matthias at liertzer.at
Thu Jun 5 08:08:18 UTC 2014


Package: python-matplotlib
Version: 1.3.1-1+b1
Severity: grave
Justification: renders package unusable

A simple script like

#!/usr/bin/env python

import numpy as np
import matplotlib.pyplot as plt

plt.figure()
x = np.linspace(0, 1, 100)
y = np.sin(x)
plt.plot(x, y)
plt.show()


fails to show a plot and leads to the following error:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1489, in __call__
    return self.func(*args)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 276, in resize
    self.show()
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 349, in draw
    tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/tkagg.py", line 20, in blit
    tk.call("PyAggImagePhoto", photoimage, id(aggimage), colormode, id(bbox_array))
TclError


In fact, I wasn't able to produce any plot using the default backend 'tkagg'.





-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-matplotlib depends on:
ii  libatk1.0-0                       2.12.0-1
ii  libc6                             2.18-7
ii  libcairo2                         1.12.16-2
ii  libfontconfig1                    2.11.0-5
ii  libfreetype6                      2.5.2-1
ii  libgcc1                           1:4.9.0-5
ii  libgdk-pixbuf2.0-0                2.30.7-1
ii  libglib2.0-0                      2.40.0-3
ii  libgtk2.0-0                       2.24.23-1
ii  libpango-1.0-0                    1.36.3-1
ii  libpangocairo-1.0-0               1.36.3-1
ii  libpangoft2-1.0-0                 1.36.3-1
ii  libpng12-0                        1.2.50-1
ii  libstdc++6                        4.9.0-5
ii  python                            2.7.6-2
ii  python-dateutil                   1.5+dfsg-1
ii  python-matplotlib-data            1.3.1-1
ii  python-numpy [python-numpy-abi9]  1:1.8.1-1
ii  python-pyparsing                  2.0.1+dfsg1-1
ii  python-support                    1.0.15
ii  python-tz                         2012c-1
ii  tcl8.5                            8.5.15-4
ii  tk8.5                             8.5.15-4

Versions of packages python-matplotlib recommends:
ii  python-glade2   2.24.0-3+b1
ii  python-imaging  2.3.0-2
ii  python-tk       2.7.7-1

Versions of packages python-matplotlib suggests:
ii  dvipng                 1.14-2
ii  ghostscript            9.05~dfsg-8.1
ii  gir1.2-gtk-3.0         3.12.2-1
ii  inkscape               0.48.4-4
ii  ipython                2.1.0-1
ii  librsvg2-common        2.40.2-1
ii  python-cairo           1.8.8-1+b2
ii  python-configobj       4.7.2+ds-5
pn  python-excelerator     <none>
ii  python-gobject         3.12.1-1
ii  python-gtk2            2.24.0-3+b1
pn  python-matplotlib-doc  <none>
ii  python-nose            1.3.3-1
pn  python-qt4             <none>
ii  python-scipy           0.13.3-2
pn  python-sip             <none>
ii  python-tornado         3.2.0-1
pn  python-traits          <none>
pn  python-wxgtk2.8        <none>
ii  texlive-extra-utils    2014.20140528-2
ii  texlive-latex-extra    2014.20140528-2
pn  ttf-staypuft           <none>

-- no debconf information



More information about the Python-modules-team mailing list