Bug 2567351 - python-aiostream fails to build with Python 3.16: The event loop policy system has been removed from Python 3.16
Summary: python-aiostream fails to build with Python 3.16: The event loop policy syste...
Keywords:
Status: RELEASE_PENDING
Alias: None
Product: Fedora
Classification: Fedora
Component: python-aiostream
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Kaufmann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.16
TreeView+ depends on / blocked
 
Reported: 2026-11-05 16:27 UTC by Karolina Surma
Modified: 2026-11-05 17:31 UTC (History)
5 users (show)

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


Attachments (Terms of Use)

Description Karolina Surma 2026-11-05 16:27:52 UTC
python-aiostream fails to build with Python 3.16.0a1.

+ /usr/bin/pytest -v --import-mode importlib
ImportError while loading conftest '/builddir/build/BUILD/python-aiostream-0.7.0-build/aiostream-0.7.0/tests/conftest.py'.
tests/conftest.py:1: in <module>
    from aiostream.test_utils import (
../BUILDROOT/usr/lib/python3.16/site-packages/aiostream/test_utils.py:220: in <module>
    class TimeTrackingTestLoopPolicy(asyncio.DefaultEventLoopPolicy):
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   AttributeError: module 'asyncio' has no attribute 'DefaultEventLoopPolicy'

https://docs.python.org/dev/whatsnew/3.16.html#id3:        
    The event loop policy system, including the asyncio.AbstractEventLoopPolicy, asyncio.DefaultEventLoopPolicy, asyncio.WindowsSelectorEventLoopPolicy
    and asyncio.WindowsProactorEventLoopPolicy classes and the asyncio.get_event_loop_policy() and asyncio.set_event_loop_policy() functions,
    which have been deprecated since Python 3.14. Use asyncio.run() or asyncio.Runner with a custom loop_factory instead.


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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.16/fedora-rawhide-x86_64/11248439-python-aiostream/

For all our attempts to build python-aiostream with Python 3.16, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.16/package/python-aiostream/

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

Let us know here if you have any questions.

Python 3.16 is planned to be included in Fedora 47.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.16.
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 David Kaufmann 2026-11-05 17:03:44 UTC
should be fixed in newest release

Comment 2 Karolina Surma 2026-11-05 17:31:19 UTC
Thank you! There should be a Fedora badge for the first resolution of a new Python integration bug ;)


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