Hi everyone,

I would like to develop a Tkinter GUI application for a course that I am 
teaching this semester that has an embedded matplotlib plot.  I was hoping to 
have this application work with both the Mac OS X and Windows versions of 
Enthought Python Distribution v. 6.0.0.  As a starting point, I was going to 
try the user interface examples, embedding_in_tk.py and embedding_in_tk2.py, on 
the matplotlib website.  I have changed my default backend from WXAgg to TkAgg 
in my matplotlibrc file.  With the Mac OS X version of EPD 6.0.0, the examples 
seem to work just fine.  However, with the Windows version, I get the following 
import error:

C:\Documents and Settings\bminch\Desktop>python embedding_in_tk2.py
Traceback (most recent call last):
  File "embedding_in_tk2.py", line 6, in <module>
    from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationT
oolbar2TkAgg
  File "C:\Python26\lib\site-packages\matplotlib\backends\backend_tkagg.py", lin
e 8, in <module>
    import tkagg                 # Paint image to Tk photo blitter extension
  File "C:\Python26\lib\site-packages\matplotlib\backends\tkagg.py", line 1, in
<module>
    import _tkagg
ImportError: No module named _tkagg

C:\Documents and Settings\bminch\Desktop>

The same thing happens when I invoke ipython with the -pylab option, although 
with a traceback that is a bit longer.  At the bottom of it is the same import 
error, "No module named _tkagg."

Has anyone experienced similar problems with the TkAgg backend under the 
Windows version of EPD 6.0.0?  Can anyone suggest how to fix the problem?

Thanks,
Brad Minch.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to