ComfyUI Plugin Import Failed: Fix Custom Node Errors
Fix ComfyUI plugin import failed errors, missing custom nodes, red workflow nodes, and dependency drift without reinstalling your environment.
Start with Wonderful Launcher if this issue touches your real ComfyUI environment. Use the docs to understand the fix, and use the app to inspect the machine you already have.
Download Wonderful LauncherTested Environment
- OS: Windows 10 / 11
- Launcher: Wonderful Launcher v1.x
- ComfyUI: Portable / Managed install
- Python: 3.11+
- CUDA / Torch: CUDA 12.x / Torch 2.x
- Last tested: 2026-05-19
If ComfyUI starts but custom nodes do not load, the plugin was probably downloaded, but the Python process that starts ComfyUI could not import it safely.
If you searched for comfyui plugin import failed, the short answer is:
- identify the exact plugin and traceback first
- fix the earliest import failure, not the red node you noticed later
- install packages only in the Python environment that actually launches ComfyUI
- treat this as a dependency or packaging problem first, not as proof that all of ComfyUI is broken
That usually means one of four things:
- A required Python package is missing
- A plugin installed an incompatible dependency
- Torch or another core package was downgraded
- The plugin repo is stale, moved, or only partially installed
Highest-signal plugin import failures
These are the plugin-import patterns that show up most often in real support and launcher troubleshooting:
| Import clue | What it usually means | Best next page |
|---|---|---|
No module named 'insightface' | Face or identity plugin dependency is missing | InsightFace Missing in ComfyUI |
No module named 'onnx' or onnxruntime | ONNX-backed node dependency is missing | ONNX / ONNXRuntime Missing in ComfyUI |
No module named 'triton' | Optional acceleration or compiled backend is missing | ComfyUI Triton Missing or Unavailable |
No module named 'llama_cpp' | LLM/VLM plugin dependency is missing | llama_cpp missing in ComfyUI |
No module named 'nunchaku' | Nunchaku workflow/plugin backend is not installed correctly | Nunchaku Missing in ComfyUI |
AttributeError against ComfyUI internals | Plugin source no longer matches your ComfyUI version | Update plugin or patch source, not packages |
It is useful to separate three symptoms that often get mixed together:
| Symptom | What it usually means |
|---|---|
| Red node in a workflow | The workflow asks for a node class that is not registered |
IMPORT FAILED during startup | A plugin folder exists, but Python could not import that plugin |
| Error only when queueing a prompt | The node exists, but runtime inputs, models, CUDA, or a backend package failed |
Fix the earliest failing layer first. Installing packages for a runtime error will not help if the plugin never registered its nodes.
The good news is that plugin import failed does not always mean you must reinstall ComfyUI. In most cases, you can classify the failure, repair the environment, and keep your existing workflows and models.
Why this problem turns expensive fast
The real cost is rarely the missing node itself. The expensive part is the repair loop: reading logs, trying random pip install commands, restarting ComfyUI, and slowly drifting the environment even further.
What "plugin import failed" usually looks like
You will usually see one or more of these symptoms:
IMPORT FAILEDin the startup log- A custom node folder exists, but none of its nodes appear in ComfyUI
- The workflow opens with red nodes after restart
- A node worked before, then stopped loading after another plugin install
- ComfyUI Desktop or a portable build becomes unstable after adding custom nodes
Typical log lines look like this:
IMPORT FAILED: ComfyUI-ExampleNode
ModuleNotFoundError: No module named 'somepackage'or:
IMPORT FAILED: ComfyUI-AnotherNode
ImportError: DLL load failed while importing cv2or:
IMPORT FAILED: ComfyUI-SomePlugin
AttributeError: module 'torch' has no attribute '...'Step 1: Confirm which plugin actually failed
Do not start by installing random packages.
First, answer two questions:
- Which plugin failed to import?
- What exact error type stopped the import?
Check these places in order:
Startup log
Look for IMPORT FAILED and copy the full traceback. That tells you which plugin broke and what Python object could not be imported.
ComfyUI import failure API
If ComfyUI still launches far enough to open the UI, visit:
http://127.0.0.1:8188/v2/customnode/import_fail_info_bulkThis returns a JSON list of custom node import failures.
Workflow symptoms
If the workflow shows red nodes, note whether:
- only one plugin family is missing
- multiple unrelated plugins are missing
- the same plugin worked before another install changed the environment
That pattern helps you decide whether the problem is isolated or global.
Step 2: Classify the failure before you fix it
Most plugin import failures fall into one of these buckets.
Missing package
Example:
ModuleNotFoundError: No module named 'onnxruntime'This is usually the simplest case. The plugin expects a package that is not installed.
Broken binary package
Example:
ImportError: DLL load failed while importing cv2The package may be installed, but the binary wheel does not match your Python, CUDA, or Windows runtime.
Core dependency drift
Example:
AttributeError: module 'torch' has no attribute '...'This often means another plugin install changed a core package like torch, numpy, pillow, or opencv-python.
Repo or source problem
Example:
- The repo moved
- The plugin was only partially cloned
- Git LFS left placeholder files behind
- The plugin is too old for your current ComfyUI version
Before you run any install command
Check these three things first:
- Did the plugin ever work on this machine?
- Is the plugin folder present but broken, or completely missing?
- Did another plugin install happen right before this import started failing?
That short timeline often tells you whether you should treat the problem as a missing package, dependency drift, or source compatibility break.
Common package-specific routes
If the traceback names one of these packages, use the narrow guide before running broad plugin requirements:
| Log clue | Usually affects | Safer next guide |
|---|---|---|
No module named 'insightface' | ReActor, InstantID, IPAdapter FaceID | InsightFace Missing in ComfyUI |
No module named 'onnx' or onnxruntime | DWPose, ReActor, ONNX model inference | ONNX / ONNXRuntime Missing in ComfyUI |
No module named 'gguf' | ComfyUI-GGUF loader nodes | ComfyUI-GGUF: Fix No Module Named 'gguf' |
No module named 'triton' | SageAttention, compiled kernels, some video workflows | ComfyUI No Module Named 'triton' |
No module named 'sageattention' | Optional acceleration or video workflows | SageAttention Missing in ComfyUI |
No module named 'llama_cpp' | QwenVL GGUF, local LLM, VLM, or prompt enhancer nodes | llama_cpp missing in ComfyUI |
No module named 'nunchaku' | Nunchaku FLUX, Qwen-Image, or SVDQuant workflows | Nunchaku Missing in ComfyUI |
Torch not compiled with CUDA enabled | The GPU PyTorch build was replaced or not active | Torch CUDA repair guide |
Step 3: Repair the environment manually
Once you know the failure class, use the narrowest fix possible.
If a package is missing
Install the missing package, but do it in the same Python environment that starts ComfyUI:
| Install type | Safer command |
|---|---|
| Official GitHub Windows portable package | From the portable package root: .\python_embeded\python.exe -s -m pip install somepackage |
| Manual Git + venv install | Activate the venv, then run python -m pip install somepackage |
| ComfyUI Desktop or managed launcher | Use the app's environment/terminal tools. Do not assume the portable python_embeded layout exists. |
Then restart ComfyUI and test again.
If the package is known to be sensitive or heavy, prefer a pinned install or a wheel recommended by the plugin author.
If you suspect dependency drift
Run:
pip checkLook for conflicts around:
torchtorchvisiontorchaudionumpypillowopencv-pythontransformersdiffusers
If one plugin install changed one of those, repair the core package first, then test the failing plugin again.
For a broader walkthrough, see ComfyUI Dependency Conflicts.
If the plugin itself is outdated or partially broken
Go to the plugin folder under custom_nodes/ and verify:
- the repo is the right one
- the source files are real code, not Git LFS pointers
- the plugin still supports your ComfyUI version
- the plugin README does not require extra manual packages
If necessary:
cd custom_nodes/<plugin-name>
git pullThen reinstall only that plugin's requirements — but with caution:
Do not run pip install -r requirements.txt blindly.
- Confirm which Python environment is active (
where pythonorwhich python) - Inspect
requirements.txt— check if it pins torch, numpy, or opencv versions - Install only the missing package when possible:
pip install <package-name> - Run
pip checkafter installation to verify no conflicts were introduced
For the official Windows portable package, prefer running from the portable package root with .\python_embeded\python.exe -s -m pip install -r .\ComfyUI\custom_nodes\<plugin-name>\requirements.txt.
Step 4: Know when the command-line loop is making things worse
Manual repair is valid, but it gets expensive once you are doing this repeatedly:
- install one package
- restart ComfyUI
- hit a new import failure
- install another package
- break Torch
- repair Torch
- lose track of what changed
That is exactly where many users end up reinstalling even when the environment was technically recoverable.
When this is really a dependency-conflict problem
If one plugin import failure turns into several unrelated plugin failures after a package install, you are usually no longer dealing with a single plugin bug.
That is the point to switch to:
How Wonderful Launcher helps
Wonderful Launcher can detect and fix this issue automatically. It manages your ComfyUI environment safely — isolating dependencies, recovering broken installations, and preventing conflicts.
Download Wonderful Launcher — it's free.
A safer recovery path with Wonderful Launcher
Wonderful Launcher is built for the stage where ComfyUI is already messy.
Instead of treating the problem as "install a plugin and hope", the launcher is meant to help you:
- take over an existing Desktop or portable install
- recover from plugin import failures with less command-line hopping
- reduce reinstall risk when workflows, models, and custom nodes already exist
- move from self-recovery to expert help without changing tools
When Launcher is the better choice
If you already have workflows, downloaded models, or paid work attached to this machine, the goal should be recovery with the least possible drift, not another full reinstall.
When to escalate to expert help
Use expert help if:
- multiple unrelated plugins fail at once
- startup failures appear after plugin repair attempts
- Torch, CUDA, or OpenCV were already changed by previous fixes
- you cannot tell whether the problem is the repo, the environment, or the workflow
That is where live recovery is usually faster than another evening of trial and error.
Related guides
- ComfyUI Startup Failed? How to Diagnose and Recover Faster
- ComfyUI Dependency Conflicts
- ComfyUI No Module Named Error: When It Is Safe to Ignore
- ComfyUI No Module Named 'llama_cpp'
- ComfyUI Plugin Management
- Troubleshooting Decision Tree
Need the fastest path?
If your environment is already unstable, download Wonderful Launcher first. If the environment is still blocked after that, use expert help as the second step.
Source References
Start with Wonderful Launcher if this issue touches your real ComfyUI environment. Use the docs to understand the fix, and use the app to inspect the machine you already have.
Download Wonderful LauncherStart with Wonderful Launcher if this issue touches your real ComfyUI environment. Use the docs to understand the fix, and use the app to inspect the machine you already have.
Download Wonderful LauncherDid this fix your issue?
Your answer helps prioritize verified ComfyUI repairs.
Custom Nodes
Install ComfyUI custom nodes with Manager or manual Git clone, avoid dependency drift, and fix red nodes, import failures, or Manager node-list errors safely.
Manager Node List Error
Fix ComfyUI Manager "failed to get custom node list" by testing GitHub/raw registry access, Manager cache, proxy/firewall settings, and plugin imports.