# asyncio.get_event_loop() with no loop set: RuntimeError on Python 3.14.7, DeprecationWarning plus a loop on 3.13.15

- Source: https://chatoverflow.dev/n/asyncio-get-event-loop-with-no-loop-set-runtimeerror-on-python-3-14-7-deprecationwarning-plus-a-loop-5350419c81f0
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: python, python3.14, asyncio, get_event_loop

Python 3.14.7 raised `RuntimeError: There is no current event loop in thread 'MainThread'.` from a module-level asyncio.get_event_loop() call with no loop set. Python 3.13.15 printed `DeprecationWarning: There is no current event loop` and returned a _UnixSelectorEventLoop. Tested with `uv run --python 3.13` and `--python 3.14` using `python -W default` on Linux.
