如何解决:hook-gi.repository.GdkPixbuf找不到错误(“ gdk-pixbuf-query-loaders”不在$ PATH中)错误?

时间:2019-01-31 09:45:51

标签: python-2.7 gtk pyinstaller glade gdkpixbuf

为了使我的脚本在Windows上可执行,我使用PyObject和Glade在python中构建了这个小脚本。它可以在安装了python2.7的VM abobe Windows 10上使用python。

如果我手动导入一些.lib文件,则可以使我的.exe工作,但不能使脚本的PyObject部分工作

在脚本上使用PyInstaller时收到此警报消息:

'''
WARNING: "hook-gi.repository.GdkPixbuf" ignored, since GDK not found     (i.e., "gdk-pixbuf-query-loaders" not in $PATH).
'''

我的警告脚本如下:

'''
missing module named fcntl - imported by tempfile (optional), subprocess (conditional)  
missing module named org - imported by copy (optional)  
missing module named readline - imported by cmd (delayed, conditional, optional), pdb (delayed, optional)  
missing module named pwd - imported by posixpath (delayed, conditional), webbrowser (delayed)  
missing module named 'org.python' - imported by pickle (optional)  
missing module named riscosenviron - imported by os (conditional, optional)  
missing module named riscospath - imported by os (conditional)  
missing module named riscos - imported by os (conditional, optional)  
missing module named ce - imported by os (conditional, optional)  
missing module named _emx_link - imported by os (conditional)  
missing module named os2 - imported by os (conditional, optional)  
missing module named posix - imported by os (conditional, optional)  
missing module named resource - imported by posix (top-level)  
runtime module named gi.repository.Gtk - imported by C:\Users\octave\Desktop\script.py (top-level), gi.repository (top-level)  
runtime module named gi.repository.Atk - imported by gi.repository.Gtk (top-level)  
runtime module named gi.repository.GObject - imported by gi.overrides.Gtk (top-level), gi.repository (top-level), gi.repository.Atk (top-level), gi.repository.Pango (top-level), gi.repository.Gio (top-level)  
runtime module named gi.repository.GLib - imported by gi.overrides.GObject (top-level), gi.repository (top-level), gi.repository.GObject (top-level), gi.overrides.Gio (top-level)  
runtime module named gi.repository.Gdk - imported by gi.repository.Gtk (top-level)  
runtime module named gi.repository.GdkPixbuf - imported by gi.repository.Gdk (top-level)  
runtime module named gi.repository.Gio - imported by gi.repository.Gdk (top-level)  
runtime module named gi.repository.Pango - imported by gi.repository.Gdk (top-level)  
runtime module named gi.repository.cairo - imported by gi.overrides.Gdk (conditional), gi.repository (conditional), gi.repository.Gdk (top-level), gi.repository.Pango (top-level)  
missing module named gi.repository.GdkX11 - imported by gi.repository (optional), gi.overrides.Gdk (optional) '''

我只需要知道如何添加钩子路径或导入缺少的模块

0 个答案:

没有答案