Download debug_nodes.sh from Hammerthyme/kira-loras: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/Hammerthyme/kira-loras/resolve/main/debug_nodes.sh
- Command line
-
hf download hf://Hammerthyme/kira-loras/debug_nodes.sh
-
curl -L -o debug_nodes.sh https://huggingface.co/Hammerthyme/kira-loras/resolve/main/debug_nodes.sh
1.01 kB
| # Debug why custom nodes are failing to import | |
| cd /workspace/ComfyUI/custom_nodes | |
| for node in rgthree-comfy ComfyUI-Easy-Use ComfyUI-KJNodes ComfyUI-AdvancedLivePortrait ComfyUI-Florence2 ComfyUI-Impact-Pack comfyui_controlnet_aux; do | |
| echo "========================================" | |
| echo "Testing: $node" | |
| echo "========================================" | |
| cd "/workspace/ComfyUI/custom_nodes/$node" | |
| # Install requirements if they exist | |
| if [ -f requirements.txt ]; then | |
| echo ">>> Installing requirements" | |
| pip install -q -r requirements.txt 2>&1 | tail -5 | |
| fi | |
| # Try to actually import the module to see the error | |
| cd /workspace/ComfyUI | |
| python3 -c "import sys; sys.path.insert(0, 'custom_nodes/$node'); import importlib.util; spec = importlib.util.spec_from_file_location('test_module', 'custom_nodes/$node/__init__.py'); m = importlib.util.module_from_spec(spec); spec.loader.exec_module(m); print(' OK imported')" 2>&1 | tail -10 | |
| echo "" | |
| done | |