Description of the problem / feature request:
I have this in my WORKSPACE:
######################
# PYTHON SUPPORT
######################
rules_python_version = "0.7.0"
http_archive(
name = "rules_python",
sha256 = "15f84594af9da06750ceb878abbf129241421e3abbd6e36893041188db67f2fb",
strip_prefix = "rules_python-0.7.0",
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.7.0.tar.gz",
)
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
python_register_toolchains(
name = "python39",
# Available versions are listed in @rules_python//python:versions.bzl.
python_version = "3.9",
)
load("@python39_resolved_interpreter//:defs.bzl", python_interpreter = "interpreter")
load("@rules_python//python:pip.bzl", "pip_install")
🐛 Bug Report: Actual Behavior
When I run a build (of any target) I get this error:
ERROR: Traceback (most recent call last):
File "/Users/brettw/Documents/dev/jnb-ping/WORKSPACE", line 94, column 49, in <toplevel>
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
Error: file '@rules_python//python:repositories.bzl' does not contain symbol 'python_register_toolchains'
ERROR: error loading package '': Encountered error while reading extension file 'defs.bzl': no such package '@python39_resolved_interpreter//': error loading package 'external': Could not load //external package
INFO: Elapsed time: 0.128s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
🐛 Bug Report: Specifications
My bazel version output:
Bazelisk version: development
Build label: 5.2.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 7 16:11:03 2022 (1654618263)
Build timestamp: 1654618263
Build timestamp as int: 1654618263
Description of the problem / feature request:
I have this in my WORKSPACE:
🐛 Bug Report: Actual Behavior
When I run a build (of any target) I get this error:
🐛 Bug Report: Specifications
My
bazel versionoutput: