Try toi debug my program
-
Hello,
I try to run my python program which use Pyside2.
When I debug is on the import line od Pyside2 I get that error:
Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 657, in _load_unlocked File "<frozen importlib._bootstrap>", line 556, in module_from_spec File "<frozen importlib._bootstrap_external>", line 1166, in create_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed ImportError: /home/xavier/.local/lib/python3.8/site-packages/PySide2/Qt/lib/libQt5Gui.so.5: undefined symbol: _ZNK11QThreadPool8containsEPK7QThread, version Qt_5I try many fixes, but noting works properly. Exemple of fixes:
https://stackoverflow.com/questions/63903441/python3-importerror-lib-x86-64-linux-gnu-libqt5core-so-5-version-qt-5-15-n -
Hello,
I try to run my python program which use Pyside2.
When I debug is on the import line od Pyside2 I get that error:
Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 657, in _load_unlocked File "<frozen importlib._bootstrap>", line 556, in module_from_spec File "<frozen importlib._bootstrap_external>", line 1166, in create_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed ImportError: /home/xavier/.local/lib/python3.8/site-packages/PySide2/Qt/lib/libQt5Gui.so.5: undefined symbol: _ZNK11QThreadPool8containsEPK7QThread, version Qt_5I try many fixes, but noting works properly. Exemple of fixes:
https://stackoverflow.com/questions/63903441/python3-importerror-lib-x86-64-linux-gnu-libqt5core-so-5-version-qt-5-15-n -
@Xav12358
Have you tried completely uninstalling PySide2 and reinstalling from scratch?
How do you install it?
Are you installing into any kind of Python virtual environment such as anaconda?
What platform are you on?@JonB
I already try to reinstall Pyside2 and I install it using pip: Here is the full info on the package:python3.8 -m pip show Pyside2 Name: PySide2 Version: 5.15.2.1 Summary: Python bindings for the Qt cross-platform application and UI framework Home-page: https://www.pyside.org Author: Qt for Python Team Author-email: pyside@qt-project.org License: LGPLI use my system environment, no virtual environment or conda .
I am on Ubuntu 20.04. -
@JonB
I already try to reinstall Pyside2 and I install it using pip: Here is the full info on the package:python3.8 -m pip show Pyside2 Name: PySide2 Version: 5.15.2.1 Summary: Python bindings for the Qt cross-platform application and UI framework Home-page: https://www.pyside.org Author: Qt for Python Team Author-email: pyside@qt-project.org License: LGPLI use my system environment, no virtual environment or conda .
I am on Ubuntu 20.04. -
@Xav12358
I can only say I did the same under both 20.04 and 22.04 and encountered no problem.
Not that it should matter, but what exactly is yourimportline which causes the error message? -
@Xav12358 Does that mean only from "debug mode in pycharm"? Are you saying there is no problem outside PyCharm or not in debug mode?
-
In fact when I run the program without debug mode in pycharm, it works properly but in debug I have that error