georg
RRunPod
•Created by georg on 12/31/2023 in #⚡|serverless
Import PIL (pillow image library) in rp_handler.py
Hey everyone,
i try to use a tool from the PIL module to process my generated image before sending back in the handler. Unfortunately i get a although the library is installed in my network volume and is written in my requirements.txt of the handler. when i connect to my handler via web terminal and start in the command line python, i also cannot import PIL. So is it necessary to link some python libraries manually from my network volume to my handler or what is the best practice here?
5 replies
RRunPod
•Created by georg on 12/29/2023 in #⚡|serverless
Image is generated successfully, but cant not found for sending back
Hey everyone,
i call my ComfyUI backend and recieve the message in the logs:
But as a overall response i get:
whats happend here? Is this a fault in my workflow? The workflow is working locally fine.
14 replies
RRunPod
•Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
I try to add errorlogging to my custom rp_handler.py and use the runpod library for that
as far as i understand i get these messages in the Logs from my Runpod Worker (Logs -> Container Logs) This is true for some of the logger.info messages, they are working in the main function. But if i try to use this inside my function, there are not shown. Also when i try to use statements, its not getting recognized. How to log correctly in custom handlers?
19 replies
RRunPod
•Created by georg on 12/28/2023 in #⚡|serverless
Runpod Custom API request and rp_handler.py
I try to deploy a runpod worker with a network volume for ComfyUI. The handler should be able to process a minimal request and enhance it to a full-on comfyUI API request. Example Request:
this should be posted to the serverless endpoint. after this it should be going to the handler function as event and is processed there further. Unfortunately it get caught as Error by the get_job() function from the rp_job.py module of the runpod python library and throws a Error: . Is there a way to implement my idea in this way or should i try a other way or skip the error handling in the get_job() function?
7 replies