我正在使用cx_Freeze将我的python程序转换为exe。当它是.py时它都运行良好但是当我来运行exe时,我得到以下回溯;
Traceback (most recent call last):
File "UCA_Starter.py", line 45, in <module>
File "UCA_Starter.py", line 39, in main
File "C:\Python26\Scripts\ClientSelector.py", line 20, in <module>
import login_d
File "C:\Python26\Scripts\login_d.py", line 6, in <module>
import ad_auth
File "C:\Python26\Scripts\ad_auth.py", line 1, in <module>
import ldap
File "C:\Python26\lib\site-packages\ldap\__init__.py", line 22, in <module>
from _ldap import *
File "ExtensionLoader_ldap__ldap.py", line 12, in <module>
ImportError: DLL load failed: %1 is not a valid Win32 application.
我已经搜索了问题,但我仍然不确定它甚至意味着什么,或者它是否与cx_Freeze或模块有问题,或者我是否只是缺少dll的问题。任何帮助将非常感激。提前谢谢!
答案 0 :(得分:3)
尝试安装32位版本的cx_Freeze。这对我有用。