Skip to content

Failed to find python3 binary #550

@ThomasMader

Description

@ThomasMader

I cloned the modular repository at 9855690a6a40f87f7c2948a59d417dee21d966f1 and tried to build the mojo standard library with

sh bazelw build //mojo/stdlib/...

from within the repository but that fails with

Error in fail: Failed to find python3 binary
ERROR: @llvm-project//lldb:enable_libedit :: Error loading option @llvm-project//lldb:enable_libedit: Failed to find python3 binary

I realized that the failing part is coming from toolchains_llvm so I thought it's best to create an issue here.
This is the URL used to fetch the repo: https://github.com/bazel-contrib/toolchains_llvm/archive/6eef27401b4dff9de4ca6f66aea7592a90305789.tar.gz

I am on NixOS and make use of nix-ld and envfs to make running bazel/bazelisk work.
See also https://discourse.nixos.org/t/bazel-on-nix-use-bazelisk/64575/17.

It doesn't matter if python3 is installed system wide or provided in the $PATH via pixi shell.

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