Skip to content

[Bazel CI] ERROR: rules_python build Failure - no such attribute 'scope' in 'bool_flag' @@rules_python+//python/config_settings:incompatible_default_to_explicit_init_py #3490

@deepalak56

Description

@deepalak56

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5127#019afc27-13ca-4209-bd7e-80f8f06acc18

Platform: MacOs, Ubuntu, Windows

Logs:

ERROR: /Users/buildkite/Library/Caches/bazel/_bazel_buildkite/9d62093fe591569700a41173bdc240c7/external/rules_python+/python/config_settings/BUILD.bazel:245:10: @@rules_python+//python/config_settings:experimental_python_import_all_repositories: no such attribute 'scope' in 'bool_flag' rule
(05:07:48) ERROR: /Users/buildkite/Library/Caches/bazel/_bazel_buildkite/9d62093fe591569700a41173bdc240c7/external/rules_python+/python/config_settings/BUILD.bazel:252:10: @@rules_python+//python/config_settings:build_python_zip: no such attribute 'scope' in 'bool_flag' rule
(05:07:48) ERROR: /Users/buildkite/Library/Caches/bazel/_bazel_buildkite/9d62093fe591569700a41173bdc240c7/external/rules_python+/python/config_settings/BUILD.bazel:260:10: @@rules_python+//python/config_settings:incompatible_default_to_explicit_init_py: no such attribute 'scope' in 'bool_flag' rule
(05:07:48) ERROR: /Users/buildkite/Library/Caches/bazel/_bazel_buildkite/9d62093fe591569700a41173bdc240c7/external/rules_python+/python/config_settings/BUILD.bazel:267:12: @@rules_python+//python/config_settings:python_path: no such attribute 'scope' in 'string_flag' rule
(05:07:48) ERROR: /Users/buildkite/Library/Caches/bazel/_bazel_buildkite/9d62093fe591569700a41173bdc240c7/external/rules_python++python+pythons_hub/BUILD.bazel:18:19: errors encountered resolving select() keys for @@rules_python++python+pythons_hub//:_0000_python_3_11_aarch64-apple-darwin_py_exec_tools_toolchain
(05:07:48) ERROR: /Users/buildkite/builds/bk-macos-arm64-8w7c/bazel-org-repo-root/examples/bzlmod/02-override_bazel_module/BUILD:7:10:
(05:07:48) ERROR: Analysis of target '//:main' failed; build aborted
(05:07:48) INFO: Elapsed time: 29.898s, Critical Path: 0.01s
(05:07:48) INFO: 1 process: 1 internal.
(05:07:48) ERROR: Build did NOT complete successfully

Culprit:

Steps:

git clone https://github.com/bazelbuild/examples
git reset f98ef393e949d221fe3de505ea162214e13d34fd --hard
export USE_BAZEL_VERSION=3b128e82c52f6dee2eceab623144d75ed4effc11
bazel build --config=ci //:main

CC Greenteam @fweikert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions