我正在使用 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。任何帮助将非常感激。提前致谢!