I am trying to run some software, including Cadence, that seemingly relies on Qt.
In the shell, I get this response, from Cadence and other software:
ImportError: /lib64/libQt5Core.so.5: version `Qt_5_PRIVATE_API' not found (required by /usr/local/lib/python3.10/site-packages/PyQt5-5.15.6-py3.10-linux-x86_64.egg/PyQt5/QtCore.abi3.so)
First, please remove any customization you made in .bashrc, .bash_profile, or anywhere else that customized your LD_LIBRARY_PATH like with export LD_LIBRARY_PATH=/to/dir/path.
Log out and login again to make sure your session correctly reload the environment variable.
Then run ldconfig -p | grep "libQt5Core.so.5". Check if you have the result as below:
$ ldconfig -p | grep "libQt5Core.so.5"
libQt5Core.so.5 (libc6,x86-64, OS ABI: Linux 3.17.0) => /lib64/libQt5Core.so.5
If the result is empty, delete ld cache file sudo rm /etc/ld.so.cache then regenerate again with sudo ldconfig.
Check again with ldconfig -p | grep "libQt5Core.so.5".
ldconfig -p | grep "libQt5Core.so.5"
libQt5Core.so.5 (libc6,x86-64, OS ABI: Linux 3.17.0) => /lib64/libQt5Core.so.5
but the error message continues to be
File "/usr/share/cadence/src/cadence.py", line 25, in <module>
from PyQt5.QtCore import QFileSystemWatcher, QThread, QSemaphore
ImportError: /usr/lib64/libQt5Core.so.5: version `Qt_5_PRIVATE_API' not found (required by /usr/local/lib/python3.10/site-packages/PyQt5-5.15.6-py3.10-linux-x86_64.egg/PyQt5/QtCore.abi3.so)
and if rename the library /lib64/libQt5Core.so.5 for testing purpose to /lib64/libQt5Core-sec.so.5
then I get
ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory
Try to reinstall sudo dnf reinstall python3-pyqt5-sip.
Btw, I tried on Fedora 35 Workstation with sudo dnf install Cadence with capital C is working fine. Maybe you could also try sudo dnf distro sync to find if there any missing packages during the installation.
and then running cadence gets me still the same error
ImportError: /lib64/libQt5Core.so.5: version `Qt_5_PRIVATE_API' not found (required by /usr/local/lib/python3.10/site-packages/PyQt5-5.15.6-py3.10-linux-x86_64.egg/PyQt5/QtCore.abi3.so)
Hi, hopefully you’re not bothered by me replying again.
I just realize that directory /usr/local/lib/python3.10/* only present if we install Python package manually (etc. download and install from https://www.python.org/downloads/).
I’m not sure, but there maybe conflict happening in your system since Fedora 35 it self I believe have already installed (shipped with) Python 3 by default.
If you still interest repairing your app, I tried to run dnf repoquery /usr/bin/cadence --deplist and get result below as dependencies.
From above list, the dependencies you need are anything listed with word provider: *. You could reinstall it all especially that mentioning *qt*, *lib*, and *python* and hopefully it will overwrite the change made by custom python installation.