Bug 2447903 - python-cytoolz fails to build with Python 3.15: AssertionError: Missing introspection for the following callables: frozendict
Summary: python-cytoolz fails to build with Python 3.15: AssertionError: Missing intro...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cytoolz
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-03-16 09:38 UTC by Karolina Surma
Modified: 2026-03-16 09:38 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2026-03-16 09:38:31 UTC
python-cytoolz fails to build with Python 3.15.0a7.

_______________________ test_introspect_builtin_modules ________________________

    def test_introspect_builtin_modules():
        mods = [builtins, functools, itertools, operator, cytoolz,
                cytoolz.functoolz, cytoolz.itertoolz, cytoolz.dicttoolz, cytoolz.recipes]
    
        denylist = set()
    
        def add_denylist(mod, attr):
            if hasattr(mod, attr):
                denylist.add(getattr(mod, attr))
    
        add_denylist(builtins, 'basestring')
        add_denylist(builtins, 'NoneType')
        add_denylist(builtins, '__metaclass__')
        add_denylist(builtins, 'sequenceiterator')
    
        def is_missing(modname, name, func):
            if name.startswith('_') and not name.startswith('__'):
                return False
            if name.startswith('__pyx_unpickle_') or name.endswith('_cython__'):
                return False
            try:
                if issubclass(func, BaseException):
                    return False
            except TypeError:
                pass
            try:
                return (callable(func)
                        and func.__module__ is not None
                        and modname in func.__module__
                        and is_partial_args(func, (), {}) is not True
                        and func not in denylist)
            except AttributeError:
                return False
    
        missing = {}
        for mod in mods:
            modname = mod.__name__
            for name, func in vars(mod).items():
                if is_missing(modname, name, func):
                    if modname not in missing:
                        missing[modname] = []
                    missing[modname].append(name)
        if missing:
            messages = []
            for modname, names in sorted(missing.items()):
                msg = '{}:\n    {}'.format(modname, '\n    '.join(sorted(names)))
                messages.append(msg)
            message = 'Missing introspection for the following callables:\n\n'
>           raise AssertionError(message + '\n\n'.join(messages))
E           AssertionError: Missing introspection for the following callables:
E           
E           builtins:
E               frozendict

Frozendist is a new feature in Python: https://docs.python.org/dev/whatsnew/3.15.html#whatsnew315-frozendict

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

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

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.


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