Debian Bug report logs -
#889137
python-matplotlib: Missing Gtk backend
Reported by: Pascal Giard <evilynux@gmail.com>
Date: Fri, 2 Feb 2018 10:27:02 UTC
Severity: normal
Found in version matplotlib/2.1.1-2
Done: Sandro Tosi <morph@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Sandro Tosi <morph@debian.org>:
Bug#889137; Package python-matplotlib.
(Fri, 02 Feb 2018 10:27:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Pascal Giard <evilynux@gmail.com>:
New Bug report received and forwarded. Copy sent to Sandro Tosi <morph@debian.org>.
(Fri, 02 Feb 2018 10:27:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
Reply sent
to Sandro Tosi <morph@debian.org>:
You have taken responsibility.
(Fri, 02 Feb 2018 14:45:14 GMT) (full text, mbox, link).
Notification sent
to Pascal Giard <evilynux@gmail.com>:
Bug acknowledged by developer.
(Fri, 02 Feb 2018 14:45:14 GMT) (full text, mbox, link).
Message #10 received at 889137-done@bugs.debian.org (full text, mbox, reply):
> Version > 2.0 of the package does not include the necessary .so files for
> the Gtk2 backend.
this is expected: the GTK2 stack is being deprecated in Debian in
favor of GTK3, hence why it's no longer available in matplotlib too.
As you pointed out, please use Gtk3/Gtk3agg instead
--
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi
Information forwarded
to debian-bugs-dist@lists.debian.org, Sandro Tosi <morph@debian.org>:
Bug#889137; Package python-matplotlib.
(Fri, 02 Feb 2018 15:18:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Pascal Giard <evilynux@gmail.com>:
Extra info received and forwarded to list. Copy sent to Sandro Tosi <morph@debian.org>.
(Fri, 02 Feb 2018 15:18:03 GMT) (full text, mbox, link).
Message #15 received at 889137@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Fair enough Sandro.
Then please update the README.Debian file accordingly as it implies that
Gtk2 is still supported.
Best regards,
-Pascal
-Pascal
--
Homepage (http://giard.info)
Debian GNU/Linux (http://www.debian.org)
TCL: École polytechnique fédérale de Lausanne (http://tcl.epfl.ch)
On Fri, Feb 2, 2018 at 3:41 PM, Sandro Tosi <morph@debian.org> wrote:
> > Version > 2.0 of the package does not include the necessary .so files for
> > the Gtk2 backend.
>
> this is expected: the GTK2 stack is being deprecated in Debian in
> favor of GTK3, hence why it's no longer available in matplotlib too.
> As you pointed out, please use Gtk3/Gtk3agg instead
>
> --
> Sandro "morph" Tosi
> My website: http://sandrotosi.me/
> Me at Debian: http://wiki.debian.org/SandroTosi
> G+: https://plus.google.com/u/0/+SandroTosi
>
[Message part 2 (text/html, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 03 Mar 2018 07:26:07 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 15:16:35 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.