~ » ipython
Python 3.7.1 (tags/v3.7.1:260ec2c36a, Nov 11 2018, 14:02:23)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.3.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import pgi as gi
In [2]: from gi import Gtk
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-bfc4536cdcdd> in <module>
----> 1 from gi import Gtk
ModuleNotFoundError: No module named 'gi'
The name can't be an alias when importing from
from module.submodule
Related to https://github.com/dlenski/gp-saml-gui/issues/7