RunpodR
Runpod3y ago
23 replies
Daan

Issue with Dependencies Not Being Found in Serverless Endpoint

I am encountering an issue with a network volume I created:

First,I created a network volume and used it to set up a pod. During this setup, I modified the network volume: In the directory where the network volume was mounted, I created and activated a virtual environment (venv). I then installed various dependencies in this environment.

Then, I have created a serverless endpoint that utilizes this network volume. As far as I understand, this network volume is mounted on the directory runpod-volume. I initiate the venv located in this directory and then start a program that is also stored there. However, I soon encounter a problem: the dependencies that I had installed are not being found.

Could you please help me identify where I might be going wrong in this process? It seems like the dependencies installed in the venv are not being recognized or accessed by the serverless endpoint. Thanks
Solution
I think it is HIGHLY better to just bake the dependencies into the Dockerfile and activate it that way.

Also without seeing ur dockerfile is hard
Was this page helpful?