Bug 2454247 - 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
Summary: root fails to build with Python 3.15: AttributeError: partially initialized ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: root
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mattias Ellert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-04-02 08:19 UTC by Karolina Surma
Modified: 2026-04-08 12:45 UTC (History)
4 users (show)

Fixed In Version: root-6.38.04-2.fc45
Clone Of:
Environment:
Last Closed: 2026-04-06 12:17:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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