Exception importing PyQt5.QtWidgets and others

ullix ullix at urkam.de
Mon Jan 8 12:50:19 GMT 2024


I get this traceback on Exception when importing:

Traceback (most recent call last):
   File "/home/ullix/geigerlog/geigerlog/gsup_utils.py", line 185, in 
<module>
from PyQt5.QtWidgets import *
ImportError: 
/home/ullix/geigerlog/geigerlog/venvGL67/lib/python3.10/site-packages/PyQt5/QtWidgets.abi3.so: 
undefined symbol: _ZdlPvm, version Qt_5

I have this version installed in a venv:
Module: PyQt5                  Installed Version: 5.15.10

I downgraded the version to .9, .8. .7, .6, .5, .4, .3 and all failed in 
the same way (QtWidgets.abi3.so: undefined symbol: _ZdlPvm, version Qt_5)

In the older versions 5.15.2,  .1,  .0 it worked ok.


Also tried other imports and it failed:
import PyQt5.QtCore
ImportError: 
/home/ullix/geigerlog/geigerlog/venvGL67/lib/python3.10/site-packages/PyQt5/QtCore.abi3.so: 
undefined symbol: _ZdlPvm, version Qt_5

While this again worked-on up to  15.5.2 but not on later versions.


Further, I tried:
importPyQt5

and at least this import worked on all versions from 15.5.0 to 15.5.10
ullix
$ lsb_release -a No LSB modules are available. Distributor ID: Linuxmint 
Description: Linux Mint 21.2 Release: 21.2 Codename: victoria
$ uname -a Linux urkam 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 
13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20240108/22b3550c/attachment.htm>


More information about the PyQt mailing list