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

Cannot build tensorflow addons with TF 2.14 #2849

Closed
trevor-m opened this issue Sep 13, 2023 · 2 comments · Fixed by #2856
Closed

Cannot build tensorflow addons with TF 2.14 #2849

trevor-m opened this issue Sep 13, 2023 · 2 comments · Fixed by #2856

Comments

@trevor-m
Copy link
Contributor

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 20.04): manylinux2014
  • TensorFlow version and how it was installed (source or binary): 2.14-rc1 from source
  • TensorFlow-Addons version and how it was installed (source or binary): 0.21.0 from source
  • Python version: 3.10
  • Is GPU used? (yes/no): yes

Describe the bug

Bazel build fails with the following error which looks related to the recent hermetic python changes in TF2.14.

#43 71.88 Analyzing: target //:build_pip_pkg (1 packages loaded, 0 targets configured)
#43 72.90 Analyzing: target //:build_pip_pkg (20 packages loaded, 101 targets configured)
#43 73.05 INFO: Repository go_sdk instantiated at:
#43 73.05   /opt/tensorflow/tf-addons/WORKSPACE:32:14: in <toplevel>
#43 73.05   /root/.cache/bazel/_bazel_root/81bbe6448980452f7a50e79b39fc5624/external/org_tensorflow/tensorflow/workspace0.bzl:135:20: in workspace
#43 73.05   /root/.cache/bazel/_bazel_root/81bbe6448980452f7a50e79b39fc5624/external/com_github_grpc_grpc/bazel/grpc_extra_deps.bzl:36:27: in grpc_extra_deps
#43 73.05   /root/.cache/bazel/_bazel_root/81bbe6448980452f7a50e79b39fc5624/external/io_bazel_rules_go/go/private/sdk.bzl:431:28: in go_register_toolchains
#43 73.05   /root/.cache/bazel/_bazel_root/81bbe6448980452f7a50e79b39fc5624/external/io_bazel_rules_go/go/private/sdk.bzl:130:21: in go_download_sdk
#43 73.05 Repository rule _go_download_sdk defined at:
#43 73.05   /root/.cache/bazel/_bazel_root/81bbe6448980452f7a50e79b39fc5624/external/io_bazel_rules_go/go/private/sdk.bzl:117:35: in <toplevel>
#43 73.11 ERROR: /root/.cache/bazel/_bazel_root/81bbe6448980452f7a50e79b39fc5624/external/bazel_tools/src/tools/launcher/BUILD:9:14: While resolving toolchains for target @bazel_tools//src/tools/launcher:launcher: invalid registered toolchain '@local_execution_config_python//:py_toolchain': error loading package '@local_execution_config_python//': Unable to find package for @python//:defs.bzl: The repository '@python' could not be resolved: Repository '@python' is not defined.

Code to reproduce the issue

# install Tensorflow 2.14-rc1
python3 configure.py
bazel build build_pip_pkg
@seanpmorgan
Copy link
Member

tyvm Trevor, we'll track this issue as we start our build for the new RC. In general, we only commit to TFA working with stable releases of TF:
https://github.com/tensorflow/addons#nightly-builds

Nonetheless we will start working for a smooth build on TF2.14 release

@trevor-m
Copy link
Contributor Author

Thanks @seanpmorgan!

@bhack bhack linked a pull request Oct 23, 2023 that will close this issue
@bhack bhack linked a pull request Nov 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants