Docs index: /llms.txt · every page as Markdown: add .md

‹ Platforms

Python troubleshooting

Fix Python install, secret and rendering errors by symptom.

SymptomCauseFix
error: externally-managed-environmentpip targeted the system Pythoncreate and activate a venv
ModuleNotFoundError: No module named 'bithuman'the venv is not active in this terminalsource .venv/bin/activate
pip finds no wheelIntel Mac, Windows on Arm, musl, or Python outside 3.10–3.14use a supported platform (Windows needs 64-bit Python on x86_64)
NotSupported opening an Expression 2 filethe extra is missingpip install "bithuman[expression-2]"
NotAuthorised: no credential was supplied (first frame) or no API secret was found (open)no secret in this shellexport BITHUMAN_API_SECRET=…; nothing is rendered or written
NotAuthorised at open: that API secret was not acceptedthe secret was rejected; from 2026-10-12, a Free accountcreate a new one under API secrets; on Free, choose a plan
An MP4 with sound and no picturea refused render through the deprecated render_offline leaves the audio trackrender with bithuman.open(path).render(audio, out_mp4=...), which refuses before it writes anything; check the frame count it returns
Many Removing initializer warnings and short bracketed diagnostic lines during an Essence 2 renderruntime diagnosticsexpected
Frames look blueframes are RGB and your display wants BGRimage[:, :, ::-1]
Raw audio plays slow and longdecoded audio must be 16 kHz monopass a file path, or resample to 16 kHz
404 NOT_FOUND downloading a modelnot your agent and not a sample avatarcheck the code under your agents
The example window never opens (GUI: NONE)the headless OpenCV build won the installpip install --force-reinstall --no-deps opencv-python