Comfy-Org / comfy-cli

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

`comfy install` fails on Mac: "Cargo, the Rust package manager, is not installed or is not on PATH" #209

Open TimPietrusky opened 2 hours ago

TimPietrusky commented 2 hours ago

Describe the bug When using comfy install to install ComfyUI on a Mac M3 Pro, an error is thrown related to "Cargo" not being installed. The end result is, that I can't install ComfyUI.

To Reproduce

Collecting kornia-rs>=0.1.0 (from kornia>=0.7.1->-r requirements.txt (line 18))
  Using cached kornia_rs-0.1.7.tar.gz (71 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]

      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/

      Checking for Rust toolchain....
      [end of output]

Expected behavior I can install ComfyUI on my Mac.

Additional context

Even after installing Rust on my Mac, I see errors:

      error: failed to parse manifest at `/private/var/folders/vq/9q38rw0x2455zr_whqcrjbhr0000gn/T/pip-install-z94__t4t/kornia-rs_98ecc1281d464032986ea3fcb48ba7c2/kornia-py/Cargo.toml`

      Caused by:
        can't find library `kornia_rs`, rename file to `src/lib.rs` or specify lib.path
      💥 maturin failed
TimPietrusky commented 2 hours ago

I guess this error is not coming from comfy install, but from ComfyUI itself or?