Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from PySide2 import QtWidgets, QtCore ImportError: /lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/local/lib/python3.8/dist-packages/PySide2/libpyside2.abi3.so.5.15) #2

Open
samannazz opened this issue Apr 7, 2022 · 3 comments

Comments

@samannazz
Copy link

whenever i run your progress bar code. i get this error.
and if try to add round progress bar in my already developed code it cause same error.
image

@anjalp
Copy link
Owner

anjalp commented Apr 7, 2022 via email

@samannazz
Copy link
Author

I will check and let you know

Have you check? please let me know. please create any pyqt5 project and import PySide2extn. and see if it shows any error.

@samannazz
Copy link
Author

samannazz commented May 31, 2022

Solution:
This is usually because there are multiple versions of the QT shared libraries on the system which are incompatible with each other. For instance, if an application installed from apt required Qt5, ubuntu would store the QT shared libraries in:
/usr/lib/x86_64-linux-gnu/
Meanwhile, the PyPI installed PyQt5 stores QT shared libraries in:
/lib/python/site-packages/PyQt5/Qt5/lib

The easiest solution to the import error is to ensure that ubuntu only finds PyPI’s shared QT5 libraries by modifying the system environment variable LD_LIBRARY_PATH.
this answer is copied by https://cbs-discourse.uwo.ca/t/vidi3d-import-error-involving-qt-libraries/46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants