Page MenuHomePhabricator

Please install python3-tk on toolforge nodes
Closed, ResolvedPublic


I want to use matplotlib to generate some image charts on toolforge (

(venv)tools.coverage@tools-bastion-02:~/tool-coverage$ python 
Traceback (most recent call last):
  File "/usr/lib/python3.4/tkinter/", line 39, in <module>
    import _tkinter
ImportError: No module named '_tkinter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 20, in <module>
    import matplotlib.pyplot as plot
  File "/mnt/nfs/labstore-secondary-tools-project/coverage/tool-coverage/venv/lib/python3.4/site-packages/matplotlib/", line 113, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/mnt/nfs/labstore-secondary-tools-project/coverage/tool-coverage/venv/lib/python3.4/site-packages/matplotlib/backends/", line 60, in pylab_setup
    [backend_name], 0)
  File "/mnt/nfs/labstore-secondary-tools-project/coverage/tool-coverage/venv/lib/python3.4/site-packages/matplotlib/backends/", line 6, in <module>
    from six.moves import tkinter as Tk
  File "/mnt/nfs/labstore-secondary-tools-project/coverage/tool-coverage/venv/lib/python3.4/site-packages/", line 92, in __get__
    result = self._resolve()
  File "/mnt/nfs/labstore-secondary-tools-project/coverage/tool-coverage/venv/lib/python3.4/site-packages/", line 115, in _resolve
    return _import_module(self.mod)
  File "/mnt/nfs/labstore-secondary-tools-project/coverage/tool-coverage/venv/lib/python3.4/site-packages/", line 82, in _import_module
  File "/usr/lib/python3.4/tkinter/", line 41, in <module>
    raise ImportError(str(msg) + ', please install the python3-tk package')
ImportError: No module named '_tkinter', please install the python3-tk package

I'm not aware of any way to pip install tkinter, I think it needs to be installed via the package - correct me if I'm wrong please :)

Event Timeline

Legoktm triaged this task as Medium priority.Dec 11 2017, 8:15 AM
Legoktm created this task.

Change 409226 had a related patch set uploaded (by BryanDavis; owner: Bryan Davis):
[operations/puppet@production] toolforge: add user requested packages

Change 409226 merged by Arturo Borrero Gonzalez:
[operations/puppet@production] toolforge: add user requested packages