Public bug reported:
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: New
--
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
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs