red-optician-55467
12/02/2025, 7:10 PM2025-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'tall-airline-16756
12/02/2025, 7:10 PMtall-airline-16756
12/02/2025, 7:11 PMlivekit.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 LiveKitred-optician-55467
12/02/2025, 7:11 PMtall-airline-16756
12/02/2025, 7:12 PMlivekit.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 | DeepWikired-optician-55467
12/02/2025, 7:17 PMtall-airline-16756
12/02/2025, 7:17 PMconnector_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.creamy-window-79763
12/02/2025, 7:30 PMtall-airline-16756
12/02/2025, 7:30 PMpip 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?prehistoric-lion-61312
12/02/2025, 7:33 PMtall-airline-16756
12/02/2025, 7:33 PM--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.prehistoric-lion-61312
12/02/2025, 7:33 PMtall-airline-16756
12/02/2025, 7:34 PM--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 | DeepWikired-optician-55467
12/02/2025, 7:37 PMtall-airline-16756
12/02/2025, 7:37 PM--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?red-optician-55467
12/02/2025, 7:37 PMtall-airline-16756
12/02/2025, 7:38 PMpip 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?quaint-ambulance-32873
12/02/2025, 7:49 PMprehistoric-lion-61312
12/02/2025, 8:57 PMlivekit 1.0.20 which apparently already points towards that version internally, and the error is gone 👍