Package: python-matplotlib Version: 2.2.3-5 Severity: normal Tags: sid buster Control: affects -1 sagetex
Hi Sandro, matplotlib.pyplot depends on python-tk, so I think the package python-matplotlib should depend on it. This breaks the autopkgtest of sagetex, see https://ci.debian.net/data/autopkgtest/testing/amd64/s/sagetex/1821254/log.gz This didn't show up until now because sagemath had a dependency on python-tk to work around it. Steps to reproduce: $ python >>> import matplotlib.pyplot Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 115, 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 62, in pylab_setup [backend_name], 0) File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py", line 4, in <module> from . import tkagg # Paint image to Tk photo blitter extension. File "/usr/lib/python2.7/dist-packages/matplotlib/backends/tkagg.py", line 5, in <module> from six.moves import tkinter as Tk File "/usr/lib/python2.7/dist-packages/six.py", line 203, in load_module mod = mod._resolve() File "/usr/lib/python2.7/dist-packages/six.py", line 115, in _resolve return _import_module(self.mod) File "/usr/lib/python2.7/dist-packages/six.py", line 82, in _import_module __import__(name) File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 42, in <module> raise ImportError, str(msg) + ', please install the python-tk package' ImportError: No module named _tkinter, please install the python-tk package (It would also be really cool if you could apply the upstream patch discussed in #918819!) Best, Tobias