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

download error #210

Closed
86maid opened this issue Jun 17, 2024 · 1 comment
Closed

download error #210

86maid opened this issue Jun 17, 2024 · 1 comment

Comments

@86maid
Copy link

86maid commented Jun 17, 2024

I was able to download it on my browser and I was sure my agent was OK, but the program failed to download

   Compiling ort-sys v2.0.0-rc.2
error: failed to run custom build command for `ort-sys v2.0.0-rc.2`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/home/fuck/new_ddddocr/ddddocr/target/debug/build/ort-sys-a8619b6c921f7842/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=ORT_LIB_LOCATION
  cargo:rerun-if-env-changed=ORT_LIB_PROFILE

  --- stderr
  thread 'main' panicked at /root/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ort-sys-2.0.0-rc.2/build.rs:25:31:
  Failed to GET `https://parcel.pyke.io/v2/delivery/ortrs/packages/msort-binary/1.17.3/ortrs-msort_static-v1.17.3-x86_64-unknown-linux-gnu.tgz`: https://parcel.pyke.io/v2/delivery/ortrs/packages/msort-binary/1.17.3/ortrs-msort_static-v1.17.3-x86_64-unknown-linux-gnu.tgz: Connection Failed: Connect error: SOCKS feature disabled.
  stack backtrace:
     0: rust_begin_unwind
               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:645:5
     1: core::panicking::panic_fmt
               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:72:14
     2: build_script_build::fetch_file::{{closure}}
     3: core::result::Result<T,E>::unwrap_or_else
     4: build_script_build::fetch_file
     5: build_script_build::prepare_libort_dir
     6: build_script_build::real_main
     7: build_script_build::main
     8: core::ops::function::FnOnce::call_once
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@86maid
Copy link
Author

86maid commented Jun 17, 2024

Seems to be a problem with ureq in build.rs, which ignores the environment variables of the proxy software

export https_proxy=http://127.0.0.1:7890; export http_proxy=http://127.0.0.1:7890; export all_proxy=socks5://127.0.0.1:7890

So, I suggest changing ureq to reqwest

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