标签: http-archive

如何在 Bazel 中删除缓存的下载对象(例如从 http_archive 中)?

我的 Bazel C++ 项目的 CI 构建最近崩溃了。该错误表明 HTTPS 下载失败http_repository

INFO: Repository eigen instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_kstaley/efca2582089f638162aa9f6ccfe4282e/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
WARNING: Download from https://gitlab.com/libeigen/eigen/-/archive/56b3e3f3f8ca9972ca390c8296fde363bdab271c/eigen-56b3e3f3f8ca9972ca390c8296fde363bdab271c.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 406 Not Acceptable
ERROR: An error occurred during the fetch of repository 'eigen':
   java.io.IOException: Error downloading [https://gitlab.com/libeigen/eigen/-/archive/56b3e3f3f8ca9972ca390c8296fde363bdab271c/eigen-56b3e3f3f8ca9972ca390c8296fde363bdab271c.tar.gz] to /private/var/tmp/_bazel_kstaley/efca2582089f638162aa9f6ccfe4282e/external/eigen/eigen-56b3e3f3f8ca9972ca390c8296fde363bdab271c.tar.gz: GET returned 406 Not Acceptable
ERROR: /Users/kstaley/src/myrepo/library/utilities/BUILD:58:11: //library/utilities:mylibrary depends on @eigen//:eigen in repository @eigen which failed to fetch. no such package '@eigen//': java.io.IOException: Error …
Run Code Online (Sandbox Code Playgroud)

bazel http-archive

8
推荐指数
1
解决办法
4万
查看次数

错误:在 TensorFlow 安装中启动本地 Bazel 服务器时未定义“http_archive”

我正在安装Tensorflow。我遇到了以下问题:我正在从 Source 安装 Tensorflow,我正在关注 Tensorflow 网站 ( https://www.tensorflow.org/install/source )

我之前安装了Bazel 3.0.0(最新版本)但遇到了类似的错误。在查看其他答案后,我发现此错误与 Bazel 的版本有关。因此我卸载了 Bazel 3.0.0 并安装了 Bazel 0.27.1。但是在bazel build //tensorflow/tools/pip_package:build_pip_package终端中输入以下命令()时,我收到以下错误:

WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/home/aviraj/tensorflow/tools/bazel.rc
Starting local Bazel server and connecting to it...
ERROR: /home/aviraj/tensorflow/WORKSPACE:3:1: name 'http_archive' is not defined
ERROR: Error evaluating WORKSPACE file
ERROR: error loading package '': Encountered error while reading …
Run Code Online (Sandbox Code Playgroud)

python bazel http-archive tensorflow2.0

2
推荐指数
1
解决办法
1223
查看次数

标签 统计

bazel ×2

http-archive ×2

python ×1

tensorflow2.0 ×1