ModuleNotFoundError: No module named 'gi' - Python - OsX
In my case, as pointed by @NoufalIbrahim, the package was installed in the system directory, but not in the virtualenv.
I have solved the issue by executing:
export PYTHONPATH=/usr/local/lib/python3.6/site-packages