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