R
RunPod15mo 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
J.
J.15mo 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
J.
J.15mo ago
No description
J.
J.15mo ago
can do this got this ex from my own whisperx runpod template
J.
J.15mo 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
ashleyk15mo ago
Exactly, the path is hard-coded into the venv. Again, symlink solves this.

Did you find this page helpful?