Things to check first
AnyIO version
4.6.2
Python version
3.12
What happened?
Unexpected exception. Code that runs fine with trio and asyncio fails with anyio.
How can we reproduce the bug?
In a newly started Python:
from anyio import Event
event = Event()
event.set()
This code works fine if we replace anyio with trio or asyncio. On anyio I get the error message AsyncLibraryNotFound.
It seems strange that anyio has no problem creating the Event, but fails in setting it.