You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are attempting to build tensorflow/io on the ppc64le architecture but encountered an error related to the Python repository:
ERROR: /root/.cache/bazel/_bazel_root/7e563aa8f1493c3ba33faa85b32d7a3c/external/python/BUILD.bazel:10:6: no such package '@python_ppc64le-unknown-linux-gnu//': The repository '@python_ppc64le-unknown-linux-gnu' could not be resolved: Repository '@python_ppc64le-unknown-linux-gnu' is not defined and referenced by '@python//:python_headers'
ERROR: Analysis of target '//tensorflow_io/core/grpc:endpoint_py_pb2_grpc' failed; build aborted:
INFO: Elapsed time: 67.216s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (135 packages loaded, 4252 targets configured)
currently loading: @com_google_absl//absl ... (2 packages)
Fetching repository @com_github_prometheus_common; Restarting. 17s
Fetching repository @com_github_prometheus_client_golang; Restarting. 17s
Fetching repository @com_github_prometheus_prom2json; Restarting. 17s
Fetching repository @com_github_prometheus_client_model; Restarting. 17s
Fetching repository @bazel_gazelle_go_repository_tools; starting 17s
Fetching repository @aws-sdk-cpp; starting 15s
Fetching /root/.cache/bazel/_bazel_root/7e563aa8f1493c3ba33faa85b32d7a3c/external/aws-sdk-cpp; Extracting 1.8.187.tar.gz 9s
Fetching repository @thrift; starting ... (12 fetches)
This error occurs because the repository @python_ppc64le-unknown-linux-gnu is not defined, causing Bazel to fail when attempting to resolve Python dependencies.
We have tested building TensorFlow IO with both Python 3.10.11 and Python 3.11.3 and encountered the same issue.
Temporary Solution/Workaround:
We resolved the issue by updating the version of rules_python from 0.23.1 to 0.31.0 and explicitly adding the py_repositories() call in the WORKSPACE file.
This error occurs because the repository
@python_ppc64le-unknown-linux-gnu
is not defined, causing Bazel to fail when attempting to resolve Python dependencies.We have tested building TensorFlow IO with both Python 3.10.11 and Python 3.11.3 and encountered the same issue.
Temporary Solution/Workaround:
We resolved the issue by updating the version of rules_python from 0.23.1 to 0.31.0 and explicitly adding the py_repositories() call in the WORKSPACE file.
Here are the changes we made:
Please let us know your thoughts on this solution or if you have any further suggestions.
The text was updated successfully, but these errors were encountered: