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

Install error on mac with skia-bindings #35

Open
arthursw opened this issue Jan 12, 2025 · 1 comment
Open

Install error on mac with skia-bindings #35

arthursw opened this issue Jan 12, 2025 · 1 comment

Comments

@arthursw
Copy link

I installed rust (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh) and I have the following error when installing loopers (cargo install loopers) on mac OS Sonoma 14.7.2 (mac M1): Probing for Python 2 failed, please make sure that it's available in PATH

Full log:


   Compiling fern v0.6.2
   Compiling loopers-engine v0.2.0
error: failed to run custom build command for `skia-bindings v0.41.0`

Caused by:
  process didn't exit successfully: `/var/folders/75/4grlrb257sj3m6xnrtplj31r0000gv/T/cargo-installEbmwd6/release/build/skia-bindings-560210ff6221ca44/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=SKIA_DEBUG
  cargo:rerun-if-env-changed=SKIA_SOURCE_DIR
  cargo:rerun-if-env-changed=FORCE_SKIA_BUILD
  cargo:rerun-if-env-changed=FORCE_SKIA_BINARIES_DOWNLOAD
  TRYING TO DOWNLOAD AND INSTALL SKIA BINARIES: 0.41.0/4593545cc851082a0f87-aarch64-apple-darwin-gl-x11
  cargo:rerun-if-env-changed=SKIA_BINARIES_URL
    FROM: https://github.com/rust-skia/skia-binaries/releases/download/0.41.0/skia-binaries-4593545cc851082a0f87-aarch64-apple-darwin-gl-x11.tar.gz
  DOWNLOAD AND INSTALL FAILED: https://github.com/rust-skia/skia-binaries/releases/download/0.41.0/skia-binaries-4593545cc851082a0f87-aarch64-apple-darwin-gl-x11.tar.gz: status code 404
  STARTING A FULL BUILD
  HOST: aarch64-apple-darwin
  cargo:rerun-if-env-changed=OPT_LEVEL
  cargo:rerun-if-env-changed=CC
  cargo:rerun-if-env-changed=CXX
  cargo:rerun-if-env-changed=SKIA_USE_SYSTEM_LIBRARIES
  cargo:rerun-if-env-changed=SDKROOT
  cargo:rerun-if-changed=MACOSX_DEPLOYMENT_TARGET
  cargo:rerun-if-env-changed=SKIA_NINJA_COMMAND
  cargo:rerun-if-env-changed=SKIA_GN_COMMAND
  Probing 'python'
  Probing 'python2'

  --- stderr
  thread 'main' panicked at /Users/amasson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/skia-bindings-0.41.0/build_support/skia/config.rs:410:9:
  >>>>> Probing for Python 2 failed, please make sure that it's available in PATH, probed executables are: ["python", "python2"] <<<<<
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `loopers v0.2.0`, intermediate artifacts can be found at `/var/folders/75/4grlrb257sj3m6xnrtplj31r0000gv/T/cargo-installEbmwd6`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Same error when I clone the repo and build it with git clone [email protected]:mwylde/loopers.git, cd loopers and cargo build.

@ericraymond
Copy link

You need to install Python 2 (not 3 which is the default) ... which is a problem now that v2 is end of life.

brew no longer installs python 2. You can do it by pyenv.

Suspect updating skia-bindings to a later version would be the the better choice (IIRC even with Python 2 installed it still fails on skia in some way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants