Protobuf breaks bazel fetch
See original GitHub issueOS: NixOS 18.03pre119292.cfafd6f5a8 TensorBoard version: 0.1.8 Bazel: 0.4.5
$ bazel fetch tensorboard:tensorboard
ERROR: /run/user/1000/.cache/bazel/_bazel_abbradar/84fb9207e5a69b2add72d42fc5eb546e/external/protobuf/BUILD:623:1: no such target '//external:python_headers': target 'python_headers' not declared in package 'external' defined by /home/abbradar/nixpkgs/tensorboard/WORKSPACE and referenced by '@protobuf//:python/google/protobuf/pyext/_message.so'.
ERROR: /run/user/1000/.cache/bazel/_bazel_abbradar/84fb9207e5a69b2add72d42fc5eb546e/external/protobuf/BUILD:609:1: no such target '//external:python_headers': target 'python_headers' not declared in package 'external' defined by /home/abbradar/nixpkgs/tensorboard/WORKSPACE and referenced by '@protobuf//:python/google/protobuf/internal/_api_implementation.so'.
ERROR: Evaluation of query "deps(tensorboard:tensorboard)" failed: errors were encountered while computing transitive closure.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
bazel is trying to use an old (and broken) version of protobuf?
Building a program with bazel on mingw, I get this error: ... This is coming from a version of protobuf that bazel has...
Read more >How to avoid compiling protobuf compiler and use ...
I have some projects using Bazel and protobuf. I also use gitlab CI/CD to build, test, check coverage, etc. The problem is that...
Read more >Bazel - Buf docs
Perform breaking change detection for Protobuf Inputs using the buf_breaking_test rule. Use the Gazelle extension to generate Bazel rules.
Read more >I think one of the biggest issues for adoption will be the Bazel ...
Hi there, I work at Google on the Protocol Buffers team. ... the OS and quite good at not breaking things, you can...
Read more >Command-Line Reference | Bazel
fetch, Fetches external repositories that are prerequisites to the ... specifies a location to write a failure_detail protobuf message if ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@abbradar I’ve confirmed a solution. Once https://github.com/tensorflow/tensorflow/pull/14467 is merged I can mail out a PR fixing this issue.
This should be fixed now. We depend on TensorFlow’s workspace definition, which defines
python_headers
:https://github.com/tensorflow/tensorflow/blob/ea5477fe59b761605c7f1d29fdedf6b1360fc3a9/tensorflow/workspace.bzl#L1004-L1008
We also run
bazel fetch //tensorboard/...
on every CI run, so regressions should be caught quickly enough.