Any tips for telling `pants.backend.python.goals.r...
# development
a
Any tips for telling
pants.backend.python.goals.run_pex_binary.create_pex_binary_run_request
"no really, the
python
you'd find by running
which python
is a python"? Right now it's only finding a different one
f
is it not searching for it in the right place or skipping it after evaluating it in some fashion?
what is output of
which python
and what is
interpreter_search_paths
set to?
a
It outputs:
Copy code
Traceback (most recent call last):
  File "/Users/dwh/src/github.com/pantsbuild/pants/src/python/pants/engine/process.py", line 270, in fallible_to_exec_result_or_raise
    local_cleanup=global_options.options.process_execution_local_cleanup,
pants.engine.process.ProcessExecutionFailure: Process 'Find interpreter for constraints: CPython==3.7.*' failed with exit code 102.
stdout:

stderr:
Could not find a compatible interpreter.

Examined the following interpreters:
1.) /usr/local/Cellar/python@3.9/3.9.7_1/Frameworks/Python.framework/Versions/3.9/bin/python3.9 CPython==3.9.7

No interpreter compatible with the requested constraints was found:
  Version matches CPython==3.7.*
Copy code
% which python
/Users/dwh/bin/python
Copy code
% readlink $(which python)
/Users/dwh/bin/python3.7
Copy code
% readlink $(which python3.7)
/usr/local/opt/python@3.7/bin/python3
Copy code
% python --version
Python 3.7.12
f
and
pants.toml
?
(for
interpreter_search_paths
)
a
Whatever's on pants main, so nothing, so the default...
Ohhhhh I totally have a local override 😄
Thanks!!
f
🦆
(this slack really needs a rubber duck emoji)
😂 1