Skip to content

Failing to import on Python >= 3.14 #160

@cretz

Description

@cretz

In python/cpython#128216, asyncio.events.BaseDefaultEventLoopPolicy was renamed to asyncio.events._BaseDefaultEventLoopPolicy, so when using 3.14 and import trio_asyncio, you get:

.venv/lib/python3.14/site-packages/trio_asyncio/__init__.py:19: in <module>
    from ._loop import (
.venv/lib/python3.14/site-packages/trio_asyncio/_loop.py:122: in <module>
    class _TrioPolicy(asyncio.events.BaseDefaultEventLoopPolicy):
E   AttributeError: module 'asyncio.events' has no attribute 'BaseDefaultEventLoopPolicy'

I understand the README clarifies this library has only been tested through 3.13, but figured I'd open an issue for tracking and for others that may see the same thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions