[Bug 337469] [NEW] import matplotlib.pyplot gives ImportError: No module named _tkagg
Launchpad Bug Tracker
337469 at bugs.launchpad.net
Fri Mar 20 16:36:15 GMT 2009
You have been subscribed to a public bug by Daniel J Blueman (daniel-blueman):
The default TkAgg backend for matplotlib dosn't work and gives the folowing error when
pyplot is imported in both python 2.6 and 2.5
>>> import matplotlib.pyplot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/matplotlib/pyplot.py", line 75, in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File "/usr/lib/python2.6/dist-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup
globals(),locals(),[backend_name])
File "/usr/lib/python2.6/dist-packages/matplotlib/backends/backend_tkagg.py", line 8, in <module>
import tkagg # Paint image to Tk photo blitter extension
File "/usr/lib/python2.6/dist-packages/matplotlib/backends/tkagg.py", line 1, in <module>
import _tkagg
ImportError: No module named _tkagg
However if you change the backend in /etc/matplotlibrc to QT4 (and maybe
others) everything works fine
using matplotlib 0.98.5.2-1ubuntu1 on kubuntu 9.04 alpha 5
** Affects: matplotlib (Ubuntu)
Importance: Undecided
Status: Confirmed
--
import matplotlib.pyplot gives ImportError: No module named _tkagg
https://bugs.launchpad.net/bugs/337469
You received this bug notification because you are a member of Ubuntu Sponsors for universe, which is a direct subscriber.
More information about the Ubuntu-universe-sponsors
mailing list