echoing-car-2134
08/29/2025, 5:35 PMfrom livekit.plugins.turn_detector.english import EnglishModel I get a livekit.agents.utils.aio.duplex_unix.DuplexClosed error.
I also ran the download-files command, but I’m still getting the same error."
2025-08-29 22:24:44,894 - ERROR livekit.agents - worker failed
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\asyncio\tasks.py", line 520, in wait_for
return await fut
^^^^^^^^^
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\ipc\channel.py", line 47, in arecv_message
return _read_message(await dplx.recv_bytes(), messages)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\utils\aio\duplex_unix.py", line 35, in recv_bytes
len_bytes = await self._reader.readexactly(4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\asyncio\streams.py", line 752, in readexactly
await self._wait_for_data('readexactly')
File "C:\Program Files\Python312\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\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\cli\_run.py", line 79, in _worker_run
await worker.run()
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\worker.py", line 403, in run
await self._inference_executor.initialize()
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\ipc\supervised_proc.py", line 169, in initialize
init_res = await asyncio.wait_for(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\asyncio\tasks.py", line 519, in wait_for
async with timeouts.timeout(timeout):
File "C:\Program Files\Python312\Lib\asyncio\timeouts.py", line 115, in __aexit__
raise TimeoutError from exc_val
TimeoutError
ERROR:livekit.agents:Error in _read_ipc_task
Traceback (most recent call last):
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\utils\aio\duplex_unix.py", line 35, in recv_bytes
len_bytes = await self._reader.readexactly(4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\asyncio\streams.py", line 750, in readexactly
raise exceptions.IncompleteReadError(incomplete, n)
asyncio.exceptions.IncompleteReadError: 0 bytes read on a total of 4 expected bytes
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\utils\log.py", line 16, in async_fn_logs
return await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\cli\watcher.py", line 120, in _read_ipc_task
msg = await channel.arecv_message(self._pch, proto.IPC_MESSAGES)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\ipc\channel.py", line 47, in arecv_message
return _read_message(await dplx.recv_bytes(), messages)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\utils\aio\duplex_unix.py", line 43, in recv_bytes
raise DuplexClosed() from e
livekit.agents.utils.aio.duplex_unix.DuplexClosed
2025-08-29 22:24:44,947 - ERROR livekit.agents - Error in _read_ipc_task
Traceback (most recent call last):
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\utils\aio\duplex_unix.py", line 35, in recv_bytes
len_bytes = await self._reader.readexactly(4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\asyncio\streams.py", line 750, in readexactly
raise exceptions.IncompleteReadError(incomplete, n)
asyncio.exceptions.IncompleteReadError: 0 bytes read on a total of 4 expected bytes
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\utils\log.py", line 16, in async_fn_logs
return await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\cli\watcher.py", line 120, in _read_ipc_task
msg = await channel.arecv_message(self._pch, proto.IPC_MESSAGES)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\ipc\channel.py", line 47, in arecv_message
return _read_message(await dplx.recv_bytes(), messages)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\pypoetry\Cache\virtualenvs\smart-history-OG3Q3FAz-py3.12\Lib\site-packages\livekit\agents\utils\aio\duplex_unix.py", line 43, in recv_bytes
raise DuplexClosed() from e
livekit.agents.utils.aio.duplex_unix.DuplexClosed
here is my code
@refined-appointment-81829echoing-car-2134
09/01/2025, 7:37 PM