Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TimPietrusky opened this issue Nov 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@TimPietrusky
Copy link

TimPietrusky commented Nov 16, 2024

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 TimPietrusky added the bug Something isn't working label Nov 16, 2024
@TimPietrusky
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant