-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ROOT and Python 3.15 #21787
Copy link
Copy link
Open
Labels
Description
Check duplicate issues.
- Checked for duplicates
Description
Forwarded from downstream Fedora bugzilla ticket:
https://bugzilla.redhat.com/show_bug.cgi?id=2454247
root fails to build with Python 3.15.0a7.
Many many tests fail with the same traceback:
Traceback (most recent call last):
File "/builddir/build/BUILD/root-6.38.04-build/root-6.38.04/tutorials/machine_learning/TMVA_RNN_Classification.py", line 21, in <module>
import ROOT
File "/builddir/build/BUILD/root-6.38.04-build/root-6.38.04/redhat-linux-build/lib/ROOT/__init__.py", line 99, in <module>
_root_facade = ROOTFacade(sys.modules[__name__], _is_ipython)
File "/builddir/build/BUILD/root-6.38.04-build/root-6.38.04/redhat-linux-build/lib/ROOT/_facade.py", line 65, in __init__
self.__cached__ = module.__cached__
^^^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'ROOT' from '/builddir/build/BUILD/root-6.38.04-build/root-6.38.04/redhat-linux-build/lib/ROOT/__init__.py' has no attribute '__cached__' (most likely due to a circular import)
Reproducer
Run tests with root build with Python 3.15.
ROOT version
6.38.04
Installation method
Built from source for RPM package build.
Operating system
Fedora rawhide with Python 3.15 (special test repo preparing for Python update)
Additional context
Python 3.15 is planned to be included in Fedora 45.
Logs from the test builds:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/root/
Reactions are currently unavailable