-
Notifications
You must be signed in to change notification settings - Fork 7k
Open
Labels
P1Issue that should be fixed within a few weeksIssue that should be fixed within a few weeksbugSomething that is supposed to be working; but isn'tSomething that is supposed to be working; but isn'tcommunity-backlogcoreIssues that should be addressed in Ray CoreIssues that should be addressed in Ray Corestability
Description
Description
Ray fails with a RuntimeError when using the latest uvloop version.
Expected Behavior
The script should execute successfully without any RuntimeError.
The same example works with earlier uvloop versions (uvloop==0.21.0).
Observed Behavior
The script fails with:
RuntimeError: There is no current event loop in thread 'MainThread'.Notes
- Related issue
asyncio.get_event_loopraises error instead of spawning new loop when no loop is running. MagicStack/uvloop#702
Versions / Dependencies
ray==2.50.1
vllm==0.11.1rc2
uvloop==0.22.1
Reproduction script
- Start a Docker container, for example rocm/vllm:rocm6.4.1_vllm_0.10.1_20250909
- Install the latest uvloop:
pip install uvloop==0.22.1 - Download and run the Ray LLM example:
curl -O https://raw.githubusercontent.com/ray-project/ray/9746a94393de8cf331e1906541a1df002072dad2/doc/source/data/doc_code/working-with-llms/basic_llm_example.py - Run the example:
python basic_llm_example.py
Issue Severity
None
eppaneamd, Artur-Daveian and piggybox
Metadata
Metadata
Assignees
Labels
P1Issue that should be fixed within a few weeksIssue that should be fixed within a few weeksbugSomething that is supposed to be working; but isn'tSomething that is supposed to be working; but isn'tcommunity-backlogcoreIssues that should be addressed in Ray CoreIssues that should be addressed in Ray Corestability