该应用在我的开发Win8环境中运行良好,但当它通过py2exe打包并在生产机器上运行时,会抛出异常:
"The procedure entry point RtlIdnToAscii could not be located in the dynamic link library ntdll.dll"
日志文件的详细内容如下:
但是它没有起作用。有什么想法吗?提前感谢!
"The procedure entry point RtlIdnToAscii could not be located in the dynamic link library ntdll.dll"
日志文件的详细内容如下:
Traceback (most recent call last):
File "DataviewerBackupRestorer.py", line 6, in <module>
File "RestorController.pyc", line 7, in <module>
File "psutil\__init__.pyc", line 136, in <module>
File "psutil\_psmswindows.pyc", line 14, in <module>
File "_psutil_mswindows.pyc", line 12, in <module>
File "_psutil_mswindows.pyc", line 10, in __load
ImportError: DLL load failed: The specified procedure could not be found.
在打包过程中,psutil所需的一个dll似乎丢失了。我尝试使用以下py2exe选项进行添加:
py2exe_options = {"py2exe":{"includes":['decimal', '_mssql', 'uuid', 'psutil', '_psutil_mswindows']}}
但是它没有起作用。有什么想法吗?提前感谢!