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.

Protobuf breaks bazel fetch

See original GitHub issue

OS: 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:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jartcommented, Nov 10, 2017

@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.

0reactions
wchargincommented, Aug 30, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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