Daan
RRunPod
•Created by Daan on 1/2/2024 in #⚡|serverless
Problem with venv
Hi,
This is my handler.py file:
when entrypoint.sh has this code: it works fine and gives
28 replies
RRunPod
•Created by Daan on 1/1/2024 in #⚡|serverless
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
24 replies
install in network volume
Hello, I want to install some dependencies, I run "pip install -r requirements.txt" in the directory where my network volume is mounted. However, I notice that these are not installed on the newtork volume, but on the container disk (so not permanently). How can I ensure that this is installed on the network volume and therefore preserved?
11 replies
RRunPod
•Created by Daan on 12/30/2023 in #⚡|serverless
Possible error in docs: Status of a job with python code
In the docs, there is this command to retrieve the status of a submitted job:
And in the docs, this should be the equivalent python code:
But I do not want to start a job again, I just want to retrieve the status of the job (by the job_id, enpoint_id and api_key). I gues this is a small error in the docs, or isn't there a way to retrieve the status of a job by these parameters, as it is possible with curl?
13 replies