Trying to set up my first livekit agent but having a few issues. I am following this guide Voice Agent Foundations | Building Production-Ready Voice Agents with LiveKit and trying to run the starter agent but getting stuck when running:
uv run agent.py download-files
This is the problem I am getting:
PS C:\Users\ArchieEnstone\OneDrive - Prior Park Schools\Desktop\Livekit01\livekit-voice-agent> uv run -m livekit.agents download-files
livekit_ffi::server:153:livekit_ffi::server - initializing ffi server v0.12.56
livekit_ffi::cabi:50:livekit_ffi::cabi - initializing ffi server v0.12.56
discovered 3 plugin package(s): livekit.plugins.noise_cancellation, livekit.plugins.silero, livekit.plugins.turn_detector
downloading files for livekit.plugins.silero
finished downloading files for livekit.plugins.silero
downloading files for livekit.plugins.turn_detector
[transformers] PyTorch was not found. Models won’t be available and only tokenizers, configuration and file/data utilities can be used.
‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1016)’ thrown while requesting HEAD
‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1016)’ thrown while requesting HEAD
Retrying in 1s [Retry 1/5].
Retrying in 1s [Retry 1/5].
failed downloading files for livekit.plugins.turn_detector: Cannot send a request, as the client has been closed.
downloading files for livekit.plugins.turn_detector
‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1016)’ thrown while requesting HEAD
‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1016)’ thrown while requesting HEAD
Retrying in 1s [Retry 1/5].
Retrying in 1s [Retry 1/5].
‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1016)’ thrown while requesting HEAD
‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1016)’ thrown while requesting HEAD
Retrying in 1s [Retry 1/5].
Retrying in 1s [Retry 1/5].
failed downloading files for livekit.plugins.turn_detector: Can’t load the configuration of ‘livekit/turn-detector’. If you were trying to load it from ’ Models – Hugging Face ', make sure you don’t have a local directory with the same name. Otherwise, make sure ‘livekit/turn-detector’ is the correct path to a directory containing a config.json file
I have tried doing (which is now install that this hasn’t helped:
pip install certfi
and also ensured that Pytorch (package called torch) is install which it is.
Would appreciate any solutions or ideas.
Thanks