R
RunPod8mo ago
IARI

Python modules missing when pod is starting

When starting a comfy-ui pod after some downtime, I get a lot of messages of the kind
Import times for custom nodes:
0.0 seconds: /workspace/ComfyUI/custom_nodes/websocket_image_save.py
0.0 seconds: /workspace/ComfyUI/custom_nodes/comfyui-tooling-nodes
0.0 seconds (IMPORT FAILED): /workspace/ComfyUI/custom_nodes/comfy_controlnet_preprocessors
0.0 seconds (IMPORT FAILED): /workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux
0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet
0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager

WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.

IMPORT FAILED: nodes_canny.py
IMPORT FAILED: nodes_morphology.py

This issue might be caused by new missing dependencies added the last time you updated ComfyUI.
Please do a: pip install -r requirements.txt
Import times for custom nodes:
0.0 seconds: /workspace/ComfyUI/custom_nodes/websocket_image_save.py
0.0 seconds: /workspace/ComfyUI/custom_nodes/comfyui-tooling-nodes
0.0 seconds (IMPORT FAILED): /workspace/ComfyUI/custom_nodes/comfy_controlnet_preprocessors
0.0 seconds (IMPORT FAILED): /workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux
0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet
0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager

WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.

IMPORT FAILED: nodes_canny.py
IMPORT FAILED: nodes_morphology.py

This issue might be caused by new missing dependencies added the last time you updated ComfyUI.
Please do a: pip install -r requirements.txt
and
ModuleNotFoundError: No module named 'kornia'
...
ModuleNotFoundError: No module named 'matplotlib'
...
ModuleNotFoundError: No module named 'cv2'
ModuleNotFoundError: No module named 'kornia'
...
ModuleNotFoundError: No module named 'matplotlib'
...
ModuleNotFoundError: No module named 'cv2'
Sometimes the UI does not load - and/or there are messages about missing nodes. When I restart via manager everything works as expected. What can I do to solve this problem? Should
pip install -r requirements.txt
pip install -r requirements.txt
possibly be run before every pod startup - and if so, how?
4 Replies
Madiator2011
Madiator20118mo ago
are you using some custom nodes if so you minght need to make sure they dependency is also installed into docker image
IARI
IARIOP8mo ago
Thank you - so far I've just been using the official runpod comfy-ui docker image. Has anyone maybe done that already? it would be nice to have an example docker-file that maybe starts from that image and installs some custom node that has python dependencies.
Madiator2011
Madiator20118mo ago
Maybe you can commission it to someone
nerdylive
nerdylive8mo ago
Try checking github repos on the template I'm sure some of them has like custom nodes installation or just look at comfy ui docs and match where to download them
Want results from more Discord servers?
Add your server