Skip to content

Tensorflow-sys build.rs wrong version #405

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

Closed
barakugav opened this issue May 1, 2023 · 1 comment
Closed

Tensorflow-sys build.rs wrong version #405

barakugav opened this issue May 1, 2023 · 1 comment

Comments

@barakugav
Copy link

In build.rs of tensorflow-sys-0.23.0 we have the following code:

const VERSION: &str = "2.11.0";
const TAG: &str = "v2.11.0";

Which causes the following error:

error: failed to run custom build command for `tensorflow-sys v0.23.0`

Caused by:
  process didn't exit successfully: `C:\code\cattus\target\debug\build\tensorflow-sys-ecc5cc8efd72d578\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=TENSORFLOW_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=TENSORFLOW_STATIC
  cargo:rerun-if-env-changed=TENSORFLOW_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  tensorflow-sys/build.rs:208: binary_url = "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflowwwww-gpu-windows-x86_64-2.10.0.zip"
  tensorflow-sys/build.rs:212: base_name = "libtensorflowwwww-gpu-windows-x86_64-2.10.0"
  tensorflow-sys/build.rs:221: file_name = "C:\\code\\cattus\\target\\debug\\build\\tensorflow-sys-f638c826b10ebfe4\\out\\libtensorflowwwww-gpu-windows-x86_64-2.10.0.zip"

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidArchive("Could not find central directory end")', C:\Users\ugav\.cargo\registry\src\github.com-1ecc6299db9ec823\tensorflow-sys-0.23.0\build.rs:154:45
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I fixed it by changing the version to 2.10.0:

const VERSION: &str = "2.10.0";
const TAG: &str = "v2.10.0";
@barakugav
Copy link
Author

duplication of #400

@barakugav barakugav closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2023
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