Matplotlib TkAgg WindowsXP ImportError

S

Simon Forman

Hello,

I just installed Matplotlib (and NumPy) on a windows XP machine, and
I'm getting the following traceback when I try to use the TkAgg
backend.

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\Lib\site-packages\matplotlib\backends
\backend_tkagg.py",
line 8, in <module>
import tkagg # Paint image to Tk photo blitter
extension
File "C:\Python25\lib\site-packages\matplotlib\backends\tkagg.py",
line 1, in <module>
import _tkagg
ImportError: DLL load failed: The specified module could not be found.
I found one old (2004) post
http://mail.python.org/pipermail/python-list/2004-April/258963.html
that seems to indicate that some sort version mismatch of the Tk/Tcl
libraries may be to blame. But I don't know how to diagnose that or
what to do about it.

FWIW, I installed using matplotlib-0.90.1.win32-py2.5.exe and
numpy-1.0.3.1.win32-py2.5.exe.

Thanks in advance for any help.
Sincerely,
~Simon
 
S

Simon Forman

Hello,

I just installed Matplotlib (and NumPy) on a windows XP machine, and
I'm getting the following traceback when I try to use the TkAgg
backend.

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.>>> import matplotlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\Lib\site-packages\matplotlib\backends
\backend_tkagg.py",
line 8, in <module>
import tkagg # Paint image to Tk photo blitter
extension
File "C:\Python25\lib\site-packages\matplotlib\backends\tkagg.py",
line 1, in <module>
import _tkagg
ImportError: DLL load failed: The specified module could not be found.



I found one old (2004) posthttp://mail.python.org/pipermail/python-list/2004-April/258963.html
that seems to indicate that some sort version mismatch of the Tk/Tcl
libraries may be to blame. But I don't know how to diagnose that or
what to do about it.

FWIW, I installed using matplotlib-0.90.1.win32-py2.5.exe and
numpy-1.0.3.1.win32-py2.5.exe.

Thanks in advance for any help.
Sincerely,
~Simon


Ah, nevermind. I was missing MSVCP71.dll. Once I included that in the
system folder matplotlib ran fine.

Sorry for the "noise".
~Simon
 
S

Simon Forman

Hello,

I just installed Matplotlib (and NumPy) on a windows XP machine, and
I'm getting the following traceback when I try to use the TkAgg
backend.

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\Lib\site-packages\matplotlib\backends
\backend_tkagg.py",
line 8, in <module>
import tkagg # Paint image to Tk photo blitter
extension
File "C:\Python25\lib\site-packages\matplotlib\backends\tkagg.py",
line 1, in <module>
import _tkagg
ImportError: DLL load failed: The specified module could not be found.
I found one old (2004) post
http://mail.python.org/pipermail/python-list/2004-April/258963.html
that seems to indicate that some sort version mismatch of the Tk/Tcl
libraries may be to blame. But I don't know how to diagnose that or
what to do about it.

FWIW, I installed using matplotlib-0.90.1.win32-py2.5.exe and
numpy-1.0.3.1.win32-py2.5.exe.

Thanks in advance for any help.
Sincerely,
~Simon

Please disregard. I was missing MSVCP71.dll.

Sorry for the 'noise',
Sincerely,
~Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top