Error / Installation
Custom Node: IMPORT FAILED
A custom node could not be loaded at startup, so its nodes are missing in ComfyUI.
The message
Cannot import C:\…\ComfyUI\custom_nodes\ComfyUI-XYZ module for custom nodes: … (IMPORT FAILED): C:\…\custom_nodes\ComfyUI-XYZ
Affects: ComfyUI
Why is this happening?
At startup, ComfyUI loads all folders in custom_nodes. If that fails, the list “Import times for custom nodes” shows the addition “(IMPORT FAILED)”. Common reasons are missing Python packages, version conflicts between nodes, a node that no longer matches the current ComfyUI version, or an interrupted installation.
How to fix it
- Scroll up in the console window to the line “Cannot import … module for custom nodes:”. Right after that is the actual reason (for example,
No module named …). - If it says
No module named, follow the entry “No module named …” and install the missing packages. - Update the node in ComfyUI Manager and restart. Often the issue is fixed in a newer version.
- If that does not help, look for an alternative in the ComfyUI Registry or report the error on the node’s GitHub page (with ComfyUI version, log, and operating system).
- If you do not need the node, disable it in the Manager or move the folder out of
custom_nodesand restart. - If ComfyUI no longer starts at all, test without all custom nodes. Portable:
.\python_embeded\python.exe -s ComfyUI\main.py --disable-all-custom-nodes. Manual:python main.py --disable-all-custom-nodes.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Set up and maintain ComfyUI on Windows
Desktop or Portable, where the models belong, sharing models with other programs, safely installing custom nodes, updates, startup options … - Your First Image with ComfyUI
Install Comfy Desktop, learn the interface, and create your first AI image with FLUX.2 [small] 4B or Z-Image Turbo. - Your First AI Video with LTX in ComfyUI
Use LTX-2.3 in ComfyUI to create short videos with sound from text or an image. Template, files, settings, and license.
Terms for this
Similar errors
- Failed building wheel for insightface (insightface for ReActor/IPAdapter FaceID won’t install)
- ffmpeg is required for video outputs and could not be found (Video Combine cannot save a video)
- No module named … (missing Python package for custom node)
- Path too long: Filename too long / Windows Long Path support
- 'python' is not recognized or opens the Microsoft Store
Sources
- https://docs.comfy.org/troubleshooting/custom-node-issues
- https://github.com/Comfy-Org/ComfyUI/blob/master/nodes.py
- https://docs.comfy.org/manager/legacy-ui
Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.