[Numpy-discussion] Yes, this one again "ImportError: No module named multiarray"

Chris Barker - NOAA Federal chris.barker at noaa.gov
Tue Mar 12 17:50:54 EDT 2013

On Tue, Mar 12, 2013 at 7:05 AM, Dinesh B Vadhia
<dineshbvadhia at hotmail.com> wrote:
> Does that mean numpy won't work with freeze/create_executable type of tools
> or is there a workaround?

I've used numpy with py2exe and py2app out of the box with no issues (
actually, there is an issue with too much stuff getting bundled up,
but it works)

>> ImportError let alone what the solution is.  The Traceback, similar to
>> others found on the web, is:
>> Traceback (most recent call last):
>>   File "test.py", ...
>>   File "C:\Python27\lib\site-packages\numpy\__init__.py", line 154, in
>> <module>

This indicates that your code is importing the numpy that's inside the
system installation -- it should be using one in your app bundle.

What bundling tool are you using?
How did you install python/numpy?
What does your bundling tol config look like?
And, of course, version numbers of everything.



Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov

More information about the NumPy-Discussion mailing list