repair_extension
Install missing Python requirements for an on-disk ComfyUI extension pack when imports fail. Reads its actual requirements.txt, plans, and reports changes, refusing plans that alter CUDA packages.
Instructions
Install the Python requirements of a pack that is already on disk.
The other half of installing, on its own - and the half that needs neither ComfyUI-Manager nor a running ComfyUI. That is what makes it the tool for the two situations where the others cannot help: a pack whose import fails for a missing module, and an install that deliberately left its packages for later because they would have moved something ComfyUI had loaded.
It reads the requirements.txt that is actually there rather than the registry's
copy, plans it, refuses the plan if it would move a package belonging to this
install's CUDA build, writes a checkpoint, and reports the difference it made.
Run it with ComfyUI stopped when the plan is not additive. Replacing a file a running process has open fails outright on Windows, and a half-replaced package is worse than a missing one.
Args: name: the installed pack, by folder name, registry id, or part of either. dry_run: read the plan and stop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||