dlenski / gp-saml-gui

Interactively authenticate to GlobalProtect VPNs that require SAML
GNU General Public License v3.0
305 stars 69 forks source link

Fix ImportError importing from pgi instead of gi #11

Closed TysonAndre closed 4 years ago

TysonAndre commented 4 years ago

The name can't be an alias when importing from from module.submodule

Related to https://github.com/dlenski/gp-saml-gui/issues/7

~ » 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'
dlenski commented 4 years ago

Merged via cherry-pick in 2a0e0f6 … thanks!!