tensorboard: tensorboard 2.0.0 doesn't build with bazel 0.29.1
I can’t build tensorboard 2.0.0 with bazel 0.29.1:
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
WARNING: Download from https://mirror.bazel.build/nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: target //tensorboard:tensorboard (1 packages loaded)
Analyzing: target //tensorboard:tensorboard (1 packages loaded, 0 targets configured)
INFO: Call stack for the definition of repository 'com_google_protobuf' which is a tf_http_archive (rule definition at /build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl:124:19):
- /build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/tensorflow/workspace.bzl:429:5
- /build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/tensorflow/workspace.bzl:58:5
- /build/tensorboard/src/tensorboard-2.0.0/WORKSPACE:96:1
ERROR: An error occurred during the fetch of repository 'com_google_protobuf':
Traceback (most recent call last):
File "/build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl", line 104
_apply_patch(ctx, ctx.attr.patch_file)
File "/build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl", line 71, in _apply_patch
_execute_and_check_ret_code(ctx, cmd)
File "/build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl", line 52, in _execute_and_check_ret_code
fail("Non-zero return code({1}) when ...))
File "/build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl", line 52, in fail
"Non-zero return code({1}) when executing '{0}':\nStdout: {2}\nStderr: {3}".format(" ".join(cmd_and_args), result.ret..., <2 more arguments>)
File "/build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl", line 54, in "Non-zero return code
" ".join(cmd_and_args)
sequence element must be a string (got 'path'). See https://github.com/bazelbuild/bazel/issues/7802 for information about --incompatible_string_join_requires_strings.
ERROR: /build/tensorboard/src/tensorboard-2.0.0/tensorboard/BUILD:215:1: //tensorboard:dynamic_plugins depends on //tensorboard/plugins/projector:projector_plugin in repository @ which failed to fetch. no such package '@com_google_protobuf//': Traceback (most recent call last):
File "/build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl", line 104
_apply_patch(ctx, ctx.attr.patch_file)
File "/build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl", line 71, in _apply_patch
_execute_and_check_ret_code(ctx, cmd)
File "/build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl", line 52, in _execute_and_check_ret_code
fail("Non-zero return code({1}) when ...))
File "/build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl", line 52, in fail
"Non-zero return code({1}) when executing '{0}':\nStdout: {2}\nStderr: {3}".format(" ".join(cmd_and_args), result.ret..., <2 more arguments>)
File "/build/.cache/bazel/_bazel_builduser/16a9d96650c79965c8c2ccb42c1699ae/external/org_tensorflow/third_party/repo.bzl", line 54, in "Non-zero return code
" ".join(cmd_and_args)
sequence element must be a string (got 'path'). See https://github.com/bazelbuild/bazel/issues/7802 for information about --incompatible_string_join_requires_strings.
ERROR: Analysis of target '//tensorboard:tensorboard' failed; build aborted: Analysis failed
INFO: Elapsed time: 77.813s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (30 packages loaded, 128 targets configured)
FAILED: Build did NOT complete successfully (30 packages loaded, 128 targets configured)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (6 by maintainers)
For me, the patch command was missing
yum install patchfixed the issueThanks! It helps me solve the problem.