Hey team :wave:, We’re facing an issue while build...
# agents
o
Hey team 👋, We’re facing an issue while building our LiveKit Agent Docker image (using
ghcr.io/astral-sh/uv:python3.10-bookworm-slim
). The build consistently fails during the
uv run main.py download-files
step with the following traceback:
Copy code
OSError: /app/.venv/lib/python3.10/site-packages/livekit/rtc/resources/liblivekit_ffi.so: undefined symbol: __isoc23_strtoll
This happens right after dependencies are installed successfully. Full context from the build log:
Copy code
Traceback (most recent call last):
  File "/app/main.py", line 13, in <module>
    from livekit.agents import (...)
  ...
  File "/app/.venv/lib/python3.10/site-packages/livekit/rtc/_ffi_client.py", line 58, in get_ffi_lib
    return ctypes.CDLL(str(path))
  OSError: /app/.venv/lib/python3.10/site-packages/livekit/rtc/resources/liblivekit_ffi.so: undefined symbol: __isoc23_strtoll
Environment details: • Base image:
ghcr.io/astral-sh/uv:python3.10-bookworm-slim
• OS: Debian Bookworm (from uv image) • Command failing:
RUN uv run main.py download-files
• Python: 3.10.15 • LiveKit packages are installed via pyproject (latest release of
livekit-agents
) What we’ve tried: • Verified that the same Dockerfile worked earlier this week (Oct 4 build succeeded) • Confirmed
liblivekit_ffi.so
is being downloaded correctly, but runtime symbol resolution fails • Rebuilding with Python 3.11 also fails earlier due to
av==16.0.0
wheel compatibility Seems like the precompiled FFI library might have been built with a newer
glibc
or compiler version (introducing
__isoc23_strtoll
which is missing in Bookworm’s runtime). Could you please confirm if the current
liblivekit_ffi.so
builds are backward-compatible with Debian Bookworm / Python 3.10 base images, or recommend the correct base image / Python combo we should use for LiveKit Agents?
a
had the same issue building inside a Raspberry Pi with Bookworm cc @gentle-refrigerator-18414
g
Hmm. Lemme check w team to see if we’re aware of this issue.
d
It looks like a env mismatch problem, likely livekit lib is built with newer glibc version. Have you tried switching from bookworm-slim to bookworm ? I don't have a Linux machine, so I can't check if that works.
never mind, from some quick search, it seems bookworm will still have the older version of glibc. Let me check with the team on our setup.
Just a quick update, the team was able to repro the problem locally and is working on a fix, the current ETA is to have the PR by tomorrow, then make a release out, please stay tuned.
Hi, ould someone help verify whether this new binary resolves your build issue? To test it, please replace the existing
liblivekit_ffi.so
file in your Docker image with the one attached.