OSX: importing gi from pygobject3: “ImportError: cannot import name _gi”
- From: Krister <thekswenson gmail com>
- To: python-hackers-list gnome org
- Subject: OSX: importing gi from pygobject3: “ImportError: cannot import name _gi”
- Date: Thu, 12 Apr 2018 18:33:19 +0200
Hello all,
I had a working python program that uses GTK3 as installed with
homebrew. After updating my OSX system I now get the error:
import gi
File "/usr/local/lib/python2.7/site-packages/gi/__init__.py", line 42,
in <module>
ImportError: cannot import name _gi
The minimal example that reproduces this error would be:
# import_gi.py
import gi
which produces:
=> /usr/local/Cellar/python\@2/2.7.14_3/bin/python2 import_gi.py
Traceback (most recent call last):
File "import_gi.py", line 1, in <module>
import gi
File "/usr/local/lib/python2.7/site-packages/gi/__init__.py", line
42, in <module>
ImportError: cannot import name _gi
I've tried running
brew reinstall pygobject3 gtk+3
which did not fix the problem.
Does someone have an idea of what may be going on?
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]