Basic examples fail with opaque error, if repo is cloned without git-lfs installed
Bug Description
If the repo is cloned without Git LFS, the LFS-tracked assets (e.g. the Silero VAD model) are left as pointer placeholder files. This breaks even the basic examples, which crash with a cryptic error, e.g.
onnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from .../livekit-plugins/livekit-plugins-silero/livekit/plugins/silero/resources/silero_vad.onnx failed:Protobuf parsing failed.
Expected Behavior
Proper startup of the basic example apps, after clone appears to have succeeded.
Reproduction Steps
1. Clone the repo on a system without git-lfs installed (.env creds are not even required to repro the problem). Note that the clone appears to "succeed" with no problem.
2. uv run examples/voice_agents/basic_agent.py console
3. Observe the resulting `[ONNXRuntimeError]... INVALID_PROTOBUF` error and process hang.
Operating System
Ubuntu 24.04
Models Used
No response
Package Versions
livekit-agents==1.5.19.rc1
Session/Room/Call IDs
No response
Proposed Solution
Since git-lfs is a prerequisite (and not commonly installed, e.g. on Ubuntu 24.04) the README should mention that explicitly; The crash mention could hint at the likely problem too.
Additional Context
No response
Screenshots and Recordings
No response
Hi, I'd like to work on this. I'll submit a PR shortly.
Note that I've already submitted PR #6044 for this issue.
Stepping back on this one since PR #6044 is already in progress. I don't want to duplicate the fix.
Hi, I'm Himanshu, a new LiveKit contributor exploring a small first task. I saw your PR #6044 is already handling this. Would a separate regression test using an LFS pointer fixture, or a clean-clone check of the README steps, be useful? I'd like to help with validation rather than duplicate your fix. Which would you prefer?