vlaci / openconnect-sso

Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication to Cisco SSL-VPNs
GNU General Public License v3.0
278 stars 117 forks source link

cannot launch openconnect-sso on Ubuntu 24.04 #172

Closed damithsenanayake closed 2 months ago

damithsenanayake commented 2 months ago

I just installed Ubuntu 24.04 LTS with Python 3.12. I do have installed PyQT6 and all required packages using pipx. However running $ openconnect-sso results in the following error.


Traceback (most recent call last):
  File "/home/damith/.local/bin/openconnect-sso", line 5, in <module>
    from openconnect_sso.cli import main
  File "/home/damith/.local/lib/python3.12/site-packages/openconnect_sso/cli.py", line 10, in <module>
    from openconnect_sso import app, config, __version__
  File "/home/damith/.local/lib/python3.12/site-packages/openconnect_sso/app.py", line 17, in <module>
    from openconnect_sso.authenticator import Authenticator, AuthResponseError
  File "/home/damith/.local/lib/python3.12/site-packages/openconnect_sso/authenticator.py", line 6, in <module>
    from openconnect_sso.saml_authenticator import authenticate_in_browser
  File "/home/damith/.local/lib/python3.12/site-packages/openconnect_sso/saml_authenticator.py", line 3, in <module>
    from openconnect_sso.browser import Browser
  File "/home/damith/.local/lib/python3.12/site-packages/openconnect_sso/browser/__init__.py", line 1, in <module>
    from .browser import Browser, DisplayMode, Terminated
  File "/home/damith/.local/lib/python3.12/site-packages/openconnect_sso/browser/browser.py", line 5, in <module>
    from . import webengine_process as web
  File "/home/damith/.local/lib/python3.12/site-packages/openconnect_sso/browser/webengine_process.py", line 14, in <module>
    from PyQt6.QtWebEngineCore import QWebEngineScript, QWebEngineProfile, QWebEnginePage
ImportError: /home/damith/.local/lib/python3.12/site-packages/PyQt6/[QtGui.abi3.so](http://qtgui.abi3.so/): undefined symbol: _ZN5QFont11tagToStringEj, version Qt_6```

I am unable to get openconnect-sso running. I'm trying to use it with an anyconnect group with 2FA Azure auth. 
twwd commented 2 months ago

I have the same issue with Fedora 40, KDE and QT 6.6.2.

vacla commented 2 months ago

@damithsenanayake @twwd You need to update QT, that will fix the issue

twwd commented 2 months ago

Fedora provides no newer version. 6.7 is not available (like in Arch). Must the QT version match the version of PyQT?

vacla commented 2 months ago

I got it from: https://pypi.org/project/PyQt6-Qt6/

damithsenanayake commented 2 months ago

I have the latest PyQT6 version (6.7.0) installed. The issue still persists. is there a way to launch the app while checking which pyqt version it's using?

vacla commented 2 months ago

There may been an update too of openconnect-sso , but not 100% sure

damithsenanayake commented 2 months ago

There were two installations of PyQt6 (user vs global). Uninstalling the older version fixed it. Thanks.