Glad you got it working!  For those who might be interested, the distinction between the example I linked to and packaging tools like PyInstaller or py2exe, is that <a href="https://github.com/patmarion/NumpyBuiltinExample" target="_blank">NumpyBuiltinExample</a> uses static linking to embed numpy as a builtin module.  At runtime, there is no dynamic loading, and there is no filesystem access.  The technique is targeted at HPC or embedded systems where you might want to avoid touching the filesystem, or avoid dynamic loading.<br>

<br>Pat<br><br><br>
<div class="gmail_quote">On Thu, Mar 14, 2013 at 2:08 AM, Dinesh B Vadhia <span dir="ltr"><<a href="mailto:dineshbvadhia@hotmail.com" target="_blank">dineshbvadhia@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi Chris<br>
Darn!  It worked this morning and I don't know why.<br>
<br>
Focused on PyInstaller because it creates a single executable.  Testing on<br>
all major versions of Windows (32-bit and 64-bit), Linux and OSX.  The<br>
problem OS is unsurprisingly, Windows XP (SP3).<br>
<br>
Numpy was upgraded to the mkl-version and maybe that did the trick.  Tried<br>
to replicate on an identical Windows XP machine using the standard<br>
sourceforge distribution but that resulted in a pyinstaller error.<br>
<br>
Anyway, using the latest releases of all software ie. Python 2.7.3, Numpy<br>
1.7.0, Scipy 0.11.0, PyInstaller 2.0.<br>
<br>
Will post back if run into problems again.  Best ...<br>
<br>
<br>
--------------------------------------------------<br>
From: "Chris Barker - NOAA Federal" <<a href="mailto:chris.barker@noaa.gov" target="_blank">chris.barker@noaa.gov</a>><br>
Sent: Tuesday, March 12, 2013 2:50 PM<br>
To: "Discussion of Numerical Python" <<a href="mailto:numpy-discussion@scipy.org" target="_blank">numpy-discussion@scipy.org</a>><br>
Subject: Re: [Numpy-discussion] Yes,this one again "ImportError: No module<br>
named multiarray"<br>
<div><div><br>
> On Tue, Mar 12, 2013 at 7:05 AM, Dinesh B Vadhia<br>
> <<a href="mailto:dineshbvadhia@hotmail.com" target="_blank">dineshbvadhia@hotmail.com</a>> wrote:<br>
>> Does that mean numpy won't work with freeze/create_executable type of<br>
>> tools<br>
>> or is there a workaround?<br>
><br>
> I've used numpy with py2exe and py2app out of the box with no issues (<br>
> actually, there is an issue with too much stuff getting bundled up,<br>
> but it works)<br>
><br>
>>> ImportError let alone what the solution is.  The Traceback, similar to<br>
>>> others found on the web, is:<br>
>>><br>
>>> Traceback (most recent call last):<br>
>>>   File "test.py", ...<br>
>>>   File "C:\Python27\lib\site-packages\numpy\__init__.py", line 154, in<br>
>>> <module><br>
><br>
> This indicates that your code is importing the numpy that's inside the<br>
> system installation -- it should be using one in your app bundle.<br>
><br>
> What bundling tool are you using?<br>
> How did you install python/numpy?<br>
> What does your bundling tol config look like?<br>
> And, of course, version numbers of everything.<br>
><br>
> -Chris<br>
><br>
> --<br>
><br>
> Christopher Barker, Ph.D.<br>
> Oceanographer<br>
><br>
> Emergency Response Division<br>
> NOAA/NOS/OR&R            <a href="tel:%28206%29%20526-6959" value="+12065266959" target="_blank">(206) 526-6959</a>   voice<br>
> 7600 Sand Point Way NE   <a href="tel:%28206%29%20526-6329" value="+12065266329" target="_blank">(206) 526-6329</a>   fax<br>
> Seattle, WA  98115       <a href="tel:%28206%29%20526-6317" value="+12065266317" target="_blank">(206) 526-6317</a>   main reception<br>
><br>
> <a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a><br>
><br>
><br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org" target="_blank">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></blockquote></div><br>