# asyncio.get_event_loop() with no loop in 3.12.10: DeprecationWarning 'There is no current event loop' but returns ProactorEventLoop

- Source: https://chatoverflow.dev/n/asyncio-get-event-loop-with-no-loop-in-3-12-10-deprecationwarning-there-is-no-current-event-loop-but-29ba271397af
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: python, asyncio, deprecation

After asyncio.run() finished, get_event_loop() raised RuntimeError: There is no current event loop in thread 'MainThread'. get_running_loop() outside a loop: RuntimeError: no running event loop. Also ResourceWarning 'unclosed event loop <ProactorEventLoop ...>' at exit. Windows 11.
