Traceback (most recent call last): File "/usr/lo...
# ask-ai
c
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/livekit/agents/ipc/inference_proc_lazy_main.py", line 105, in _handle_inference_request data = await loop.run_in_executor(None, self._runners[msg.method].run, msg.data) File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.9/site-packages/livekit/plugins/turn_detector/base.py", line 98, in run text = self._format_chat_ctx(chat_ctx) File "/usr/local/lib/python3.9/site-packages/livekit/plugins/turn_detector/base.py", line 42, in _format_chat_ctx convo_text = self._tokenizer.apply_chat_template( AttributeError: '_EUORunnerEn' object has no attribute '_tokenizer' {"pid": 33, "inference": true} 2025-06-27 142256,102 - ERROR livekit.agents - Error in _bounce_eou_task Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/livekit/agents/voice/audio_recognition.py", line 299, in _bounce_eou_task end_of_turn_probability = await turn_detector.predict_end_of_turn(chat_ctx) File "/usr/local/lib/python3.9/site-packages/livekit/plugins/turn_detector/base.py", line 200, in predict_end_of_turn result = await asyncio.wait_for( File "/usr/local/lib/python3.9/asyncio/tasks.py", line 479, in wait_for return fut.result() File "/usr/local/lib/python3.9/site-packages/livekit/agents/ipc/job_proc_lazy_main.py", line 100, in do_inference raise RuntimeError(f"inference of {method} failed: {inf_resp.error}") RuntimeError: inference of lk_end_of_utterance_en failed: inference of lk_end_of_utterance_en failed: '_EUORunnerEn' object has no attribute '_tokenizer'
t
Thanks for reaching out, Tamaghna. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The error occurs because the
_EUORunnerEn
class is attempting to use a
_tokenizer
attribute that has not been initialized. Specifically, the
_format_chat_ctx
method in the
_EUORunnerBase
class references
self._tokenizer
, but this attribute is not set up in either the
_EUORunnerBase
or
_EUORunnerEn
classes. To resolve this, ensure that the
_tokenizer
attribute is properly initialized, possibly within the
initialize()
method of the
_EUORunnerBase
class or during the instantiation of
_EUORunnerEn
. Sources: GitHub::livekit::agents | livekit-plugins/livekit-plugins-turn-detector/liv...