question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tensorboard 2.0.0 doesn't build with bazel 0.29.1

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
aaur0commented, Jun 18, 2020

For me, the patch command was missing yum install patch fixed the issue

1reaction
a540611121commented, Sep 17, 2020

For me, the patch command was missing yum install patch fixed the issue

Thanks! It helps me solve the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building TensorFlow 2 with bazel 0.29.1 on Windows 10 fails
I suspect the space in the Python path. Try this: open cmd.exe. create a junction c:\python pointing to the real Python directory:
Read more >
Build from source on Windows - Install - TensorFlow
Install Bazel, the build tool used to compile TensorFlow. ... that look like Unix paths to Windows paths, and this doesn't work with...
Read more >
bazelrc - Google Git
TensorFlow Bazel configuration file. # This file tries to group and simplify build options for TensorFlow. #. # ----CONFIG OPTIONS----. # Android options:....
Read more >
Installing Bazel on Ubuntu
Step 2: Install and update Bazel ... This installs Bazel 1.0.0 as /usr/bin/bazel-1.0.0 on your system. This can be useful if you need...
Read more >
Package List — Spack 0.20.0.dev0 documentation
Versions: 2.0.1, 2.0.0, 1.9.3, 1.9.2; Build Dependencies: java, maven ... 2.0.1, 2.0.0, 1.2.1, 1.2.0, 1.1.0, 1.0.1, 1.0.0, 0.29.1, 0.29.0, 0.28.1, 0.28.0, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found