I want to debug my PyQt application but I get this error in this line from PyQt5.QtCore import *
/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by ~/.local/lib/python3.8/site-packages/PyQt5/QtCore.abi3.so
This happens ONLY in debugging. Running the file from terminal works fine.
I have two different PyQt install on my system. PyQt 5.12.8 from APT and PyQt 5.15 from PIP. (Ubuntu 20.04) This is not good but I have to leave it like that.
Why my code works if I run directly but I see errors if I want to debug? LD_LIBRARY_PATH
and PYTHON_PATH
is exactly same. I couldn't find the difference.
VSCode runs this code to start debugging:
/usr/bin/env /usr/bin/python3 ~/.vscode/extensions/ms-python.python-2020.9.114305/pythonFiles/lib/python/debugpy/launcher 42249 -- app.py