<div dir="ltr"><div><div>Hi all,<br><br>I have a small program that uses numpy and scipy. I ran into a couple of errors while trying to use cxfreeze to create a windows executable.<br><br></div><div>I'm running Windows 7 x64, Python 2.7.3 64-bit, Numpy 1.7.1rc1 64-bit, Scipy-0.11.0 64-bit, all binary installs from <<a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/">http://www.lfd.uci.edu/~gohlke/pythonlibs/</a>><br>

<br></div><div>I was able to replicate this with scipy-0.12.0c1 as well.<br></div><div><br></div>1) "from scipy import constants" triggers the below:<br></div>Traceback (most recent call last):<br>File "D:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module><br>

exec_code in m.__dict__<br>File "mSimpleGui.py", line 10, in <module><br>File "mSystem.py", line 7, in <module><br>File "D:\Python27\lib\site-packages\scipy\__init__.py", line 64, in <module><br>

    from numpy import show_config as show_numpy_config<br>File "D:\Python27\lib\site-packages\numpy\__init__.py", line 165, in <module><br>    from core import *<br>AttributeError: 'module' object has no attribute 'sys'<br>

<div><div><br><div>2) "from scipy import interpolate" triggers the below:<br>Traceback (most recent call last):<br>File "D:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module><br>

exec_code in m.__dict__<br>File "mSimpleGui.py", line 10, in <module><br>File "mSystem.py", line 9, in <module><br>File "mSensor.py", line 10, in <module><br>File "D:\Python27\lib\site-packages\scipy\interpolate\__init__.py", line 154, in <module><br>

    from rbf import Rbf<br>File "D:\Python27\lib\site-packages\scipy\interpolate\rbf.py", line 50, in <module><br>    from scipy import linalg<br>ImportError: cannot import name linalg<br></div><div><br></div>

<div>I've attached a couple of small patches that fix these errors for me, but I'm not sure if these are the best way to fix. Could you please take a look?<br><br></div><div>I'd be happy to test alternative fixes.<br>

<br>Thanks in advance,<br>Anand<br></div></div></div></div>