Error

Hi guys,

I just installed matplotlib (0.99.3) and numpy (1.4.1), for python 2.6 (I’m running on Win7). I used the Windows installer for both.

I added one line to my previously-working script:

import matplotlib.pyplot as plt

And I now get the following:

import matplotlib.pyplot as plt

File “C:\Python26\lib\site-packages\matplotlib_init_.py”, line 129, in

from rcsetup import defaultParams, validate_backend, validate_toolbar

File “C:\Python26\lib\site-packages\matplotlib\rcsetup.py”, line 19, in

from matplotlib.colors import is_color_like

File “C:\Python26\lib\site-packages\matplotlib\colors.py”, line 52, in

import numpy as np

File “C:\Python26\lib\site-packages\numpy_init_.py”, line 132, in

import add_newdocs

File “C:\Python26\lib\site-packages\numpy\add_newdocs.py”, line 9, in

from lib import add_newdoc

File “C:\Python26\lib\site-packages\numpy\lib_init_.py”, line 4, in

from type_check import *

File “C:\Python26\lib\site-packages\numpy\lib\type_check.py”, line 8, in

import numpy.core.numeric as _nx

File “C:\Python26\lib\site-packages\numpy\core_init_.py”, line 5, in

import multiarray

ImportError: DLL load failed: %1 is not a valid Win32 application.

Any idea what’s going wrong?

Thanks,

-Michael

From the traceback, it looks like the problem is entirely within
importing numpy. Does “import numpy” also give you an error? If so,
you may have more luck asking this question on the Numpy mailing list
(not that this question isn’t unwelcome here, of course :wink:

Mike

···

http://p.sf.net/sfu/sprint-com-first


Matplotlib-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-devel

-- Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

(not that this question isn’t unwelcome here, of course :wink:
I mistyped – I was merely trying to be friendly and say your question
is still welcome here. :slight_smile:

Mike

···

http://p.sf.net/sfu/sprint-com-first


Matplotlib-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-devel

-- Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
-- Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA