flat-zoo-31952
01/12/2022, 4:51 PM❯ ./pants dependencies --transitive aiven/pheme
11:44:23.36 [ERROR] 1 Exception encountered:
BinaryNotFoundError: Was not able to locate a Python interpreter to execute rule code.
Please ensure that Python is available in one of the locations identified by `[python-bootstrap] search_path`, which currently expands to:
['/usr/bin/python3.9']
This can be fixed by changing the path to /usr/bin/python
which is a symlink to /usr/bin/python3.9
. Seems like the interpreter search is picky about how the file is named maybe? Is this expected?witty-crayon-22786
01/12/2022, 5:36 PM['/usr/bin/python3.9']
?flat-zoo-31952
01/12/2022, 5:54 PM[python-bootstrap]
search_path = ["/usr/bin"]
names = ["python3.9"]
witty-crayon-22786
01/12/2022, 6:02 PMflat-zoo-31952
01/12/2022, 7:43 PMpython3.9
)... I'm trying to prevent it from grabbing other installed Pythons (if any)witty-crayon-22786
01/12/2022, 7:43 PMflat-zoo-31952
01/12/2022, 7:43 PMwitty-crayon-22786
01/12/2022, 7:43 PM@rule
helpers written in Pythonflat-zoo-31952
01/12/2022, 7:44 PMwitty-crayon-22786
01/12/2022, 7:45 PMpyenv
or something is a pretty safe betflat-zoo-31952
01/12/2022, 7:45 PMwitty-crayon-22786
01/12/2022, 7:47 PMflat-zoo-31952
01/12/2022, 8:04 PMnames
still, that's what's confusing therewitty-crayon-22786
01/12/2022, 8:05 PMflat-zoo-31952
01/12/2022, 8:05 PM[python-bootstrap]
search_path = ["/usr/bin/python3.9"]
names = ["python3.9"]
this works, but without names
it complains with the error I posted in the original threadPANTS_PYTHON_BIN=${PANTS_PYTHON_BIN:-/usr/bin/python3.9}
export PANTS_BOOTSTRAP_SEARCH_PATH=$PANTS_PYTHON_BIN
export PANTS_BOOTSTRAP_NAMES=$(basename $PANTS_PYTHON_BIN)
@rule
to find the python it needs to run @rule
s? What kinda ghost python are you using here? 👻witty-crayon-22786
01/12/2022, 9:00 PMalso, i’m curious... how the hell does it run aheh. there are entirely too many levels of discovery here. this is for discovering which Python to subprocess python scripts that run in Process sandboxesto find the python it needs to run@rule
s?@rule
flat-zoo-31952
01/12/2022, 9:59 PM