It seems that SciPy
and cx_freeze
don't work together and is a known issue (https://bitbucket.org/anthony_tuininga/cx_freeze/issue/43/import-errors-when-using-cx_freeze-with). When I remove the import scipy
then my code runs well.
I have researched here and few other websites and installed Dependency Walker. It says ieshims.dll
is missing. I have installed ieshims.dll
. I have installed all other .dll
files. Now my console window gives me error as:
Traceback (most recent call last):
File "PyMoss.py", line 13, in <module>
File "C:\Python33\lib\site-packages\scipy\optimize\__init__.py", line 163, in <module>
from .optimize import *
File "C:\Python33\lib\site-packages\scipy\optimize\optimize.py", line 35, in <module>
from .linesearch import (line_search_wolfe1, line_search_wolfe2,
File "C:\Python33\lib\site-packages\scipy\optimize\linesearch.py", line 16, in <module>
from scipy.optimize import minpack2
File "<loader>", line 10, in <module>
File "<loader>", line 8, in __load
ImportError: (DLL load failed: The specified module could not be found.)
'C:\\Python33\\dist\\scipy.optimize.minpack2.pyd'
I can see scipy.optimize.minpack2.pyd
in my build folder but yet generates such error. Please help me out as I am able to run SciPy
function in Python IDLE while I am unable to run the same function with cx_freeze
or py2exe
Thanks in Advance