buildbarn / bb-deployments

Example deployments of Buildbarn on various platforms
Apache License 2.0
102 stars 70 forks source link

Failed to run command: Cannot find executable "python3" in search paths "" #143

Closed AnubisYe closed 3 months ago

AnubisYe commented 4 months ago

When I compile chromium, I get the following error

image

action detail:

image

It is true that the python path is not in the Input files. How can I solve this problem, or use the python3 of the runner environment?

EdSchouten commented 4 months ago

I'd say, kubectl exec into the runner container to check whether python3 is available somewhere on the file system. Then rerun Bazel with --action_env=PATH=/directory/where/python3/executable/lives.

Edit: Oh, wait. reclient. In that case you need to pass in some other command line flag/config option. You get the idea. :-)

AnubisYe commented 3 months ago

I'd say, kubectl exec into the runner container to check whether python3 is available somewhere on the file system. Then rerun Bazel with --action_env=PATH=/directory/where/python3/executable/lives.

Edit: Oh, wait. reclient. In that case you need to pass in some other command line flag/config option. You get the idea. :-)

Thanks Finally, I modified local_runner.go to return right path when executing python

EdSchouten commented 3 months ago

Why would you need to do that? reclient should just set PATH properly.

AnubisYe commented 3 months ago

Why would you need to do that? reclient should just set PATH properly.

https://github.com/bazelbuild/reclient/blob/main/docs/cmd-line-flags.md

which flag should I set...

EdSchouten commented 3 months ago

-env_var_allowlist PATH maybe?