Bug 2423892 - python-typeguard fails to build with Python 3.15: TypeError: cache_from_source() takes 1 positional argument but 2 positional arguments (and 1 keyword-only argument) were given
Summary: python-typeguard fails to build with Python 3.15: TypeError: cache_from_sourc...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-typeguard
Version: 45
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Benson Muite
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2025-12-19 15:03 UTC by Karolina Surma
Modified: 2026-10-13 09:43 UTC (History)
7 users (show)

Fixed In Version: python-typeguard-4.4.4-4.fc45
Clone Of:
Environment:
Last Closed: 2026-10-13 09:43:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-12-19 15:03:52 UTC
python-typeguard fails to build with Python 3.15.0a3.

======= 4 failed, 377 passed, 4 skipped, 9 xfailed, 100 errors in 6.68s ========

- all failures and errors afaik have the exact same rootcause:

___________________________ test_commandline_options ___________________________
/builddir/build/BUILD/python-typeguard-4.4.3-build/python-typeguard-4.4.3/tests/test_pytest_plugin.py:66: in test_commandline_options
    pytestconfig = pytester.parseconfigure(
/usr/lib/python3.15/site-packages/_pytest/pytester.py:1250: in parseconfigure
    config._do_configure()
/usr/lib/python3.15/site-packages/_pytest/config/__init__.py:1119: in _do_configure
    self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
/usr/lib/python3.15/site-packages/pluggy/_hooks.py:534: in call_historic
    res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.15/site-packages/pluggy/_manager.py:120: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/builddir/build/BUILD/python-typeguard-4.4.3-build/BUILDROOT/usr/lib/python3.15/site-packages/typeguard/_pytest_plugin.py:108: in pytest_configure
    callback = resolve_reference(fail_callback_option)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/builddir/build/BUILD/python-typeguard-4.4.3-build/BUILDROOT/usr/lib/python3.15/site-packages/typeguard/_utils.py:136: in resolve_reference
    obj = import_module(modulename)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1303: in _gcd_import
    ???
<frozen importlib._bootstrap>:1276: in _find_and_load
    ???
<frozen importlib._bootstrap>:1247: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:857: in _load_unlocked
    ???
/builddir/build/BUILD/python-typeguard-4.4.3-build/BUILDROOT/usr/lib/python3.15/site-packages/typeguard/_importhook.py:98: in exec_module
    super().exec_module(module)
<frozen importlib._bootstrap_external>:743: in exec_module
    ???
<frozen importlib._bootstrap_external>:824: in get_code
    ???
/builddir/build/BUILD/python-typeguard-4.4.3-build/BUILDROOT/usr/lib/python3.15/site-packages/typeguard/_importhook.py:51: in optimized_cache_from_source
    return cache_from_source(path, debug_override, optimization=OPTIMIZATION)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   TypeError: cache_from_source() takes 1 positional argument but 2 positional arguments (and 1 keyword-only argument) were given

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/09935445-python-typeguard/

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

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 Fedora Admin user for bugzilla script actions 2025-12-20 00:55:17 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 2 Fedora Admin user for bugzilla script actions 2025-12-23 12:52:41 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 4 Aoife Moloney 2026-08-17 14:03:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.


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