<!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>Does that mean numpy won't work with 
freeze/create_executable type of tools or is there a workaround?</FONT></DIV>
<DIV><FONT size=4 face=Garamond></FONT> </DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><FONT size=4 face=Garamond></FONT><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=aron@ahmadia.net 
href="mailto:aron@ahmadia.net">Aron Ahmadia</A> </DIV>
<DIV><B>Sent:</B> Tuesday, March 12, 2013 6:17 AM</DIV>
<DIV><B>To:</B> <A 
title="mailto:numpy-discussion@scipy.org CTRL + Click to follow link" 
href="mailto:numpy-discussion@scipy.org">Discussion of Numerical Python</A> 
</DIV>
<DIV><B>Subject:</B> Re: [Numpy-discussion] Yes,this one again "ImportError: No 
module named multiarray"</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV dir=ltr>multiarray is an extension module that lives within numpy/core, 
that is, when, "import multiarray" is called, (and it's the first imported 
extension module in numpy), multiarray.ext (ext being dll on Windows I guess), 
gets dynamically loaded. 
<DIV><BR></DIV>
<DIV>"No module named multiarray" is indicating problems with your freeze setup. 
 Most of these tools don't support locally imported extension 
modules.</DIV>
<DIV><BR></DIV>
<DIV>Does this help you get oriented on your problem?</DIV>
<DIV><BR></DIV>
<DIV>A</DIV></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Tue, Mar 12, 2013 at 1:01 PM, Dinesh B Vadhia <SPAN 
dir=ltr><<A href="mailto:dineshbvadhia@hotmail.com" 
target=_blank>dineshbvadhia@hotmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote><U></U>
  <DIV style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" 
  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></DIV><BR>_______________________________________________<BR>NumPy-Discussion 
  mailing list<BR><A 
  href="mailto:NumPy-Discussion@scipy.org">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><BR></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>