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

Missing binary for macOS (x86_64) with download-libtorch feature #897

Open
cuducos opened this issue Oct 3, 2024 · 1 comment
Open

Missing binary for macOS (x86_64) with download-libtorch feature #897

cuducos opened this issue Oct 3, 2024 · 1 comment

Comments

@cuducos
Copy link

cuducos commented Oct 3, 2024

I understand this is probably a @pytorch issue, but with download-libtorch I cannot run things locally with 2.4.0:

error: failed to run custom build command for `torch-sys v0.17.0`

Caused by:
  process didn't exit successfully: `/Users/cuducos/Library/CloudStorage/Dropbox/Projects/airnope/target/debug/build/torch-sys-6f2b19bbf05ccb75/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=LIBTORCH_USE_PYTORCH
  cargo:rerun-if-env-changed=LIBTORCH
  cargo:rerun-if-env-changed=TORCH_CUDA_VERSION

  --- stderr
  Error: https://download.pytorch.org/libtorch/cpu/libtorch-macos-x86_64-2.4.0.zip: status code 403

It makes sense: we can see here that this URL does not exist (maybe it should even be a 404, not 403, but anyway…).

Should tch-rs do something about it? Maybe check the URL before the download and offer a friendly error message if the binary does not exist for a given arch and os combo.

@cuducos
Copy link
Author

cuducos commented Oct 3, 2024

Just adding to the context: builds for macOS on x86 are gone for good.

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

1 participant