Open ElectricRCAircraftGuy opened 2 years ago
I still get the error even after installing PyQt5 for both Python2 and Python3 via this command:
sudo apt-get install python-pyqt5 python3-pyqt5
This does not solve it either: https://bobbyhadz.com/blog/python-no-module-named-pyqt5
pip install PyQt5
pip3 install PyQt5
Also doesn't solve it:
pipx install PyQt5
sudo apt install python3.8
python3.8 -m pip install --upgrade pip
python3.8 -m pip install openconnect-sso
python3.8 -m pip uninstall PyQt5
python3.8 -m pip uninstall PyQt5-sip
python3.8 -m pip uninstall PyQtWebEngine
python3.8 -m pip uninstall keyring
python3.8 -m pip install PyQt5
python3.8 -m pip install PyQt5-sip
python3.8 -m pip install PyQtWebEngine
python3.8 -m pip install keyring
python3.8 -m pip install cffi
# Check version
# My output is: `openconnect-sso 0.7.3`
openconnect-sso --version
Partial source: https://stackoverflow.com/a/54947671/4561887
sudo apt update
sudo apt install vpnc-scripts openconnect
sudo apt install python3
python3 -m pip install --upgrade pip
python3 -m pip install openconnect-sso
python3 -m pip uninstall PyQt5
python3 -m pip uninstall PyQt5-sip
python3 -m pip uninstall PyQtWebEngine
python3 -m pip uninstall keyring
python3 -m pip install PyQt5
python3 -m pip install PyQt5-sip
python3 -m pip install PyQtWebEngine
python3 -m pip install keyring
python3 -m pip install cffi
# Check version
# My output is: `openconnect-sso 0.7.3`
openconnect-sso --version
Example usage:
VPN_CONNECT_TO="myvpn.whatever.com" # example server address
VPN_SAML_GROUP="whatever-saml-whatever" # example SAML group name
VPN_USER="my.username@something.com" # example username
# or perhaps just this:
# VPN_USER="my.username"
openconnect-sso --server "${VPN_CONNECT_TO}/${VPN_SAML_GROUP}" --user "${VPN_USER}"
I just wrote these detailed instructions: How to use "openconnect" (via the openconnect-sso
wrapper) with SAML and Duo two-factor authentication via Okta Single-Sign-on (SSO)
I ran into the same PyQt5 problem on macos; but I found the solution buried in the CHANGELOG:
pip install --user --upgrade "openconnect-sso[full]"
This includes PyQt5 in the install.
For those who have installed with pipx install openconnect-sso
: You need to manually “inject” the dependencies PyQt5
and PyQtWebengine
into openconnect-sso
:
pipx inject openconnect-sso PyQt5 PyQtWebengine
For those who have installed with
pipx install openconnect-sso
: You need to manually “inject” the dependenciesPyQt5
andPyQtWebengine
intoopenconnect-sso
:
pipx inject openconnect-sso PyQt5 PyQtWebengine
Well, can someone fix that within requirements.txt?
Add to the installation instructions how to install PyQt5. It's missing on my Ubuntu 18.04 system.