Comfy-Org / comfy-cli

Command Line Interface for Managing ComfyUI
https://docs.comfy.org/comfy-cli/getting-started
GNU General Public License v3.0
297 stars 47 forks source link

`comfy node install --fast-deps` fails silently #216

Open M1kep opened 11 hours ago

M1kep commented 11 hours ago

Describe the bug When running comfy node install ...nodes..., if --fast-deps is passed, it exits very quickly and fails to install anything, with the only output being Execute from: /root/comfy/ComfyUI.

To Reproduce Steps to reproduce the behavior

# Use a Python image with uv pre-installed
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim

# Install the project into `/app`
WORKDIR /app

# Enable bytecode compilation
ENV UV_COMPILE_BYTECODE=1

# Copy from the cache instead of linking since it's a mounted volume
ENV UV_LINK_MODE=copy

RUN uv pip install --system comfy-cli

RUN apt update
RUN apt install -y git

# [DEFAULT]
# enable_tracking = False
COPY config.ini /root/.config/comfy-cli/config.ini

RUN comfy --skip-prompt install --nvidia --fast-deps
RUN comfy node install --fast-deps cg-use-everywhere qq-nodes-comfyui ComfyUI-KJNodes rgthree-comfy ComfyUI_TensorRT

Expected behavior The nodes to install, while utilizing uv(I assume)

Nice to have

M1kep commented 11 hours ago

cm-cli.py seems to be failing due to it not expecting the --no-deps flag

#13 0.648 Execute from: /root/comfy/ComfyUI
#13 0.957 Command output:
#13 0.957
#13 0.957 Command error output:
#13 0.958 Usage: cm-cli.py install [OPTIONS] NODES...
#13 0.958 Try 'cm-cli.py install --help' for help.
#13 0.958 ╭─ Error ──────────────────────────────────────────────────────────────────────╮
#13 0.958 │ No such option: --no-deps Did you mean --mode?                               │
#13 0.958 ╰──────────────────────────────────────────────────────────────────────────────╯
#13 0.958
#13 0.958 Return code: 2
#13 0.959 Command that failed: ['/usr/local/bin/python',
#13 0.959 '/root/comfy/ComfyUI/custom_nodes/ComfyUI-Manager/cm-cli.py', 'install',
#13 0.959 'qq-nodes-comfyui', 'ComfyUI-KJNodes', 'rgthree-comfy', '--no-deps']
#13 DONE 1.0s