[SciPy-user] Help with py2exe
lechtlr
lechtlr at yahoo.com
Mon Jan 14 10:52:10 EST 2008
I try to create an executable for windows using py2exe from a python script that import scipy. I get the following info on dependencies when I build the executable, and error on numpy/scipy when I run the executable (Test.exe). Any help you would greatly be appreciated. I am using python 2.4.2.
Thanks,
Lex
C:\Python_Exe>python setup.py py2exe
<deleted>
*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.
Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.
ole32.dll - C:\WINDOWS\system32\ole32.dll
OLEAUT32.dll - C:\WINDOWS\system32\OLEAUT32.dll
USER32.dll - C:\WINDOWS\system32\USER32.dll
SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll
KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll
WSOCK32.dll - C:\WINDOWS\system32\WSOCK32.dll
ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll
msvcrt.dll - C:\WINDOWS\system32\msvcrt.dll
WS2_32.dll - C:\WINDOWS\system32\WS2_32.dll
MSVCP71.dll - C:\WINDOWS\system32\MSVCP71.dll
multiarray.pyd - C:\Python24\lib\site-packages\numpy\core\multiarray.pyd
VERSION.dll - C:\WINDOWS\system32\VERSION.dll
_operator.pyd - C:\Python24\lib\site-packages\numarray\_operator.pyd
C:\Python_Exe\dist>Test.exe
No scipy-style subpackage 'core' found in C:\Python_Exe\dist\library.zip\numpy.
Ignoring: cannot import name typeinfo
No scipy-style subpackage 'lib' found in C:\Python_Exe\dist\library.zip\numpy.
Ignoring: cannot import name typeinfo
No scipy-style subpackage 'linalg' found in C:\Python_Exe\dist\library.zip\numpy.
Ignoring: cannot import name typeinfo
No scipy-style subpackage 'dft' found in C:\Python_Exe\dist\library.zip\numpy.
Ignoring: cannot import name typeinfo
Traceback (most recent call last):
File "Test.py", line 6, in ?
File "scipy\__init__.pyc", line 25, in ?
File "numpy\__init__.pyc", line 35, in ?
File "numpy\_import_tools.pyc", line 173, in __call__
File "numpy\_import_tools.pyc", line 68, in _init_info_modules
File "<string>", line 1, in ?
File "numpy\random\__init__.pyc", line 3, in ?
File "numpy\random\mtrand.pyc", line 12, in ?
File "numpy\random\mtrand.pyc", line 10, in __load
File "numpy.pxi", line 32, in mtrand
AttributeError: 'module' object has no attribute 'dtype'
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080114/dc17769d/attachment.html>
More information about the SciPy-User
mailing list