tobigithub / tensorflow-deep-learning

google tensorflow deep learning for big data examples
201 stars 48 forks source link

Extension file not found: 'google/protobuf/protobuf.bzl'. #11

Open tobigithub opened 8 years ago

tobigithub commented 8 years ago

who knows, tensorflow docker build fail after 1465.329s using

docker build -t $USER/tensorflow-full -f tensorflow/tensorflow/tools/docker/Dockerfile.cpu .
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (52495 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53070 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53084 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53098 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53112 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53126 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53140 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53154 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53168 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53182 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53196 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (53468 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (54677 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (55799 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (56632 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (56651 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (57180 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (58554 / 60274)
____[4 / 4] Cloning https://github.com/palantir/plottable.git: Resolving deltas (59943 / 60274)
____Loading package: tensorflow/python
ERROR: /tensorflow/tensorflow/python/BUILD:1: Extension file not found: 'google/protobuf/protobuf.bzl'.
ERROR: /tensorflow/tensorflow/tensorboard/BUILD:43:1: error loading package 'tensorflow/python': Extension file not found: 'google/protobuf/protobuf.bzl' and referenced by '//tensorflow/tensorboard:tensorboard'.
ERROR: Loading failed; build aborted.
____Elapsed time: 1465.329s
The command '/bin/sh -c bazel clean &&     bazel build -c opt tensorflow/tools/pip_package:build_pip_package &&     bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/pip &&     pip install --upgrade /tmp/pip/tensorflow-*.whl' returned a non-zero code: 1
tobigithub commented 8 years ago

tensorflow documention is wrong at https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/docker use

$ git clone --recurse-submodules https://github.com/tensorflow/tensorflow
$ sudo docker build -t $USER/tensorflow-full -f tensorflow/tensorflow/tools/docker/Dockerfile.cpu .

to build docker module

ubuntu@ubuntu-virtual-machine:~$ git clone --recurse-submodules https://github.com/tensorflow/tensorflowCloning into 'tensorflow'...
remote: Counting objects: 6044, done.
remote: Compressing objects: 100% (325/325), done.
remote: Total 6044 (delta 44), reused 0 (delta 0), pack-reused 5713
Receiving objects: 100% (6044/6044), 18.57 MiB | 591.00 KiB/s, done.
Resolving deltas: 100% (3231/3231), done.
Checking connectivity... done.
Submodule 'google/protobuf' (https://github.com/google/protobuf.git) registered for path 'google/protobuf'
Cloning into 'google/protobuf'...
remote: Counting objects: 28561, done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 28561 (delta 19), reused 0 (delta 0), pack-reused 28501
Receiving objects: 100% (28561/28561), 32.31 MiB | 600.00 KiB/s, done.
Resolving deltas: 100% (19535/19535), done.
Checking connectivity... done.
Submodule path 'google/protobuf': checked out '55ad57a235c009d0414aed1781072adda0c89137'
ubuntu@ubuntu-virtual-machine:~$