agents
agents copied to clipboard
Worker failed issue while running LiveKit Agents Starter - Python script
Bug Description
I have been trying to run the python script given in the Agent starter repository. But I keep getting Timeout error. I am attaching the traceback, please help me with this.
(agent-starter-python) PS C:\Users\aadit\Desktop\agent-starter-python> uv run python src/agent.py console
2025-11-10 15:39:40,362 - DEBUG asyncio - Using proactor: IocpProactor
Livekit Agents - Console
================================================== Press [Ctrl+B] to toggle between Text/Audio mode, [Q] to quit.
2025-11-10 15:39:40,364 - INFO livekit.agents - starting worker {"version": "1.2.18", "rtc-version": "1.0.18"} 2025-11-10 15:39:40,367 - INFO livekit.agents - starting inference executor 2025-11-10 15:39:40,406 - INFO livekit.agents - initializing process {"pid": 38560, "inference": true} 2025-11-10 15:39:44,677 - DEBUG livekit.agents - initializing inference runner {"runner": "lk_end_of_utterance_multilingual", "pid": 38560, "inference": true} 2025-11-10 15:39:50,420 - INFO livekit.agents - killing process {"pid": 38560, "inference": true} 2025-11-10 15:39:50,420 - ERROR livekit.agents - worker failed Traceback (most recent call last): File "C:\Users\aadit\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\tasks.py", line 520, in wait_for return await fut ^^^^^^^^^ File "C:\Users\aadit\Desktop\agent-starter-python.venv\Lib\site-packages\livekit\agents\ipc\channel.py", line 47, in arecv_message return _read_message(await dplx.recv_bytes(), messages) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\aadit\Desktop\agent-starter-python.venv\Lib\site-packages\livekit\agents\utils\aio\duplex_unix.py", line 35, in recv_bytes len_bytes = await self._reader.readexactly(4) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\aadit\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\streams.py", line 752, in readexactly await self._wait_for_data('readexactly') File "C:\Users\aadit\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\streams.py", line 545, in _wait_for_data await self._waiter asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\Users\aadit\Desktop\agent-starter-python.venv\Lib\site-packages\livekit\agents\cli_run.py", line 79, in _worker_run await worker.run() File "C:\Users\aadit\Desktop\agent-starter-python.venv\Lib\site-packages\livekit\agents\worker.py", line 445, in run await self._inference_executor.initialize() File "C:\Users\aadit\Desktop\agent-starter-python.venv\Lib\site-packages\livekit\agents\ipc\supervised_proc.py", line 170, in initialize init_res = await asyncio.wait_for( ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\aadit\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\tasks.py", line 519, in wait_for async with timeouts.timeout(timeout): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\aadit\AppData\Roaming\uv\python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\timeouts.py", line 115, in aexit raise TimeoutError from exc_val TimeoutError
Expected Behavior
It should run perfectly, cause I didn't skip any step.
Reproduction Steps
1.
2.
3.
...
- Sample code snippet, or a GitHub Gist link -
Operating System
Windows 11
Models Used
No response
Package Versions
"livekit-agents[silero,turn-detector]~=1.2",
"livekit-plugins-noise-cancellation~=0.2",
"python-dotenv",
"torch>=2.8.0",
python = 3.12
Session/Room/Call IDs
No response
Proposed Solution
Additional Context
No response
Screenshots and Recordings
No response