Bug 1895298
Summary: | PyQt4 fails to build with Python 3.10: Please migrate to new buffer protocol | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | PyQt4 | Assignee: | Rex Dieter <rdieter> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | kde-sig, mhroncok, rdieter, than, thrnciar, vstinner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-12-08 11:32:23 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1890881 |
Description
Tomáš Hrnčiar
2020-11-06 09:34:15 UTC
PyQt4 is no longer supported upstream: PyQt4 version 4.12.3 is the last version of PyQt4. "This is the last release of PyQt4. No more releases will be made." https://riverbankcomputing.com/software/pyqt/download --- It seems like the stable version is now PyQt5: "PyQt5 is a comprehensive set of Python bindings for Qt v5." PyQt5 is packaged in Fedora as: https://src.fedoraproject.org/rpms/python-qt5/blob/master/f/python-qt5.spec I don't know if Qt5 is backward compatible with Qt4. Is it possible to consider removing the PyQt4 package in Rawhide? The following packages require PyQt4: * PyMca * flatcam * ibus-bogo * pymol * python-pyqtgraph * python-qdarkstyle * python3-PyQt4-devel * python3-PyQt4-webkit * python3-cclib * python3-iep * python3-matplotlib-qt4 * python3-pyqtgraph * python3-pyudev-qt4 --- The issue comes from qpycore_encode() function of PyQt4. First of all, this function is deprecated: "#if QT_DEPRECATED_SINCE(5, 0)" Morever, qpycore_encode() has been removed from PyQt5. PyQt 5.15.1 doesn't use PyObject_AsBuffer() anymore (the discussed function removed in Python 3.10). --- The Fedora package uses PyQt4 version 4.12.3 since August 2018: * Fri Aug 31 2018 Rex Dieter <rdieter> - 4.12.3-1 - 4.12.3 I'm working on a fix: https://src.fedoraproject.org/rpms/PyQt4/pull-request/2 |