breezy-cricket-45254
03/16/2025, 6:43 PMcurl and after that installed using brew, now I have uninstalled the brew version
Here is a simple project that creates this issue for me:
*pants.to*ml
[GLOBAL]
pants_version = "2.24.1"
backend_packages = [
"pants.backend.python",
"pants.backend.python.providers.experimental.pyenv",
]
named_caches_dir = '.pants-cache'
[source]
root_patterns = [
"/"
]
[python]
interpreter_constraints = ["==3.7.*"]
BUILD
python_sources(
name="root",
)
pex_binary(
name='pex',
entry_point='script',
interpreter_constraints=['==3.7.*'],
)%
script.py
import sys
print(f'hello world, I am {sys.version} @ {sys.executable}')
I'm running python target like this:
pants run :root - works great
And the pex target like this:
pants run :pex - gives me the following error:
16:29:36.96 [INFO] Completed: Building pex.pex
16:29:36.96 [ERROR] 1 Exception encountered:
Engine traceback:
in `run` goal
ProcessExecutionFailure: Process 'Building pex.pex' failed with exit code 1.
stdout:
stderr:
Could not find a compatible interpreter.
Examined the following interpreters:
1.) /opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/bin/python3.13 CPython==3.13.2
2.) /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9 CPython==3.9.6
No interpreter compatible with the requested constraints was found:
Version matches CPython==3.7.*
I need some guidance on where can the issue be because I tried looking at the docs and sandboxes and couldnt find whats wrong
Can anyone help?dazzling-pizza-75442
03/16/2025, 7:27 PMbreezy-cricket-45254
03/17/2025, 9:34 AM