Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting error indicating that uname is not in path on WSL #2145

Open
williamohara opened this issue Aug 22, 2024 · 1 comment
Open

getting error indicating that uname is not in path on WSL #2145

williamohara opened this issue Aug 22, 2024 · 1 comment
Milestone

Comments

@williamohara
Copy link

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.

it seems to be generated by this point in the toolchains_repo.bzl file

arguments = [repo_utils.which_checked(rctx, "uname"), "-m"],

I have uname in my path - is there some dependency I am missing?

@aignas
Copy link
Collaborator

aignas commented Aug 23, 2024

It seems that python/private/toolchains_repo.bzl has _get_host_os_arch which could be updated to drop dependency on uname.

@aignas aignas added this to the v1.0.0 milestone Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants