Bug#858576: python3-seaborn: Missing dependency on python3-tk

Nicolas Braud-Santoni nicolas at braud-santoni.eu
Thu Mar 23 21:00:50 UTC 2017


Package: python3-seaborn
Version: 0.7.1-2
Severity: serious

Dear Maintainer,

In a Python 3 interpreter, with python3-seaborn freshly installed,
`import seaborn` simply fails:

> >>> import seaborn
> Traceback (most recent call last):
>   File "/usr/lib/python3.5/tkinter/__init__.py", line 36, in <module>
>     import _tkinter
> ImportError: No module named '_tkinter'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python3/dist-packages/seaborn/__init__.py", line 6, in <module>
>     from .rcmod import *
>   File "/usr/lib/python3/dist-packages/seaborn/rcmod.py", line 8, in <module>
>     from . import palettes, _orig_rc_params
>   File "/usr/lib/python3/dist-packages/seaborn/palettes.py", line 12, in <module>
>     from .utils import desaturate, set_hls_values, get_color_cycle
>   File "/usr/lib/python3/dist-packages/seaborn/utils.py", line 12, in <module>
>     import matplotlib.pyplot as plt
>   File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 115, in <module>
>     _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
>   File "/usr/lib/python3/dist-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
>     globals(),locals(),[backend_name],0)
>   File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py", line 6, in <module>
>     from six.moves import tkinter as Tk
>   File "/usr/lib/python3/dist-packages/six.py", line 92, in __get__
>     result = self._resolve()
>   File "/usr/lib/python3/dist-packages/six.py", line 115, in _resolve
>     return _import_module(self.mod)
>   File "/usr/lib/python3/dist-packages/six.py", line 82, in _import_module
>     __import__(name)
>   File "/usr/lib/python3.5/tkinter/__init__.py", line 38, in <module>
>     raise ImportError(str(msg) + ', please install the python3-tk package')
> ImportError: No module named '_tkinter', please install the python3-tk package


Installing python3-tk solves the issue.


Filing as serious, as I believe this is a missing dependency (hence,
a severe policy violation).  Feel free to readjust this.


Best,

  nicoo


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-seaborn depends on:
ii  python3-matplotlib  2.0.0+dfsg1-2
ii  python3-numpy       1:1.12.0-2
ii  python3-pandas      0.19.2-5
ii  python3-scipy       0.18.1-2
pn  python3:any         <none>

Versions of packages python3-seaborn recommends:
pn  python3-bs4    <none>
pn  python3-patsy  <none>

python3-seaborn suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list