'python-matplotlib' does not install depencency 'python-tk'

Bug #303158 reported by Bwoaas
This bug report is a duplicate of:  Bug #301007: auto backend discovery at start time. Edit Remove
2
Affects Status Importance Assigned to Milestone
matplotlib (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-matplotlib

Using Ubuntu 8.10
Matplotlib: 0.98.3-4ubuntu1
Python: Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)

After installing 'python-matplotlib', using matplotlib failes with an error [1]. After installing 'python-tk' this problem is solved. I think 'python-tk' should be a dependency of 'python-matplotlib'.

[1]:
Matplotlib

>>> import pylab
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line 249, in <module>
    from matplotlib.pyplot import *
  File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line 75, in <module>
    new_figure_manager, draw_if_interactive, show = pylab_setup()
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/__init__.py", line 23, in pylab_setup
    globals(),locals(),[backend_name])
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 7, in <module>
    import Tkinter as Tk, FileDialog
  File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 41, in <module>
    raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package

Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug #301007, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.