Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Can't instantiate abstract class STT without an implementation for abstract method '_recognize_impl' #1138

Open
AkiThuong opened this issue Nov 26, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@AkiThuong
Copy link

AkiThuong commented Nov 26, 2024

Hello livekit devs,
I getting this error after install all the package and plugins and tried everything but pointless.
I'm using Linux Debian and install newest plugins.
I'm using minimal_assitant.py in examples/voice-pipeline-agent
Please help.

2024-11-27 00:39:00,687 - ERROR livekit.agents - unhandled exception while running the job task Traceback (most recent call last): File "/home/aki/Desktop/LiveKitAgent/agents/examples/voice-pipeline-agent/minimal_assistant.py", line 49, in entrypoint stt=DeepgramSTT(model=dg_model), ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Can't instantiate abstract class STT without an implementation for abstract method '_recognize_impl' {"pid": 1131695, "job_id": "AJ_vsGeMiDYdeS4"}

@AkiThuong AkiThuong added the bug Something isn't working label Nov 26, 2024
@zeman21
Copy link

zeman21 commented Dec 6, 2024

I also got this error, even though it was running smoothly before

@davidzhao
Copy link
Member

@zeman21 do you remember changing anything? updated packages?

@zeman21
Copy link

zeman21 commented Dec 6, 2024

@davidzhao nothing, but suddenly like that. have you found a solution?

@hoangdt1hblab
Copy link

@zeman21 Hi, I got the same issue. Have you found any solution yet?

@longcw
Copy link
Collaborator

longcw commented Dec 9, 2024

_recognize_impl was introduced a few weeks ago in https://github.com/livekit/agents/pull/957/files#diff-a255bcc409229bc883ab7bbf85b3a5a70c3f445b960dc4d7c0753525519ce0bbR68-R84, most likely your livekit-agent was upgraded but the plugins were in the old version. Can you check that with pip list | grep livekit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants