TensorFlow: Extension file not found: 'google/protobuf/protobuf.bzl'

I am following this tutorial to install GPU-enabled TensorFlow that is compatible with CUDA Compute Capability 3.0.

I installed Java-JDK8, Bazel 0.1.0, TensorFlow 0.6.0, and changed the configurations to run on CUDA Compute Capability 3.0. Everything is good so far.

But when I enter this command:

$HOME/bin/bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer

I see this output:

Extracting Bazel installation...
.....
ERROR: /home/me/tensorflow/tensorflow/core/BUILD:1: Extension file not found: 'google/protobuf/protobuf.bzl'.
ERROR: /home/me/tensorflow/tensorflow/cc/BUILD:65:1: error loading package 'tensorflow/core': Extension file not found: 'google/protobuf/protobuf.bzl' and referenced by '//tensorflow/cc:tutorials_example_trainer'.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 1.006s

Any advice?

1

1 Answer

The problem is fixed by running this command:

$ git clone -b 0.6.0 –recurse-submodules

Many thanks to @steeldriver for his suggestion.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like