FS#63051 - [python2-pyqt5] unable to import QtCore with the latest PyQt/Qt5 updates

Attached to Project: Arch Linux
Opened by Outvi V (outloudvi) - Monday, 01 July 2019, 02:24 GMT
Last edited by Antonio Rojas (arojas) - Monday, 01 July 2019, 15:27 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No

Details

Description: latest version of calibre (3.44.0-2) is unable to start along with the latest PyQt/Qt5 updates. Error logs:

Fatal Python error: PyQt5.QtCore: Unable to embed qt.conf
fish: “calibre” terminated by signal SIGABRT (Abort)

Update of calibre:
* calibre (3.44.0-1 -> 3.44.0-2)

Qt related updates:

qt5-base (5.12.4-2 -> 5.13.0-6)
pyqt5-common (5.12.2-1 -> 5.12.3-1)
python2-pyqt5 (5.12.2-1 -> 5.12.3-1)
qt5-svg (5.12.4-1 -> 5.13.0-1)
qt5-declarative (5.12.4-1 -> 5.13.0-1)
qt5-location (5.12.4-1 -> 5.13.0-1)
qt5-sensors (5.12.4-1 -> 5.13.0-1)
qt5-webchannel (5.12.4-1 -> 5.13.0-1)
qt5-webkit (5.212.0alpha2+156+g95401fe3908-3 -> 5.212.0alpha3-1)
deepin-qt-dbus-factory (1.1.5-2 -> 1.1.5-3)
qt5-x11extras (5.12.4-1 -> 5.13.0-1)
deepin-qt5dxcb-plugin (1.2.2-2 -> 1.2.5-1)
qt5-multimedia (5.12.4-1 -> 5.13.0-1)
libqtxdg (3.3.1-4 -> 3.3.1-5)
deepin-qt5integration (0.3.12-2 -> 0.3.12-3)
qt5-script (5.12.4-1 -> 5.13.0-1)
qt5-speech (5.12.4-1 -> 5.13.0-1)
qt5-graphicaleffects (5.12.4-1 -> 5.13.0-1)
qt5-quickcontrols (5.12.4-1 -> 5.13.0-1)
qt5-quickcontrols2 (5.12.4-1 -> 5.13.0-1)
python-pyqt5 (5.12.2-1 -> 5.12.3-1)
qt5-imageformats (5.12.4-1 -> 5.13.0-1)
qt5-tools (5.12.4-1 -> 5.13.0-1)
qt5-webengine (5.12.4-1 -> 5.13.0-1)

Steps to reproduce:
* Install calibre
* Try to run calibre
This task depends upon

Closed by  Antonio Rojas (arojas)
Monday, 01 July 2019, 15:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  python2-pyqt5 5.12.3-2
Comment by Eli Schwartz (eschwartz) - Monday, 01 July 2019, 02:48 GMT
  • Field changed: Attached to Project (Community Packages → Arch Linux)
  • Field changed: Summary ([calibre] Unable to start with the latest PyQt/Qt5 updates → [pyqt5] calibre is unable to start with the latest PyQt/Qt5 updates)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Antonio Rojas (arojas)
I'm no longer able to build calibre at all -- as soon as the calibre build system imports PyQt5, it crashes like this. The error message clearly comes from PyQt5, not calibre.
Comment by Lupo Alberto (lupoalberto) - Monday, 01 July 2019, 04:47 GMT
I have same errors.
Comment by Eli Schwartz (eschwartz) - Monday, 01 July 2019, 05:34 GMT
Downgrading python2-pyqt5 and pyqt5-common to 5.12.2-2 (the initial qt5 5.13 rebuild seems to work.

It's a bit odd that I've been developing Calibre from git since upgrading to pyqt5 in testing, and it worked *until* I git cleaned the working tree. Otherwise I would hopefully have caught this sooner. :/
Comment by Eli Schwartz (eschwartz) - Monday, 01 July 2019, 05:44 GMT
  • Field changed: Summary ([pyqt5] calibre is unable to start with the latest PyQt/Qt5 updates → [python2-pyqt5] unable to import QtCore with the latest PyQt/Qt5 updates)
  • Field changed: Category (Packages → Packages: Extra)
  • Field changed: Architecture (x86_64 → All)
Actually it's no longer weird, because I used python3 most of the time in my working tree. So the minimal reproducer is now obvious to me.

Broken:

python2 -c 'import PyQt5.QtCore'

Working:

python -c 'import PyQt5.QtCore'
Comment by Eli Schwartz (eschwartz) - Monday, 01 July 2019, 06:13 GMT Comment by jesusjimenez (jesusjimenez) - Monday, 01 July 2019, 11:50 GMT
I needed to downgrade python2-pyqt5 and pyqt5-common to 5.12.1-1

Loading...