comfy-cli icon indicating copy to clipboard operation
comfy-cli copied to clipboard

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

Open TimPietrusky opened this issue 1 year ago • 2 comments
trafficstars

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

  • Run comfy install
  • Choose mac_m_series
  • See the error
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

  • Python: 3.13.0
  • comfy-cli: 1.3.1
  • MacOS: 15.0.1

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 avatar Nov 16 '24 11:11 TimPietrusky

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

TimPietrusky avatar Nov 16 '24 12:11 TimPietrusky

This happens with python 3.13. Kornia (a dependency of comfyui itself) doensn't work in 3.13 (yet). It's best to stick to python 3.12 for now.

wouterdebie avatar Dec 30 '24 00:12 wouterdebie

We plan to improve this situation by allowing nodes to specify which version of the Python interpreter they can be installed on, but since this issue is not specific and related to comfy-cli, we will close it.

bigcat88 avatar Jul 29 '25 12:07 bigcat88