使用一体式pygtk安装程序Windows 7不起作用?

时间:2013-08-30 22:56:36

标签: python python-2.7 dll gtk pygtk

您已经安装了所有的pygtk,我得到这个着名的错误“DLL加载失败”

我用依赖walker运行它,它给了我这个错误:

LoadLibraryExA("c:\python\python27\lib\site-packages\gtk-2.0\gtk\_gtk.pyd",  
0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL by thread 1. 
Error: The specified procedure could not be found (127).

它显示三个.DLL缺少

  • LIBGTK-WIN32-2.0-0.DLL
  • LIBPANGO-1.0-0.DLL
  • LIBPANGOCAIRO-1.0-0.DLL

但是,当我查看python目录中的运行时文件夹中的gtk-2.0时 我确实看到了三个文件?

我还从grimps中运行了check_gtk_install.py脚本,这给了我以下内容:

==== Checking with Dependency Walker ====
  Please be patient takes some time
Testing file C:\Python\Python27\Lib/site-packages/gtk-2.0/gtk/_Gtk.pyd
API-MS-WIN-CORE-COM-L1-1-0.DLL      Error dll not found
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL      Error dll not found
API-MS-WIN-CORE-WINRT-L1-1-0.DLL    Error dll not found
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL   Error dll not found
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL     Error dll not found
API-MS-WIN-SHCORE-SCALING-L1-1-0.DLL        Error dll not found
DCOMP.DLL   Error dll not found
GPSVC.DLL   Error dll not found
IESHIMS.DLL         Error dll not found
ERROR: c:\program files (x86)\intel\icls client\MSVCR90.DLL         Version
9.0.30729.6161

MS runtime Version 9.0.30729.6161 loaded from
c:\program files (x86)\intel\icls client\MSVCR90.DLL

MS runtime Version 9.0.30729.6161 loaded from
c:\windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_non
e_50934f2ebcb7eb57\MSVCR90.DLL

Testing file C:\Python\Python27\Lib/site-packages/gtk-2.0/gobject/_GObject.pyd

API-MS-WIN-CORE-COM-L1-1-0.DLL      Error dll not found
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL      Error dll not found
API-MS-WIN-CORE-WINRT-L1-1-0.DLL    Error dll not found
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL   Error dll not found
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL     Error dll not found
API-MS-WIN-SHCORE-SCALING-L1-1-0.DLL        Error dll not found
DCOMP.DLL   Error dll not found
GPSVC.DLL   Error dll not found
IESHIMS.DLL         Error dll not found
ERROR: c:\program files (x86)\intel\icls client\MSVCR90.DLL         Version
9.0.30729.6161

MS runtime Version 9.0.30729.6161 loaded from
c:\program files (x86)\intel\icls client\MSVCR90.DLL

MS runtime Version 9.0.30729.6161 loaded from
c:\windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_non
e_50934f2ebcb7eb57\MSVCR90.DLL

Testing file C:\Python\Python27\Lib/site-packages/gtk-2.0/pangocairo.pyd
API-MS-WIN-CORE-COM-L1-1-0.DLL      Error dll not found
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL      Error dll not found
API-MS-WIN-CORE-WINRT-L1-1-0.DLL    Error dll not found
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL   Error dll not found
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL     Error dll not found
API-MS-WIN-SHCORE-SCALING-L1-1-0.DLL        Error dll not found
DCOMP.DLL   Error dll not found
GPSVC.DLL   Error dll not found
IESHIMS.DLL         Error dll not found
ERROR: c:\program files (x86)\intel\icls client\MSVCR90.DLL         Version
9.0.30729.6161

MS runtime Version 9.0.30729.6161 loaded from
c:\program files (x86)\intel\icls client\MSVCR90.DLL

MS runtime Version 9.0.30729.6161 loaded from
c:\windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_non
e_50934f2ebcb7eb57\MSVCR90.DLL

我首先尝试找到一个解决方案,然后我尝试单独安装所有依赖项(虽然我已经尝试过但它不起作用)。

ps,我知道这个问题已经存在了一段时间,但是我找不到适合我的答案,我尝试了几乎所有在stackoverflow上提供的解决方案。

更新:从上面提到的三个DLL文件中,我的硬盘上只存在1个,除非它们隐藏在我看不到的地方。

更新:我不认为这些DLL文件是问题,因为我尝试运行demo-gtk.exe文件,它工作得很好,如果这些文件将是问题,那么演示应该不起作用,我试过它通过删除thous文件和运行演示,它没有工作..这使事情变得更糟,因为现在我不知道如何进一步调查?有没有人有任何关于如何找到问题的建议?

1 个答案:

答案 0 :(得分:0)

遵循这些说明

https://www.liamschneider.com/node/9

对我而言,这是同样的问题,我发现在ProcMon中,从SysWOW64导入gtk加载zlib1.dll而不是gtk运行时文件夹,我从那里删除它并且gtk导入正常。