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

Issue installing Torch on M1 Mac #1152

Closed
masonyoungblood opened this issue Apr 30, 2024 · 1 comment
Closed

Issue installing Torch on M1 Mac #1152

masonyoungblood opened this issue Apr 30, 2024 · 1 comment

Comments

@masonyoungblood
Copy link

Installation of Torch in R on an M1 Mac fails with the following error:

trying URL 'https://storage.googleapis.com/torch-lantern-builds/binaries/refs/heads/cran/v0.12.0/latest/lantern-0.12.0+cpu+arm64-Darwin.zip'
Warning messages:
1: In utils::download.file(url = url, destfile = destfile) :
  downloaded length 0 != reported length 0
2: In utils::download.file(url = url, destfile = destfile) :
  cannot open URL 'https://storage.googleapis.com/torch-lantern-builds/binaries/refs/heads/cran/v0.12.0/latest/lantern-0.12.0+cpu+arm64-Darwin.zip': HTTP status was '403 Forbidden'
3: In file.remove(tmp) :
  cannot remove file '/var/folders/52/zyvsjfw16ks23p_11jq2xt1w0000gn/T//RtmpsPV1DA/file17c879335767.zip', reason 'No such file or directory'
4: ℹ Failed to install torch, manually run `install_torch()`
Unable to download from
<https://storage.googleapis.com/torch-lantern-builds/binaries/refs/heads/cran/v0.12.0/latest/lantern-0.12.0+cpu+arm64-Darwin.zip>
Caused by error in `download_file()`:
✖ Unable to download from
  <https://storage.googleapis.com/torch-lantern-builds/binaries/refs/heads/cran/v0.12.0/latest/lantern-0.12.0+cpu+arm64-Darwin.zip>
ℹ Please verify that the URL is not blocked by your firewall. See also <https://torch.mlverse.org/docs/articles/installation.html#file-based-download>
Caused by error in `utils::download.file()`:
! cannot open URL 'https://storage.googleapis.com/torch-lantern-builds/binaries/refs/heads/cran/v0.12.0/latest/lantern-0.12.0+cpu+arm64-Darwin.zip' 

I've tried downloading the files manually, as per the installation docs, but the liblantern links gives me the following:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<script/>
<script/>
<script/>
<Code>AccessDenied</Code>
<Message>Access denied.</Message>
<Details>Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist).</Details>
</Error>

I've tried this process on a different internet connection so it's unlikely to be a firewall issue. Do you know what the problem might be?

@dfalbel
Copy link
Member

dfalbel commented Apr 30, 2024

Hi,

Thanks for reporting!
I'm working on it. See also #1151 (comment)

@dfalbel dfalbel closed this as completed May 1, 2024
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