Your message dated Fri, 1 Feb 2019 11:22:20 -0500
with message-id 
<CAB4XWXwEzwy=frgzm9su-nh0d2p-exjc_3eny53627febgc...@mail.gmail.com>
and subject line Re: Bug#921108: python-matplotlib should depend on python-tk
has caused the Debian Bug report #921108,
regarding python-matplotlib should depend on python-tk
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
921108: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921108
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
python-tk is a recommends
(https://packages.debian.org/unstable/python-matplotlib) so that
people can remove it if they decide they prefer a different backend.
it's not a suggests so that it gets installed automatically on
end-users systems, since recommends are installed by default.

if autopkgtest doesnt install recommends, you may want to discuss that
with the team maintaining that service.

closing, as it's working as intended


On Fri, Feb 1, 2019 at 11:15 AM Tobias Hansen <[email protected]> wrote:
>
> 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



--
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi

--- End Message ---

Reply via email to