[Python-modules-team] Bug#955612: python3-pyqt5: Cannot import Qt from QtCore
Dmitry Shachnev
mitya57 at debian.org
Thu May 21 11:28:46 BST 2020
Control: tags -1 moreinfo
Hi,
On Fri, Apr 03, 2020 at 11:40:26AM +0200, mathieu wrote:
> I tried to run this sample code:
>
> #! /usr/bin/python3
> from PyQt5.QtCore import Qt
> print("Hello")
>
> And I instantly get this error:
>
> Traceback (most recent call last):
> File "./test-1.py", line 5, in <module>
> from PyQt5.QtCore import Qt
> ImportError: /usr/lib/python3/dist-packages/PyQt5/QtCore.cpython-37m-x86_64-linux-gnu.so:
> symbol _ZN23QOperatingSystemVersion11MacOSMojaveE version Qt_5 not defined in file libQt5Core.so.5
> with link time reference
It is strange, because this symbol is present in libqt5core5a since version
5.11.2+dfsg-1.
Can it be that you have a custom Qt installation somewhere? E.g. from the
Qt website or installed with some other package manager?
Can you check where libQt5Core.so.5 points to in the output of this command?
ldd /usr/lib/python3/dist-packages/PyQt5/QtCore.cpython-37m-x86_64-linux-gnu.so
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20200521/59037353/attachment.sig>
More information about the Python-modules-team
mailing list