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
Running Linux in WSL,
set up all Bazel dependencies
running bazel build command
hitting error
ERROR: An error occurred during the fetch of repository 'python3_12':
Traceback (most recent call last):
File "/home/williamohara/.cache/bazel/_bazel_williamohara/de29fde09bd221a16d787c59318532b3/external/rules_python/python/private/toolchains_repo.bzl", line 117, column 39, in _toolchain_aliases_impl
(os_name, arch) = get_host_os_arch(rctx)
File "/home/williamohara/.cache/bazel/_bazel_williamohara/de29fde09bd221a16d787c59318532b3/external/rules_python/python/private/toolchains_repo.bzl", line 419, column 50, in get_host_os_arch
arguments = [repo_utils.which_checked(rctx, "uname"), "-m"],
File "/home/williamohara/.cache/bazel/_bazel_williamohara/de29fde09bd221a16d787c59318532b3/external/rules_python/python/private/repo_utils.bzl", line 163, column 13, in _which_checked
fail((
Error in fail: Unable to find the binary 'uname' on PATH.
…2406)
Before this PR we would shell out to `uname` on UNIX systems to get the
`arch`
of the toolchain - on Windows we would not need to do it because there
used to
be only a single Windows platform. With this change we can correctly
support
the resolution of the python interpreter on various platforms and I have
also
added an env variable to customize the selection, so that users can use
`musl`
or a `freethreaded` interpreter if they wish.
As part of this change, I have restricted visibility of the config
settings
used in the toolchain alias repo so that we are creating fewer targets.
This is
a very good time to do this before `1.0.0`.
Fixes#2145
Work towards #2276
Work towards #2386
Work towards #1211 to unblock #2402
Work towards #1361
---------
Co-authored-by: Richard Levasseur <[email protected]>
Running Linux in WSL,
set up all Bazel dependencies
running bazel build command
hitting error
it seems to be generated by this point in the toolchains_repo.bzl file
https://github.com/bazelbuild/rules_python/blob/5eff339f75ea663151b9df7e68c18c417ea91d62/python/private/toolchains_repo.bzl#L430
I have uname in my path - is there some dependency I am missing?
The text was updated successfully, but these errors were encountered: