You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
listobject.h:33:36: error: void value not ignored as it ought to be #94507
Bug report
When running a "python3 setup install",I got an error:
/usr/include/python3.10/cpython/listobject.h:33:36: error: void value not ignored as it ought to be
33 | #define PyList_SET_ITEM(op, i, v) ((void)(_PyList_CAST(op)->ob_item[i] = (v)))
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cursor.c:1088:13: note: in expansion of macro ‘PyList_SET_ITEM’
Your environment
CPython versions tested on: 0.29.28
Operating system and architecture: ubuntu 22.04 x86_64
My conclusion having looked at it as a Cython issue: I don't think this is a Cython issue (even though a Cython version was quoted I don't think it looks like Cython-generated code).
Whatever library it was was probably broken by #19975. It looks from the description there that this change was expected and intended to break some C API code.
Activity
JelleZijlstra commentedon Jul 2, 2022
What library are you installing? This looks like a bug in the library, not CPython itself.
ericvsmith commentedon Jul 2, 2022
And which version of Python? “ CPython versions tested on: 0.29.28” isn’t right.
arhadthedev commentedon Jul 2, 2022
@ericvsmith A path from the error message suggests it's 3.10.
@AlexLuya Can you write here an output of
python --version? It gives a full version.AlexLuya commentedon Jul 2, 2022
Python 3.10.4
da-woods commentedon Jul 3, 2022
This looks like a recent Cython version to me. Post it on the Cython bug tracker instead. https://github.com/cython/cython/issues
Remember to include enough code to actually reproduce the bug.
(Or of course it may be an issue in whatever package you're trying to install. In which case you should report it to them and not Cython)
da-woods commentedon Jul 5, 2022
My conclusion having looked at it as a Cython issue: I don't think this is a Cython issue (even though a Cython version was quoted I don't think it looks like Cython-generated code).
Whatever library it was was probably broken by #19975. It looks from the description there that this change was expected and intended to break some C API code.
da-woods commentedon Jul 5, 2022
And you probably just want to replace
PyList_SET__ITEMwithPyList_SetItem. Maybe.JelleZijlstra commentedon Jul 5, 2022
Closing since this doesn't seem to be a bug in CPython (and likely not in Cython either, thanks @da-woods for looking).