473,473 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Matplotlib TkAgg WindowsXP ImportError

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
matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
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/pyt...il/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

Sep 26 '07 #1
2 5897
On Sep 26, 1:19 pm, Simon Forman <sajmik...@gmail.comwrote:
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
>matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg

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

Sep 26 '07 #2
On 9/26/07, Simon Forman <sa*******@gmail.comwrote:
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
matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
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/pyt...il/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

--
http://mail.python.org/mailman/listinfo/python-list
Please disregard. I was missing MSVCP71.dll.

Sorry for the 'noise',
Sincerely,
~Simon
Sep 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Federico | last post by:
Hi, I'm using python 2.2 under windows...when I use the 'Agg ' backend it works fine but when I try to use the 'TkAgg' one I've an error message that says : ..... ..... "import tkagg ...
3
by: John Hunter | last post by:
matplotlib is a 2D plotting library for python. You can use matplotlib interactively from a python shell or IDE, or embed it in GUI applications (WX, GTK, and Tkinter). matplotlib supports many...
3
by: Noe | last post by:
Hello, I have a problem with finance_work2.py provided in the documentation. I can't find the helpers module : ImportError: No module named helpers Someone could help me? thanks in advance.
2
by: scott | last post by:
I am trying to convert a python app that uses matplotlib to a standalone executable using py2exe. After running py2exe and executing my app I get the following stack trace: Traceback (most...
1
by: Kenneth Miller | last post by:
Hello All, I need a python module to do real time graphs so I chose Matplotlib. I am trying to compile matplotlib at the moment and I have some problems, well not really. It compiles fine, it's...
0
by: nashmeister | last post by:
has anyone had any success compiling matplotlib in cygwin? i had some rebasing problems that i got around, but when i finally got everything to install without any complaints and did "import...
1
by: cesco | last post by:
Hi, I wanted to install python, numpy and matplotlib on Linux Ubuntu. I installed python with the following commands ../configure --enable-unicode=ucs4 make make install and then I installed...
0
by: OKB (not okblacke) | last post by:
I just downloaded matplotlib and I was trying to do some simple date plots, but I'm running up against a puzzling error. Whenever I attempt to plot dates, I get an exception on line 157 of...
1
by: redcic | last post by:
I've got a question regarding matplotlib. I use the command: pylab.plot(...) to create a graph. Then, the execution of the code stops after the line: pylab.show() which is off course the last...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.