[Python-modules-team] Bug#955612: python3-pyqt5: Cannot import Qt from QtCore

mathieu bug at bumijo.net
Fri Apr 3 10:40:26 BST 2020


Package: python3-pyqt5
Version: 5.11.3+dfsg-1+b3
Severity: normal

Dear Maintainer,

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

Please forgive me if this report is incomplete/rude/useless:

 * it's my first
 * I'm not english fluent
 * I'm not python fluent

Thanks




-- System Information:
Debian Release: 10.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-8-amd64 (SMP w/1 CPU core)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-pyqt5 depends on:
ii  libc6                             2.28-10
ii  libgcc1                           1:8.3.0-6
ii  libpython3.7                      3.7.3-2+deb10u1
ii  libqt5core5a [qtbase-abi-5-11-3]  5.11.3+dfsg1-1+deb10u3
ii  libqt5dbus5                       5.11.3+dfsg1-1+deb10u3
ii  libqt5designer5                   5.11.3-4
ii  libqt5gui5                        5.11.3+dfsg1-1+deb10u3
ii  libqt5help5                       5.11.3-4
ii  libqt5network5                    5.11.3+dfsg1-1+deb10u3
ii  libqt5printsupport5               5.11.3+dfsg1-1+deb10u3
ii  libqt5test5                       5.11.3+dfsg1-1+deb10u3
ii  libqt5widgets5                    5.11.3+dfsg1-1+deb10u3
ii  libqt5xml5                        5.11.3+dfsg1-1+deb10u3
ii  libstdc++6                        8.3.0-6
ii  python3                           3.7.3-1
ii  python3-sip [sip-py3api-12.5]     4.19.14+dfsg-2

python3-pyqt5 recommends no packages.

Versions of packages python3-pyqt5 suggests:
pn  python3-pyqt5-dbg  <none>

-- no debconf information



More information about the Python-modules-team mailing list