<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19400"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT size=4 face=Garamond>I've been using Numpy/Scipy for >5 years so
know a little on how to get around them. Recently, I've needed to either
freeze or create executables with tools such as PyInstaller, Cython, Py2exe and
others on both Windows (XP 32-bit, 7 64-bit) and Ubuntu (12.04) Linux
(64-bit). </FONT><FONT size=4 face=Garamond>The test program (which runs
perfectly with the Python interpreter) is very simple:</FONT></DIV>
<DIV><FONT size=4 face=Garamond></FONT> </DIV>
<DIV><FONT size=4 face=Garamond>import numpy</FONT></DIV>
<DIV><FONT size=4 face=Garamond></FONT> </DIV>
<DIV><FONT size=4 face=Garamond>def main():<BR> print
numpy.array([12, 23, 34, 45, 56, 67, 78, 89, 90])<BR>
return<BR> <BR>if __name__ ==
'__main__':<BR> main()</FONT></DIV>
<DIV><FONT size=4 face=Garamond></FONT> </DIV>
<DIV><FONT size=4 face=Garamond>The software versions are Python 2.7.3, Numpy
1.7.0, and Scipy 0.11. The "import numpy" causes an "ImportError: No
module named multiarray". </FONT><FONT size=4 face=Garamond>After endless
Googling, I am none the wiser about what (really) causes the ImportError let
alone what the solution is. The Traceback, similar to others found on the
web, is:</FONT></DIV>
<DIV><FONT size=4 face=Garamond></FONT> </DIV>
<DIV><FONT size=4 face=Garamond>Traceback (most recent call last):<BR>
File "test.py", ...<BR> File
"C:\Python27\lib\site-packages\numpy\__init__.py", line 154, in
<module><BR> import add_newdocs<BR> File
"C:\Python27\lib\site-packages\numpy\add_newdocs.py", line 9, in
<module><BR> from numpy.lib import add_newdoc<BR>
File "C:\Python27\lib\site-packages\numpy\lib\__init__.py", line 4, in
<module><BR> from type_check import *<BR> File
"C:\Python27\lib\site-packages\numpy\lib\type_check.py", line 8, in
<module><BR> import numpy.core.numeric as _nx<BR>
File "C:\Python27\lib\site-packages\numpy\core\__init__.py", line 5, in
<module><BR> import multiarray<BR>ImportError: No module
named multiarray.</FONT></DIV>
<DIV><FONT size=4 face=Garamond></FONT> </DIV>
<DIV><FONT size=4 face=Garamond>Could someone shed some light on this -
please? Thx.</FONT></DIV>
<DIV><FONT size=4 face=Garamond></FONT> </DIV></BODY></HTML>