Details
Description
When attempting to build a debug version of pyside2 on Windows with Visual Studio 2017 and Python 2.7.15 I encounter this error:
Assertion failed: type->tp_flags & Py_TPFLAGS_HEAPTYPE, file C:\python-2.7.15\objects\typeobject.c, line 2807
The error occurs when this command is executed by the build process:
D:/python2.7/python2.7_d.exe D:/tmp/PySide2-5.12.2-src.py2.7.debug/sources/pyside2/PySide2/QtCore/../support/generate_pyi.py run --skip --sys-path D:/tmp/PySide2-5.12.2-src.py2.7.debug/pyside2dp_build/py2.7-qt5.12.3-64bit-debug/pyside2 D:/tmp/PySide2-5.12.2-src.py2.7.debug/pyside2dp_install/py2.7-qt5.12.2-64bit-debug/Lib/site-packages/shiboken2
I tracked it down and the error was introduced by this change:
"Fix Shiboken.ObjectType._new_ for Python 2.7" b2a09c05e9cc2503f1609f720060558c0db2fe03 https://codereview.qt-project.org/#/c/252439/
If I locally revert the change then the error does not occur.
Attachments
Issue Links
- resulted from
-
PYSIDE-816 Unable to call type(QtWidgets.QWidget).__new__ in Python 2.7
- Closed
For Gerrit Dashboard: PYSIDE-1003 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
261332,3 | Fix Shiboken.ObjectType.__new__ for Python 2.7 V2 | 5.12 | pyside/pyside-setup | Status: MERGED | -1 | 0 |