You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to install the program under the new Ubuntu release 22.04. I have Qt4 and Qt5 installed.
But got runtime error:
Traceback (most recent call last):
File "/home/dietmar/.local/bin/qspectrumanalyzer", line 5, in
from qspectrumanalyzer.main import main
File "/home/dietmar/.local/lib/python3.10/site-packages/qspectrumanalyzer/main.py", line 5, in
from Qt import QtCore, QtGui, QtWidgets, binding
File "/usr/local/lib/python3.10/dist-packages/Qt.py", line 1925, in
_install()
File "/usr/local/lib/python3.10/dist-packages/Qt.py", line 1903, in _install
our_submodule = getattr(Qt, name)
AttributeError: partially initialized module 'Qt' has no attribute 'QtGui' (most likely due to a circular import)
Under 20.04 everything was well.
The text was updated successfully, but these errors were encountered:
I'm not the developer, but this looks like a conflict between PyQt and Qt.py, which are two different packages. You have Qt.py installed outside the package manager and it's taking precedence over PyQt. Either remove Qt.py, move it to a virtualenv, or run qspectrumanalyzer inside its own virtualenv.
Actually I was mistaken. Qt.py is indeed used by this project, so you need it installed after all. Reinstall it but try using pip install --user Qt.py and see if that works better.
Run python3 -c "import sys; print('\n'.join(sys.path))" to see what library paths are being searched by your Python instance.
Check /usr/local/lib/python3.10/dist-packages/ for any lingering references to Qt that shouldn't be there.
I tried to install the program under the new Ubuntu release 22.04. I have Qt4 and Qt5 installed.
But got runtime error:
Traceback (most recent call last):
File "/home/dietmar/.local/bin/qspectrumanalyzer", line 5, in
from qspectrumanalyzer.main import main
File "/home/dietmar/.local/lib/python3.10/site-packages/qspectrumanalyzer/main.py", line 5, in
from Qt import QtCore, QtGui, QtWidgets, binding
File "/usr/local/lib/python3.10/dist-packages/Qt.py", line 1925, in
_install()
File "/usr/local/lib/python3.10/dist-packages/Qt.py", line 1903, in _install
our_submodule = getattr(Qt, name)
AttributeError: partially initialized module 'Qt' has no attribute 'QtGui' (most likely due to a circular import)
Under 20.04 everything was well.
The text was updated successfully, but these errors were encountered: