Package: python-matplotlib Version: 2.1.1-2 Severity: normal Dear Maintainer,
Version > 2.0 of the package does not include the necessary .so files for the Gtk2 backend. Attempting to use the Gtk2 backend with the following: matplotlib.use('GtkAgg') Results in the following error: Traceback (most recent call last): File "/tmp/plot.py", line 23, in <module> import matplotlib.pyplot as plt File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 116, in <module> _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() File "/usr/lib/python2.7/dist-packages/matplotlib/backends/__init__.py", line 60, in pylab_setup [backend_name], 0) File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_gtkagg.py", line 14, in <module> from matplotlib.backends.backend_gtk import ( File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_gtk.py", line 35, in <module> from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_gdk.py", line 33, in <module> from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array ImportError: No module named _backend_gdk Users should note however that the Gtk3 backend works and can be used with: matplotlib.use('Gtk3Agg') Thanks! -Pascal -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.13.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=fr_CA.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=fr_CA.UTF-8:fr:en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python-matplotlib depends on: ii libc6 2.26-6 ii libfreetype6 2.8.1-1 ii libgcc1 1:7.3.0-1 ii libjs-jquery 3.2.1-1 ii libjs-jquery-ui 1.12.1+dfsg-5 ii libpng16-16 1.6.34-1 ii libstdc++6 7.3.0-1 ii python 2.7.14-4 ii python-backports.functools-lru-cache 1.4-2 ii python-cycler 0.10.0-1 ii python-dateutil 2.6.1-1 ii python-matplotlib-data 2.1.1-2 ii python-numpy [python-numpy-abi9] 1:1.13.3-2 ii python-pyparsing 2.1.10+dfsg1-1 ii python-six 1.11.0-1 ii python-subprocess32 3.2.7-2 ii python-tz 2017.2-2 ii zlib1g 1:1.2.8.dfsg-5 Versions of packages python-matplotlib recommends: ii python-pil 5.0.0-1 ii python-tk 2.7.14-2 Versions of packages python-matplotlib suggests: ii dvipng 1.15-1 ii ffmpeg 10:3.4.1-dmo3 ii ghostscript 9.22~dfsg-1 ii gir1.2-gtk-3.0 3.22.26-2 ii inkscape 0.92.2-3 ii ipython 5.5.0-1 ii librsvg2-common 2.40.20-2 pn python-cairocffi <none> pn python-configobj <none> pn python-excelerator <none> ii python-gobject 3.26.1-2 pn python-matplotlib-doc <none> pn python-nose <none> ii python-qt4 4.12.1+dfsg-2 ii python-scipy 0.19.1-2 ii python-sip 4.19.7+dfsg-1 pn python-tornado <none> pn python-traits <none> ii python-wxgtk3.0 3.0.2.0+dfsg-6 ii texlive-extra-utils 2017.20180110-1 ii texlive-latex-extra 2017.20180110-1 pn ttf-staypuft <none> -- no debconf information