Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-python/tensorflow-whl/build failed to build a wheel #404

Closed
pricebenjamin opened this issue Dec 17, 2018 · 0 comments
Closed

docker-python/tensorflow-whl/build failed to build a wheel #404

pricebenjamin opened this issue Dec 17, 2018 · 0 comments
Assignees

Comments

@pricebenjamin
Copy link
Contributor

Attempting to follow the instructions provided here, I am unable to build a wheel using the provided script. Bazel fails immediately:

WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/usr/local/src/tensorflow/tools/bazel.rc
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 478f11e1-6cfc-42ec-96c4-61cefa74fb83
Loading: 
Loading: 0 packages loaded
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '@io_bazel_rules_closure//closure': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '@io_bazel_rules_closure//closure': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
INFO: Elapsed time: 1.795s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
The command '/bin/sh -c cd /usr/local/src/tensorflow &&     cat /dev/null | ./configure &&     bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package &&     bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_cpu &&     bazel clean' returned a non-zero code: 1

The exact command that fails is below.
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

While the error message suggests using --incompatible_remove_native_http_archive=false, I would actually suggest that the Dockerfile not fetch the latest version of bazel, but instead use the latest version officially tested, which is 0.15.0 as of writing.

Using a newer version of bazel can lead to other issues, as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants