R
RunPod10mo ago
papanton

network volume venv serverless

When trying to access venv/src pip installs from a network volume, I get moduleNotFound. When the same network volume is loaded on a Pod, it works just fine. Any tips?
Solution:
Venv needs to be loaded from the same directory path i think. u should instead in serverless just bake the dependency into the docker image
Jump to solution
5 Replies
Solution
justin
justin10mo ago
Venv needs to be loaded from the same directory path i think. u should instead in serverless just bake the dependency into the docker image
justin
justin10mo ago
No description
justin
justin10mo ago
can do this got this ex from my own whisperx runpod template
justin
justin10mo ago
GitHub
runpodWhisperx/Dockerfile at master · justinwlin/runpodWhisperx
Runpod WhisperX Docker Container Repo. Contribute to justinwlin/runpodWhisperx development by creating an account on GitHub.
ashleyk
ashleyk10mo ago
Exactly, the path is hard-coded into the venv. Again, symlink solves this.
Want results from more Discord servers?
Add your server