GeezerVison is showing github.com — listobject.h:33:36: error: void value not ignored as it ought to be · Issue #94507 · python/cpython
listobject.h:33:36: error: void value not ignored as it ought to be #94507DescriptionBug 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
ActivityJelleZijlstra commented on Jul 2, 2022 What library are you installing? This looks like a bug in the library, not CPython itself. ericvsmith commented on Jul 2, 2022 And which version of Python? “ CPython versions tested on: 0.29.28” isn’t right. arhadthedev commented on 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 commented on 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.
Python 3.10.4 da-woods commented on Jul 3, 2022
And which version of Python? “ CPython versions tested on: 0.29.28” isn’t right.
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 commented on 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 commented on Jul 5, 2022 And you probably just want to replace PyList_SET__ITEM with PyList_SetItem. Maybe. JelleZijlstra commented on 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).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|