Bug 2325193

Summary: python-blinker fails to build with Python 3.14: pluggy.PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-blinkerAssignee: José Matos <jamatos>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jamatos, ksurma, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
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:    
Bug Blocks: 2322407    

Description Karolina Surma 2024-11-11 14:02:39 UTC
python-blinker fails to build with Python 3.14.0a1.

___________________ ERROR collecting tests/test_utilities.py ___________________
/usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:540: in pytest_pycollect_makeitem_convert_async_functions_to_subclass
    ] = hook_result.get_result()
/usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:522: in pytest_pycollect_makeitem_preprocess_async_fixtures
    _preprocess_async_fixtures(collector, _HOLDER)
/usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:213: in _preprocess_async_fixtures
    if fixturedef in processed_fixturedefs or not _is_coroutine_or_asyncgen(
/usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:169: in _is_coroutine_or_asyncgen
    return asyncio.iscoroutinefunction(obj) or inspect.isasyncgenfunction(obj)
/usr/lib64/python3.14/asyncio/coroutines.py:23: in iscoroutinefunction
    warnings._deprecated("asyncio.iscoroutinefunction",
/usr/lib64/python3.14/warnings.py:668: in _deprecated
    warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead

During handling of the above exception, another exception occurred:
/usr/lib/python3.14/site-packages/pytest_asyncio/plugin.py:652: in _patched_collect
    return collector.__original_collect()
/usr/lib/python3.14/site-packages/_pytest/python.py:552: in collect
    return super().collect()
/usr/lib/python3.14/site-packages/_pytest/python.py:419: in collect
    res = ihook.pytest_pycollect_makeitem(
/usr/lib/python3.14/site-packages/pluggy/_hooks.py:513: in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
/usr/lib/python3.14/site-packages/pluggy/_manager.py:120: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
/usr/lib/python3.14/site-packages/pluggy/_callers.py:50: in _warn_teardown_exception
    warnings.warn(PluggyTeardownRaisedWarning(msg), stacklevel=5)
E   pluggy.PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
E   Plugin: asyncio, Hook: pytest_pycollect_makeitem
E   DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
E   For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
=========================== short test summary info ============================
ERROR tests/test_context.py - pluggy.PluggyTeardownRaisedWarning: A plugin ra...
ERROR tests/test_signals.py - pluggy.PluggyTeardownRaisedWarning: A plugin ra...
ERROR tests/test_utilities.py - pluggy.PluggyTeardownRaisedWarning: A plugin ...
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 3 errors in 0.49s ===============================

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08189183-python-blinker/

For all our attempts to build python-blinker with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-blinker/

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

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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 Aoife Moloney 2025-02-26 13:15:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.