IARI
IARI
RRunPod
Created by IARI on 4/30/2024 in #⛅|pods
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?
6 replies