#42 win32security dependency pywintypes33.dll not discovered during build

4.3
pending
nobody
5
2013-08-05
2013-08-05
Anonymous
Yes

I am running Python 3.3.2, cx_Freeze 4.3.1, WinXP SP3; after freezing my python script, I can run the .exe with no problems on my machine. When running the .exe on a machine without a local installation of python, I get the following:

Traceback (most recent call last):
File "C:\Python33\Lib\site-packages\cx_Freeze\initscripts\Console3.py", line 27, in <module>
File "Filefox_CLI.py", line 22, in <module>
File "C:\Python\32-bit\3.3\lib\importlib_bootstrap.py", line 1558, in _find_and_load
File "C:\Python\32-bit\3.3\lib\importlib_bootstrap.py", line 1525, in _find_and_load_unlocked
File "C:\Python\32-bit\3.3\lib\importlib_bootstrap.py", line 586, in _check_name_wrapper
File "C:\Python\32-bit\3.3\lib\importlib_bootstrap.py", line 497, in set_package_wrapper
File "C:\Python\32-bit\3.3\lib\importlib_bootstrap.py", line 510, in set_loader_wrapper
File "C:\Python\32-bit\3.3\lib\importlib_bootstrap.py", line 1130, in load_module
File "C:\Python\32-bit\3.3\lib\importlib_bootstrap.py", line 313, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.

I breifly considered updating _bootstrap.py with a print statement to tell me what module it was trying to load, but quickly discovered I have no idea how to run a "top-level make" on Windows. Is there a known method for obtaining the DLL _bootstrap.py is attempting to load?

My filelist at freeze:
Filefox_CLI.exe
unicodedata.pyd
python33.dll
_bz2.pyd
win32security.pyd

I added msvcr100.dll to the build to resolve that dependency.

This issue appears to be similar to https://sourceforge.net/p/cx-freeze/bugs/33/

** I have, since writing this up, resolved the issue. win32security.pyd is dependent on pywintypes33.dll. Adding the DLL to the package resolved my issues. I don't know if this is a bug with cx_freeze finding the dependency of win32security or something with the way win32security is written. I figure you can use this for your own purposes if desired.

Thank you for providing an excellent tool to the python community and supporting python3 when many others still don't.

Discussion


Anonymous


Cancel   Add attachments