Bug 2454247

Summary: root fails to build with Python 3.15: 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 im
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: rootAssignee: Mattias Ellert <mattias.ellert>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mattias.ellert, mhroncok, r-maint-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: root-6.38.04-2.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-04-06 12:17:15 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: 2412434    

Description Karolina Surma 2026-04-02 08:19:23 UTC
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)


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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10243577-root/

For all our attempts to build root with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/root/

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.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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 Mattias Ellert 2026-04-06 12:17:15 UTC
A local mock build using the puthon 3.15 repo succeeds.

In koji thr rawhide x86_64 build takes slightly less than 2 hous. The copr build is killed due to timeout after 5 hours.

Can the timeout be increased?

Comment 2 Miro Hrončok 2026-04-07 09:40:32 UTC
I've set the timeout to 172000 (~48 hours) and restarted the build. However, if it still times out with that, I need to reset it back so as not to waste resources all the time.

Comment 3 Miro Hrončok 2026-04-08 12:45:01 UTC
I also requested a high-performance copr builder: https://github.com/fedora-copr/copr/issues/4256