Как исправить: ошибка hook-gi.repository.GdkPixbuf не найдена (ошибка «gdk-pixbuf-query-loaders» отсутствует в $ PATH)? - PullRequest
0 голосов
/ 31 января 2019

Чтобы сделать мой скрипт исполняемым на windows, я создал этот маленький скрипт на python, используя PyObject & glade.Он работает с python на виртуальной машине abobe windows 10 с установленным python2.7.

Если я вручную импортирую какой-нибудь файл .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) '''

Мне просто нужно знать, как добавитьпуть подключения или импортировать отсутствующий модуль

...