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

while installing anvil on MacOS, svm gives Reqwest errors #68

Closed
bout3fiddy opened this issue Dec 2, 2022 · 6 comments
Closed

while installing anvil on MacOS, svm gives Reqwest errors #68

bout3fiddy opened this issue Dec 2, 2022 · 6 comments

Comments

@bout3fiddy
Copy link

while following instructions to install anvil and foundry:

image

I get the following error:

% cargo install --path ./anvil --bins --locked --force
  Installing anvil v0.1.0
    Updating crates.io index
warning: package `blake2 v0.10.4` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `cpufeatures v0.2.2` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `ecdsa v0.14.3` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `fastrlp-derive v0.1.1` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `plotters v0.3.2` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
   Compiling svm-rs-builds v0.1.8
error: failed to run custom build command for `svm-rs-builds v0.1.8`

Caused by:
  process didn't exit successfully: `~/foundry/target/release/build/svm-rs-builds-d4598cfda6d3f928/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'Failed to fetch releases: ReqwestError(reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("github.com")), port: None, path: "/roynalnaruto/solc-builds/raw/ff4ea8a7bbde4488428de69f2c40a7fc56184f5e/macosx/aarch64/list.json", query: None, fragment: None }, source: TimedOut })', 
@mattsse
Copy link
Collaborator

mattsse commented Dec 2, 2022

This is a timed out request, could you try again with network access?

@bout3fiddy
Copy link
Author

I do have network access, and I'm not on a VPN. And yet this error persists.

I tried the same on a better network and it still fails here.

@Bapi-Reddy
Copy link

Bapi-Reddy commented Dec 10, 2022

@mattsse any possible solution to this facing same error when trying to build anvil locally. I think the issue it is due to no proper solc build for specific version of os. In my case is macos ventura on m1 mac.

Caused by:
  process didn't exit successfully: `/Users/bapir/projects/foundry/target/debug/build/svm-rs-builds-56c01b1a115d77ab/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'Failed to fetch releases: ReqwestError(reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("github.com")), port: None, path: "/roynalnaruto/solc-builds/raw/ff4ea8a7bbde4488428de69f2c40a7fc56184f5e/macosx/aarch64/list.json", query: None, fragment: None }, source: TimedOut })', /Users/bapir/.cargo/registry/src/github.com-1ecc6299db9ec823/svm-rs-builds-0.1.10/build.rs:110:57
  stack backtrace:
     0:        0x1006c8f00 - std::backtrace_rs::backtrace::libunwind::trace::h72c73b9e5db0005d
                                 at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5

@Bapi-Reddy
Copy link

Bapi-Reddy commented Dec 10, 2022

Seems like the source url: https://raw.githubusercontent.com/roynalnaruto/solc-builds/ff4ea8a7bbde4488428de69f2c40a7fc56184f5e/macosx/aarch64/list.json isn't accessible through the isp I was using. Changing the isp fixed it.

@roynalnaruto
Copy link
Collaborator

Closing this based on the above comment

@azlvmr
Copy link

azlvmr commented Mar 5, 2023

plz serve these binaries on release or other platforms, really hard to download files from github.com directly in command line

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

5 participants