PAIR-code / what-if-tool

Source code/webpage/demos for the What-If Tool
https://pair-code.github.io/what-if-tool
Apache License 2.0
892 stars 165 forks source link

ERROR: An error occurred during the fetch of repository 'zlib': #231

Open brrbaral opened 8 months ago

brrbaral commented 8 months ago

Hi, I got error while trying to build the web demos using bazel. I am using bazel version 1.0.0. Here is the command I am using to build the web demo: bazel run wit_dashboard/demo:demoserver

Bazel version: 1.0.0 System: Ubuntu 22.04 The error:

WARNING: Download from https://zlib.net/zlib-1.2.11.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
ERROR: An error occurred during the fetch of repository 'zlib':
   java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /home/brb/.cache/bazel/_bazel_brb/0d983f6dec220156b9025ee488468a15/external/zlib/zlib-1.2.11.tar.gz: GET returned 404 Not Found
ERROR: /home/brb/.cache/bazel/_bazel_brb/0d983f6dec220156b9025ee488468a15/external/com_google_protobuf/BUILD:150:1: @com_google_protobuf//:protobuf depends on @zlib//:zlib in repository @zlib which failed to fetch. no such package '@zlib//': java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /home/brb/.cache/bazel/_bazel_brb/0d983f6dec220156b9025ee488468a15/external/zlib/zlib-1.2.11.tar.gz: GET returned 404 Not Found

And I did not get the file where the URL with error is written. Please help me to solve this error. Thank You

jameswex commented 8 months ago

I have only verified that WIT builds with bazel 0.27.0. Sorry, I know its a very old version. WIT is a project that isn't actively being developed. Check out https://pair-code.github.io/lit/ for another, more extensible and full-featured model analysis tool from Google.