Bug 2259639

Summary: ceph fails to build with Python 3.13: error: there are no arguments to ‘PyEval_CallMethod’ that depend on a template parameter, so a declaration of ‘PyEval_CallMethod’ must be available
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: cephAssignee: Kaleb KEITHLEY <kkeithle>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: branto, go-sig, i, josef, kkeithle, ksurma, loic, mhroncok, steve
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 18.2.3-5.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-07 21:00:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2244836    

Description Karolina Surma 2024-01-22 13:54:34 UTC
ceph fails to build with Python 3.13.03.

./boost/python/call_method.hpp:61:9: error: there are no arguments to ‘PyEval_CallMethod’ that depend on a template parameter, so a declaration of ‘PyEval_CallMethod’ must be available [-fpermissive]
   61 |     PyObject* const result =
      |         ^~~~~~~~~~~~~~~~~


Python 3.13 removed functions deprecated in Python 3.9 -- PyEval_CallMethod(): use PyObject_CallMethod() instead.
See https://docs.python.org/3.13/whatsnew/3.13.html#id11

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

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

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 Aoife Moloney 2024-02-15 23:11:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 Kaleb KEITHLEY 2024-06-07 21:00:03 UTC
fixes are staged for the Fedora 41 Python 3.13 side tag build, which should be ceph-18-2.3-5.fc41

I built it successfully in mock using python-3.13.0b2 copr packages.