Bug 2424562

Summary: python-utils fails to build with Python 3.15: AttributeError: module 'typing_extensions' has no attribute 'no_type_check_decorator'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-utilsAssignee: Miro Hrončok <mhroncok>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: epel-packagers-sig, ksurma, mhroncok, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2416981    
Bug Blocks: 2412434    

Description Karolina Surma 2025-12-23 10:13:55 UTC
python-utils fails to build with Python 3.15.0a3.

    Traceback (most recent call last):
      File "/usr/lib/python3.15/site-packages/sphinx/config.py", line 601, in eval_config_file
        exec(code, namespace)  # NoQA: S102
        ~~~~^^^^^^^^^^^^^^^^^
      File "/builddir/build/BUILD/python-utils-3.9.1-build/python-utils-3.9.1/docs/conf.py", line 22, in <module>
        from python_utils import __about__
      File "/builddir/build/BUILD/python-utils-3.9.1-build/python-utils-3.9.1/python_utils/__init__.py", line 52, in <module>
        from . import (
        ...<10 lines>...
        )
      File "/builddir/build/BUILD/python-utils-3.9.1-build/python-utils-3.9.1/python_utils/aio.py", line 7, in <module>
        from . import types
      File "/builddir/build/BUILD/python-utils-3.9.1-build/python-utils-3.9.1/python_utils/types.py", line 35, in <module>
        from typing_extensions import *  # type: ignore[no-redef,assignment] # noqa: F403
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: module 'typing_extensions' has no attribute 'no_type_check_decorator'

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/09941279-python-utils/

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

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 Miro Hrončok 2026-01-13 17:59:53 UTC
This error is triggered by:

   from typing_extensions import *

Nothing this package can do about it.