Bug 2246145 - Cython fails to build with Python 3.13: error: ‘_PyObject_NextNotImplemented’ undeclared
Summary: Cython fails to build with Python 3.13: error: ‘_PyObject_NextNotImplemented’...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Cython
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13 2245645
TreeView+ depends on / blocked
 
Reported: 2023-10-25 14:57 UTC by Karolina Surma
Modified: 2023-10-31 23:00 UTC (History)
6 users (show)

Fixed In Version: Cython-3.0.5-1.fc40
Clone Of:
Environment:
Last Closed: 2023-10-31 23:00:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github cython cython pull 5767 0 None open Adapt to C-API changes in CPython 3.13 2023-10-26 08:10:10 UTC

Description Karolina Surma 2023-10-25 14:57:03 UTC
Cython fails to build with Python 3.13.0a1.
It's being solved but I open this issue for both better visibility and satisfaction of the automated tools.

  /builddir/build/BUILD/cython-3.0.4/Cython/Utils.c: In function ‘__Pyx_PyIter_Next2’:
  /builddir/build/BUILD/cython-3.0.4/Cython/Utils.c:27737:35: error: ‘_PyObject_NextNotImplemented’ undeclared (first use in this function); did you mean ‘PyObject_HashNotImplemented’?
  27737 |         if (unlikely(iternext == &_PyObject_NextNotImplemented))
        |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06561466-Cython/

For all our attempts to build Cython with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/Cython/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2023-10-26 08:10:11 UTC
This blocks a big chunk of packages from being tested with Python 3.13.

Upstream has a WIP Pull Request that I've iteratively submitted to Copr, but so far not successfully.

https://github.com/cython/cython/pull/5767


Note You need to log in before you can comment on or make changes to this bug.