473,414 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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 5893
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.