FS#64514 - [pyside2] pyside2 broken with python 3.8: 'Shiboken.ObjectType' object is not iterable

Attached to Project: Arch Linux
Opened by lhfk (lhfk) - Friday, 15 November 2019, 16:34 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 19 December 2019, 16:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

Description:

With pyside2-5.13.2-2, in any module where at least 2 QObject-derived class declarations appear, Python throws
TypeError: 'Shiboken.ObjectType' object is not iterable
on the 2nd class declaration.

Steps to reproduce:

Execute the following code:

from PySide2 import QtWidgets as QW
class A(QW.QWidget):
pass
class B(QW.QWidget):
pass
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 19 December 2019, 16:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  pyside2 5.14.0
Comment by lhfk (lhfk) - Friday, 15 November 2019, 16:40 GMT
The whitespace got removed from the Python code in the description, attached it with correct whitespace.
Comment by Mario O. M. (marioortizmanero) - Friday, 15 November 2019, 17:06 GMT
Here's the issue in the Qt bug reports website: https://bugreports.qt.io/browse/PYSIDE-1140

The problem is that PySide2 doesn't currently support Python 3.8, so it has nothing to do with Arch Linux. Also, please read the comment that says "Hopefully, this will be solved for 5.14, which is the first release of Python 3.8 compatibility (hopefully).".
Comment by Eli Schwartz (eschwartz) - Friday, 15 November 2019, 18:02 GMT
Thank you for tracking this down. We'll keep an eye on that so we can backport python3.8 support as soon as upstream has a fix. (Switching back to python 3.7 is obviously not an option for us here!)
Comment by Eli Schwartz (eschwartz) - Wednesday, 27 November 2019, 04:06 GMT
For the record, the bug in question was closed as a duplicate of https://bugreports.qt.io/browse/PYSIDE-939, which is still not going anywhere.
Comment by Fabio (blacklight) - Sunday, 01 December 2019, 16:18 GMT
Note that as a consequence of the bug some features of PyCharm (included debugging) are also currently broken on Arch trunk: https://youtrack.jetbrains.com/issue/PY-39321
Comment by Eli Schwartz (eschwartz) - Wednesday, 04 December 2019, 04:02 GMT
Seems like this patchset is attempting to fix python 3.8 support: https://codereview.qt-project.org/c/pyside/pyside-setup/+/282705
Comment by Antonio Rojas (arojas) - Wednesday, 04 December 2019, 20:06 GMT
This doesn't apply (by far) to 5.13.2 so it will have to wait for 5.14, which should be out in a couple of weeks.
Comment by bartus (bartus) - Thursday, 12 December 2019, 06:41 GMT
There's a patch already in `5.14` branch available for a week now, perhaps we could concat relevant commits and port it here...
https://code.qt.io/cgit/pyside/pyside-setup.git/log/?h=5.14
Comment by Antonio Rojas (arojas) - Thursday, 12 December 2019, 06:47 GMT
5.14 will be out in a matter of hours, so it's not worth the effort
Comment by Eli Schwartz (eschwartz) - Thursday, 12 December 2019, 06:57 GMT
@bartus,

In the comment immediately above yours, arojas indicated he's tried to backport relevant commits, and they don't apply to 5.13

Loading...