ModuleNotFoundError: No module named 'gi
I'm trying to setup on Mac(10.14.6) an run hello.py from https://pygobject.readthedocs.io/en/latest/getting_started.html I'm getting the following error:
$ python3 hello.py
Traceback (most recent call last):
File "hello.py", line 1, in <module>
import gi
ModuleNotFoundError: No module named 'gi
I followed the mac install instructions on the same page. Any hints? Details about current installation below.
Many thanks, Stefan
Python3: /usr/local/bin/python3 -> ../Cellar/python/3.7.7/bin/python3
My Brew environment: Brew is upgraded/up-to-date and #301 (closed) , #246 (closed) didn't made the trick for me.
aom -> ../Cellar/aom/1.0.0
atk -> ../Cellar/atk/2.36.0
aws-iam-authenticator -> ../Cellar/aws-iam-authenticator/0.5.0
awscli -> ../Cellar/awscli/2.0.7
cairo -> ../Cellar/cairo/1.16.0_3
eksctl -> ../Cellar/eksctl/0.17.0
faac -> ../Cellar/faac/1.29.9.2
faad2 -> ../Cellar/faad2/2.8.8
ffmpeg -> ../Cellar/ffmpeg/4.2.2_2
ffmpeg@4 -> ../Cellar/ffmpeg/4.2.2_2
flac -> ../Cellar/flac/1.3.3
fontconfig -> ../Cellar/fontconfig/2.13.1
freetype -> ../Cellar/freetype/2.10.1
freetype2 -> ../Cellar/freetype/2.10.1
frei0r -> ../Cellar/frei0r/1.7.0
fribidi -> ../Cellar/fribidi/1.0.9
gd -> ../Cellar/gd/2.3.0
gdbm -> ../Cellar/gdbm/1.18.1
gdk-pixbuf -> ../Cellar/gdk-pixbuf/2.40.0
gettext -> ../Cellar/gettext/0.20.2
giflib -> ../Cellar/giflib/5.2.1
glib -> ../Cellar/glib/2.64.2
glib-networking -> ../Cellar/glib-networking/2.64.2
gmp -> ../Cellar/gmp/6.2.0
gnutls -> ../Cellar/gnutls/3.6.13
gobject-introspection -> ../Cellar/gobject-introspection/1.64.1
graphite2 -> ../Cellar/graphite2/1.3.14
graphviz -> ../Cellar/graphviz/2.42.3
gsettings-desktop-schemas -> ../Cellar/gsettings-desktop-schemas/3.36.0
gst-plugins-bad -> ../Cellar/gst-plugins-bad/1.16.2
gst-plugins-base -> ../Cellar/gst-plugins-base/1.16.2
gst-plugins-good -> ../Cellar/gst-plugins-good/1.16.2
gst-rtsp-server -> ../Cellar/gst-rtsp-server/1.16.2
gstreamer -> ../Cellar/gstreamer/1.16.2
gtk+3 -> ../Cellar/gtk+3/3.24.18
gts -> ../Cellar/gts/0.7.6_2
harfbuzz -> ../Cellar/harfbuzz/2.6.4
hicolor-icon-theme -> ../Cellar/hicolor-icon-theme/0.17
hugo -> ../Cellar/hugo/0.69.0
icu4c -> ../Cellar/icu4c/64.2
jasper -> ../Cellar/jasper/2.0.16_1
jpeg -> ../Cellar/jpeg/9d
jq -> ../Cellar/jq/1.6
json-c -> ../Cellar/json-c/0.13.1
kubectl -> ../Cellar/kubernetes-cli/1.18.1
kubernetes-cli -> ../Cellar/kubernetes-cli/1.18.1
lame -> ../Cellar/lame/3.100
lcms2 -> ../Cellar/little-cms2/2.9
leptonica -> ../Cellar/leptonica/1.79.0
libass -> ../Cellar/libass/0.14.0_1
libbluray -> ../Cellar/libbluray/1.2.0
libepoxy -> ../Cellar/libepoxy/1.5.4
libevent -> ../Cellar/libevent/2.1.11_1
libffi -> ../Cellar/libffi/3.2.1
libgd -> ../Cellar/gd/2.3.0
libidn2 -> ../Cellar/libidn2/2.3.0
libjpeg -> ../Cellar/jpeg/9d
libjpg -> ../Cellar/jpeg/9d
libmms -> ../Cellar/libmms/0.6.4
libnettle -> ../Cellar/nettle/3.4.1
libnice -> ../Cellar/libnice/0.1.16_1
libogg -> ../Cellar/libogg/1.3.4
libpng -> ../Cellar/libpng/1.6.37
libpsl -> ../Cellar/libpsl/0.21.0_2
libsamplerate -> ../Cellar/libsamplerate/0.1.9_1
libshout -> ../Cellar/libshout/2.4.3
libsndfile -> ../Cellar/libsndfile/1.0.28
libsoup -> ../Cellar/libsoup/2.70.0
libsoxr -> ../Cellar/libsoxr/0.1.3
libtag -> ../Cellar/taglib/1.11.1
libtasn -> ../Cellar/libtasn1/4.16.0
libtasn1 -> ../Cellar/libtasn1/4.16.0
libtiff -> ../Cellar/libtiff/4.1.0
libtool -> ../Cellar/libtool/2.4.6_1
libunistring -> ../Cellar/libunistring/0.9.10
libuv -> ../Cellar/libuv/1.35.0
libvidstab -> ../Cellar/libvidstab/1.1.0
libvorbis -> ../Cellar/libvorbis/1.3.6
libvpx -> ../Cellar/libvpx/1.8.2
little-cms2 -> ../Cellar/little-cms2/2.9
lz4 -> ../Cellar/lz4/1.9.2
lzo -> ../Cellar/lzo/2.10
netdata -> ../Cellar/netdata/1.21.1
netpbm -> ../Cellar/netpbm/10.86.12
nettle -> ../Cellar/nettle/3.4.1
oniguruma -> ../Cellar/oniguruma/6.9.4
opencore-amr -> ../Cellar/opencore-amr/0.1.5
openjpeg -> ../Cellar/openjpeg/2.3.1
openssl -> ../Cellar/openssl@1.1/1.1.1f
openssl@1.1 -> ../Cellar/openssl@1.1/1.1.1f
opus -> ../Cellar/opus/1.3.1
orc -> ../Cellar/orc/0.4.31
p11-kit -> ../Cellar/p11-kit/0.23.20
pango -> ../Cellar/pango/1.44.7
pcre -> ../Cellar/pcre/8.44
pcre1 -> ../Cellar/pcre/8.44
pixman -> ../Cellar/pixman/0.38.4
pkg-config -> ../Cellar/pkg-config/0.29.2_3
pkgconfig -> ../Cellar/pkg-config/0.29.2_3
py3cairo -> ../Cellar/py3cairo/1.19.1_1
pygobject3 -> ../Cellar/pygobject3/3.36.0_1
python -> ../Cellar/python/3.7.7
python3 -> ../Cellar/python/3.7.7
python@3.8 -> ../Cellar/python@3.8/3.8.2
readline -> ../Cellar/readline/8.0.4
rtmpdump -> ../Cellar/rtmpdump/2.4+20151223_1
rubberband -> ../Cellar/rubberband/1.8.2_1
sdl2 -> ../Cellar/sdl2/2.0.12_1
snappy -> ../Cellar/snappy/1.1.8
speex -> ../Cellar/speex/1.2.0
sqlite -> ../Cellar/sqlite/3.31.1
sqlite3 -> ../Cellar/sqlite/3.31.1
srtp -> ../Cellar/srtp/2.3.0
taglib -> ../Cellar/taglib/1.11.1
tesseract -> ../Cellar/tesseract/4.1.1
theora -> ../Cellar/theora/1.1.1
unbound -> ../Cellar/unbound/1.10.0
vala -> ../Cellar/vala/0.48.3
vid.stab -> ../Cellar/libvidstab/1.1.0
webp -> ../Cellar/webp/1.1.0
wget -> ../Cellar/wget/1.20.3_2
x264 -> ../Cellar/x264/r2917_1
x265 -> ../Cellar/x265/3.3
xvid -> ../Cellar/xvid/1.3.7
xz -> ../Cellar/xz/5.2.5
Edited by Christoph Reiter