Mac Installation Fails
I followed the instructions here https://pygobject.readthedocs.io/en/latest/getting_started.html to install on a Mac OS X (10.12.6) system. Specifically, I already had homebrew installed and thus did
brew install pygobject3 --with-python@2 gtk+3
When I then do
python3 hello.py
I get
File "/usr/local/lib/python3.7/site-packages/gi/importer.py", line 138, in load_module
introspection_module = get_introspection_module(namespace)
File "/usr/local/lib/python3.7/site-packages/gi/module.py", line 265, in get_introspection_module
module = IntrospectionModule(namespace, version)
File "/usr/local/lib/python3.7/site-packages/gi/module.py", line 117, in __init__
repository.require(namespace, version)
gi.RepositoryError: Typelib file for namespace 'GdkPixbuf', version '2.0' not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "hallo.py", line 3, in <module>
from gi.repository import Gtk
File "/usr/local/lib/python3.7/site-packages/gi/importer.py", line 140, in load_module
raise ImportError(e)
ImportError: Typelib file for namespace 'GdkPixbuf', version '2.0' not found
m0026872:2. IDA karchjd$ python3 hallo.py
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/gi/importer.py", line 138, in load_module
introspection_module = get_introspection_module(namespace)
File "/usr/local/lib/python3.7/site-packages/gi/module.py", line 265, in get_introspection_module
module = IntrospectionModule(namespace, version)
File "/usr/local/lib/python3.7/site-packages/gi/module.py", line 117, in __init__
repository.require(namespace, version)
gi.RepositoryError: Typelib file for namespace 'GdkPixbuf', version '2.0' not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "hallo.py", line 3, in <module>
from gi.repository import Gtk
File "/usr/local/lib/python3.7/site-packages/gi/importer.py", line 140, in load_module
raise ImportError(e)
ImportError: Typelib file for namespace 'GdkPixbuf', version '2.0' not found ```