hi again :slightly_smiling_face: I'm trying to run...
# general
a
hi again 🙂 I'm trying to run pants(2.19) on a remote docker and it can't seem to find the correct interpreter and i keep getting this error
pants.engine.process.ProcessExecutionFailure: Process 'Find interpreter for constraints: CPython==3.11.9' failed with exit code 127.
I know the docker has this version of python and i added
[python-bootstrap] search_path = ...
to my pants.tomel and it points to the interpreter's bin however it seems it doesn't recognize the interpreter as a valid option any idea on what's wrong (also I'm assuming you might need extra info i just don't know whats relevant so ask and ill send what you need) thanks 🙂
I've added a simlink to the interpreter bin in
/usr/bin
and added it the the
[python-bootstrap] search_path-=...
using the name
python3.11.9
and it still won't work
f
Maybe set
python_bootstrap_search_path
on the
docker_environment
target?
a
I'm pretty sure pants know to look in the right place (also i tried this and got the same error)
i dove abit into the code (tho i admit i know very little on pants internals) and i notised that in the function that checks for the interpreter
pants/python/backend/python/util_rules/pex.py>find_interpreter
looking and the variable
env_target
during the run (just after entering the function)it looked like this:
EnvironmentTarget(name=None, val=None)
If I understand correctly this look weird... I am trying to run
pants lint ::
in the
--python-path
for the command i can see the all the versions of python interpreters are listed but pants can't find them at all ;-;