我使用py2exe创建了一个python应用程序。当我在我的构建环境中运行这个exe /应用程序时,它可以正常工作。但是当我尝试在干净的机器上运行它时,它会给我一个错误,
Traceback (most recent call last):
File "wx\_misc.pyc", line 1358, in Notify
File "wx\_core.pyc", line 14771, in Notify
File "invesalius.py", line 174, in Startup
File "gui\frame.pyc", line 30, in <module>
File "constants.pyc", line 25, in <module>
File "project.pyc", line 31, in <module>
File "vtk\__init__.pyc", line 43, in <module>
File "vtkIOPython.pyc", line 12, in <module>
File "vtkIOPython.pyc", line 10, in __load
ImportError: DLL load failed: The specified module could not be
found.
Traceback (most recent call last):
File "wx\_misc.pyc", line 1358, in Notify
File "wx\_core.pyc", line 14771, in Notify
File "invesalius.py", line 82, in Startup2
AttributeError: 'SplashScreen' object has no attribute 'control'
Traceback (most recent call last):
File "invesalius.py", line 197, in OnClose
AttributeError: 'SplashScreen' object has no attribute 'fc'
我正在使用: 1. Windows 8.1 RTM(64位) 2. python(2.7 amd64) 3. py2exe(0.6.10a1)
任何评论都将不胜感激......
答案 0 :(得分:0)
听起来你需要在目标机器上运行python运行时。错误消息是否为您提供有关丢失的DLL的更多信息?如果没有进一步的信息,有一个Dependency Walker程序(depends.exe)可以帮助您识别丢失的DLL。