Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tried compiling a dmlab2d wheel for a CentOS 7-based compute cluster and encountered an error:
ERROR: Skipping '//dmlab2d:dmlab2d_wheel': error loading package 'dmlab2d': at /root/.cache/bazel/_bazel_root/567cbe29eda1d897f010a5019ec89c95/external/rules_python/python/packaging.bzl:17:6: at /root/.cache/bazel/_bazel_root/567cbe29eda1d897f010a5019ec89c95/external/rules_python/python/py_binary.bzl:17:6: Unable to find package for @rules_python_internal//:rules_python_config.bzl: The repository '@rules_python_internal' could not be resolved: Repository '@rules_python_internal' is not defined.
This error is specifically mentioned in the unreleased Python rules CHANGELOG:
https://github.com/bazelbuild/rules_python/blob/main/CHANGELOG.md
Building dmlab2d uses the Python rules repository in its current state. I added a call to the py_repositories() as mentioned in the change log, which fixed the error.
Details:
CentOS 7
Bazel 6.3.2 (and 5.4.1)