Hello, I just got the following error while instal...
# ask-ai
r
Hello, I just got the following error while installing talkingbits
Copy code
2025-12-02T19:05:34.814230078Z   File "/usr/local/lib/python3.10/site-packages/livekit/api/__init__.py", line 36, in                                                                     
2025-12-02T19:05:34.814232793Z     from livekit.protocol.connector_whatsapp import *                                                                                                             
2025-12-02T19:05:34.814235258Z ModuleNotFoundError: No module named 'livekit.protocol.connector_whatsapp'
t
Thanks for reaching out, Alejandro. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding to the ModuleNotFoundError for
livekit.protocol.connector_whatsapp
you saw while installing talkingbits. What’s happening • The
connector_whatsapp
module is not part of the public LiveKit Python SDK. The talkingbits package appears to be importing a module that doesn’t exist in the LiveKit release you have. What you can do next • Confirm versions: a. Which version of the
livekit
package do you have installed? (Run
pip show livekit
.) b. Which version of
talkingbits
are you installing, and how (pip, local repo, git branch)? • If talkingbits expects an unreleased or internal LiveKit module, try using a matching livekit build or branch that talkingbits documents (if one exists). • Short-term WhatsApp option: use a SIP proxy to bridge WhatsApp into LiveKit (WhatsApp uses Opus audio). This is the supported workaround until native WhatsApp integration is released. • If you’d like, share the output of
pip show livekit
and the exact talkingbits install command or requirements so I can suggest a precise next step. I can help next with version matching or checking the talkingbits source for that import — which would you like me to do? Sources: WhatsApp Integration with LiveKit
r
this is my requirements file livekit-agents[google,elevenlabs,openai,silero,deepgram,cartesia,turn-detector,gladia,rime,groq]==1.2.15 #livekit-plugins-openai[vertex]>=0.10.10 python-dotenv~=1.0 livekit-api requests colorama mcp~=1.1.2 livekit-plugins-noise-cancellation~=0.2 google-cloud-texttospeech>=2.16.2,<3.0.0 Flask~=3.0 prometheus_client~=0.20 opentelemetry-sdk opentelemetry-exporter-otlp google-generativeai openai>=1.0.0 groq>=0.5.0
t
Thanks — I reviewed your requirements file and the import error for
livekit.protocol.connector_whatsapp
. What I see • Your requirements include
livekit-agents==1.2.15
and
livekit-api
, which are valid public packages. • There is no public
livekit.protocol.connector_whatsapp
module in the LiveKit SDKs. That import is not included in released LiveKit packages. Recommended next steps 1. Tell me how you installed talkingbits (pip from PyPI, git clone, or local repo) and the exact install command you used. 2. Share the output of: ◦
pip show livekit
◦
pip show livekit-agents
1. Search the talkingbits source for the import to confirm where it’s referenced (paste the import line or file path if you can). Options depending on results • If talkingbits requires an unreleased or private LiveKit branch, we’ll need the matching LiveKit package or to remove/replace that import. • If the import is accidental in talkingbits, edit the code to remove it or conditionalize it and retry. • If you’re trying to integrate WhatsApp now, use a SIP proxy to bridge into LiveKit (WhatsApp uses Opus); native WhatsApp support isn’t publicly available yet. Which of the three actions above would you like help with first? Sources: SDKs | livekit/livekit_composite | DeepWiki | WhatsApp Integration with LiveKit | examples/voice_agents | livekit/livekit_composite | DeepWiki | sip | livekit/livekit_composite | DeepWiki
r
I cannot do the pip show commands cause the system is installed on a container and the container stops after the error
t
Thanks — I understand the container stops before you can run diagnostics. I’ll focus on steps you can do outside the running container and checks you can make to unblock installation. Quick checklist and next steps you can run from the host (no container runtime required) 1. Inspect the image/build files • Share the Dockerfile or the lines that install Python deps. That shows whether talkingbits is installed from PyPI, a git repo, or copied in. 1. Search the talkingbits package before running it • If you have the talkingbits wheel/source on the host (or can pull it), grep for the import: ◦ Search for
connector_whatsapp
in the talkingbits source or installed package files. • If the import exists, note the file path and exact import line (paste it here). 1. Rebuild/run the container with an interactive shell to inspect before the crash • Modify your Dockerfile or run the container with an override command so it stays up: ◦ Add
CMD ["sleep", "infinity"]
or override with
/bin/sh
when you start it. ◦ Then exec into the container and run
pip show livekit
/
pip list
/ inspect package files. • If you cannot change the image, run the same build steps locally in a throwaway container: ◦ docker run -it --entrypoint /bin/sh <image> (or during build, use
RUN
to list files). 1. Quick workaround if the import is the problem • If talkingbits imports
livekit.protocol.connector_whatsapp
and that module doesn’t exist: ◦ Edit the talkingbits source to remove or guard that import (e.g., try/except ImportError) before installing the package into the image. ◦ Alternatively, create a minimal stub module at
livekit/protocol/connector_whatsapp.py
in the image that prevents the import error (empty file or raising a clear error later). 1. If talkingbits comes from PyPI vs git • If from PyPI: it likely expects a private/experimental LiveKit; try installing talkingbits from the git repo or a branch (or inspect the PyPI package contents). • If from git/local: ensure you have the correct submodule/branch checked out. What I need from you to give a precise fix • The Dockerfile (or the install command sequence) you use to build the container. • How you install talkingbits (PyPI name and version, or git URL/branch). • If possible, paste the import line or small snippet where
connector_whatsapp
is referenced (path/filename). Which of these would you like to try first? If you share your Dockerfile or the talkingbits install source, I’ll point to the exact edit or command to keep the container up and fix the import.
c
I'm facing the same issue suddenly. The same code deployment worked 30min ago
t
Sorry—that sudden failure is frustrating. I’ll help troubleshoot quickly. A few quick diagnostic questions (they’ll narrow the cause fast): 1. Did anything change in the last 30 minutes? (requirements file, Dockerfile, deploy script, auto-updates, private package changes) 2. How is talkingbits installed in the image? (pip from PyPI, pip from a git URL, local wheel/source) 3. Do you pin versions for all packages during build? Any
pip install --upgrade
or
--pre
flags used? 4. Can you share the Dockerfile lines that install Python deps (or the build log excerpt around pip installs)? Immediate actions you can try now • Rebuild the image with a pinned known-good state: ensure pip installs use exact versions from your working deploy 30 minutes ago (add
--no-cache-dir
and avoid
--upgrade
). • If you can modify the image/build quickly, add a temporary
CMD ["sleep","infinity"]
or run the container with an overridden entrypoint so it stays up, then exec in and run
pip list
/
grep -R connector_whatsapp /usr/local/lib/python*
. • If talkingbits is from PyPI, fetch the package tarball/wheel locally and inspect it for
connector_whatsapp
references before building. If you want, paste: • The Dockerfile install lines • The talkingbits install command or pip line I’ll point to the exact change to make (for example pinning a version, adding a stub module, or removing the bad import). Which of those would you like to try first?
p
Another one here 😕
t
I’m sorry you’re hitting this again — that’s frustrating. I’ll help pinpoint it quickly. To diagnose fast, please share: • The exact error/log lines you now see (full stack trace if possible). • The Dockerfile lines that install Python dependencies (the pip install or requirements copy/run). • How talkingbits is installed (PyPI package name/version, git URL and branch, or local wheel). • Whether anything changed in the last 30 minutes (CI pipeline, private package push, base image updates, or pip flags like
--upgrade
). If you want an immediate quick test you can run on the host (no running app required): 1. Pull the talkingbits wheel/tarball locally (if from PyPI:
pip download talkingbits==<version>
or the package name you use) and grep for
connector_whatsapp
before building the image. 2. Rebuild the image but override the container command so it stays up: ◦ Add or override with
CMD ["sleep","infinity"]
then
docker run -it --entrypoint /bin/sh <image>
and run
pip list
and
grep -R connector_whatsapp /usr/local/lib/python*
. 1. As a quick workaround, if the import exists and you control the image, add a stub file at
livekit/protocol/connector_whatsapp.py
(empty) in the image to prevent the immediate crash while we investigate. Tell me which you can run and paste the Dockerfile or the new error trace — I’ll indicate the exact lines to change or the next action.
p
Something must have changed
t
Sorry — that’s frustrating. Since this broke suddenly, the fastest path is to check what changed in the last 30 minutes and to inspect the talkingbits package source before it runs. Please: 1) Tell me if any of these changed recently (even CI or automatic updates): • requirements.txt or Dockerfile • talkingbits version (PyPI vs git vs local) • base image or rebuild of the image • any private package publish or index change • any pip flags like
--upgrade
or
--pre
2) Share the Dockerfile lines that install Python deps (or paste the exact pip install / requirements install command you use). 3) If you can, fetch the talkingbits package locally (host) before running the container and grep for the import: • If from PyPI: run
pip download talkingbits
then
grep -R "connector_whatsapp" talkingbits*
• If from git: clone the repo and
grep -R "connector_whatsapp" .
4) Quick temporary fixes you can apply in the image/build: • Add an empty stub file at
livekit/protocol/connector_whatsapp.py
in the site-packages path to prevent the import error. • Or modify talkingbits source to wrap that import in a try/except so the container can start. If you paste the Dockerfile install lines or the talkingbits install command now, I’ll tell you the exact command to run on the host to inspect the package and the exact file path to add a stub in the image. Which would you like to do? Sources: WhatsApp Integration with LiveKit | SDKs | livekit/livekit_composite | DeepWiki | Server-side | livekit/livekit_composite | DeepWiki | Agents (Python) | livekit/livekit_composite | DeepWiki
r
yea, same code deployed on my dev environment worked, and a few minutes ago, deploying in QA I get this problem
t
I get that this is urgent — let’s narrow it down quickly so QA is back to green. Please paste these three things (just the exact text/snippets): 1) The Dockerfile lines (or build steps) that install Python deps (COPY/requirements + the pip install command). 2) The exact command you use to install talkingbits (pip line, PyPI package name/version, or git URL + branch). 3) Any recent changes between dev and QA in the last hour (base image, CI pipeline, requirements.txt, private package publish, or pip flags like
--upgrade
). While you paste those, try this quick host-side check (no container start needed): • If talkingbits is from PyPI: run on the host a. pip download talkingbits b. tar -tzf talkingbits-*.tar.gz | grep connector_whatsapp If from git: git clone the repo and run: • grep -R "connector_whatsapp" . If you want, paste the three snippets and I’ll point to the exact line to change (add stub, pin a package, or modify install) and give the exact Dockerfile/build commands to keep the container up so you can inspect packages. Which snippet will you share first?
r
maybe its time to create an issue
👍 1
t
Creating an issue makes sense given this broke suddenly. I can help you draft it and gather the diagnostics we need. Before you file, please tell me: • Where talkingbits is hosted (GitHub repo URL or PyPI package name and version). • Whether you want the issue opened in the talkingbits repo or somewhere else. To include in the issue, please paste these items (or let me collect them for you if you give access info): 1. Full error/stack trace (the ModuleNotFoundError lines you posted are good; include any surrounding logs). 2. Dockerfile/build steps that install Python deps (COPY/requirements + pip install command). 3. Exact talkingbits install command (PyPI name/version or git URL + branch). 4. Output of one quick host-side check (run on your host, not in container): ◦ If PyPI:
pip download talkingbits
then
tar -tzf talkingbits-*.tar.gz | grep connector_whatsapp
◦ If git:
git clone <repo>
and
grep -R "connector_whatsapp" .
1. Whether dev and QA use identical base images and pip flags (especially
--upgrade
). Immediate workaround to include in the issue (to unblock QA): • Add a stub file at
livekit/protocol/connector_whatsapp.py
in the image before runtime (empty file) so the import won’t crash, or wrap the import in talkingbits with try/except to defer the error. If you want, paste the repo/packaging info now and I’ll draft the issue text (title, reproduction steps, logs, suggested workaround) you can paste into GitHub. Which repo should I target?
q
Hi all, had a quick chat with the team on this. https://pypi.org/project/livekit-api/1.1.0/ should fix this issue cc @nice-piano-9301
👀 1
🙌 1
p
Thanks! Bumped to
livekit
1.0.20 which apparently already points towards that version internally, and the error is gone 👍