472,378 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,378 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 5780
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: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

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.