Matplotlib TkAgg WindowsXP ImportError

Discussion in 'Python' started by Simon Forman, Sep 26, 2007.

  1. Simon Forman

    Simon Forman Guest

    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/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
    Simon Forman, Sep 26, 2007
    #1
    1. Advertising

  2. Simon Forman

    Simon Forman Guest

    On Sep 26, 1:19 pm, Simon Forman <> wrote:
    > 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
    Simon Forman, Sep 26, 2007
    #2
    1. Advertising

  3. Simon Forman

    Simon Forman Guest

    On 9/26/07, Simon Forman <> wrote:
    > 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/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
    >
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    >


    Please disregard. I was missing MSVCP71.dll.

    Sorry for the 'noise',
    Sincerely,
    ~Simon
    Simon Forman, Sep 26, 2007
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SpamProof
    Replies:
    0
    Views:
    523
    SpamProof
    Oct 21, 2003
  2. Andrius B.

    ASP on WindowsXP

    Andrius B., Feb 7, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    395
    Andrius B.
    Feb 8, 2006
  3. Federico

    matplotlib error with tkagg

    Federico, Apr 18, 2004, in forum: Python
    Replies:
    1
    Views:
    994
    Todd Miller
    Apr 19, 2004
  4. Dr. Colombes
    Replies:
    3
    Views:
    641
    John Hunter
    Feb 23, 2005
  5. Lou Pecora
    Replies:
    0
    Views:
    724
    Lou Pecora
    Feb 16, 2010
Loading...

Share This Page