chilly-tailor-75063
11/04/2022, 5:09 PM./pants fmt ::
Bootstrapping Pants using /opt/homebrew/bin/python3.8
Installing pantsbuild.pants==2.14.0 into a virtual environment at /Users/dfarrell/.cache/pants/setup/bootstrap-Darwin-arm64/2.14.0_py38
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants==2.14.0 (from versions: 0.0.17, 0.0.18, 0.0.20, 0.0.21, 0.0.22, 0.0.23, 0.0.24, 0.0.25, 0.0.26, 0.0.27, 0.0.28, 0.0.29, 0.0.30, 0.0.31, 0.0.32, 0.0.33, 0.0.34, 0.0.35, 0.0.36, 0.0.37, 0.0.38, 0.0.39, 0.0.40, 0.0.41, 0.0.42, 0.0.43, 0.0.44, 0.0.45, 0.0.46, 0.0.47, 0.0.48, 0.0.49, 0.0.50, 0.0.51, 0.0.52, 0.0.53, 0.0.54, 0.0.55, 0.0.56, 0.0.57, 0.0.58, 0.0.59, 0.0.60, 0.0.61, 0.0.62, 0.0.63, 0.0.64, 0.0.65, 0.0.66, 0.0.67, 0.0.68, 0.0.69, 0.0.70, 0.0.71, 0.0.72, 0.0.73, 0.0.74, 0.0.75, 0.0.76, 0.0.77, 0.0.79, 0.0.80, 0.0.81, 0.0.82, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0)
ERROR: No matching distribution found for pantsbuild.pants==2.14.0
Is 3.10.8 not supported, or am I missing something?chilly-tailor-75063
11/04/2022, 5:43 PM./pants --version
I get the above outputwide-midnight-78598
11/04/2022, 5:53 PMwide-midnight-78598
11/04/2022, 5:53 PMhappy-kitchen-89482
11/04/2022, 6:03 PM/opt/homebrew/bin/python3.8
, which should be fine. This is unrelated to the interpreter you use for your own code, which can be anythinghappy-kitchen-89482
11/04/2022, 6:03 PM3.10.8
thing may be a red herring, or an inadvertent cause of troublehappy-kitchen-89482
11/04/2022, 6:04 PMwide-midnight-78598
11/04/2022, 6:04 PM/Users/dfarrell/.cache/pants/setup/bootstrap-Darwin-arm64/2.14.0_py38
Darwin arm64?happy-kitchen-89482
11/04/2022, 6:04 PMhappy-kitchen-89482
11/04/2022, 6:04 PMwide-midnight-78598
11/04/2022, 6:07 PMpants
script error out if it can't find a supported Python runner?chilly-tailor-75063
11/04/2022, 6:12 PMchilly-tailor-75063
11/04/2022, 6:12 PMhappy-kitchen-89482
11/04/2022, 6:13 PMhappy-kitchen-89482
11/04/2022, 6:13 PMhappy-kitchen-89482
11/04/2022, 6:13 PMhappy-kitchen-89482
11/04/2022, 6:13 PMhappy-kitchen-89482
11/04/2022, 6:13 PMhappy-kitchen-89482
11/04/2022, 6:14 PMchilly-tailor-75063
11/04/2022, 6:17 PMpants
, and got the same error (I moved my pants.toml file to a saved location). Is there something else I need to do to let pants find the Python 3.9.7 version?wide-midnight-78598
11/04/2022, 6:19 PMpants.rc
file - otherwise my XCode python gets picked up weirdly. Now it's brew.
⏺ ~ % cat ~/.pants.rc
[python-bootstrap]
search_path = ["/usr/local/bin"]
PyEnv should be picked up pretty readily, so I'm surprisedwide-midnight-78598
11/04/2022, 6:20 PMchilly-tailor-75063
11/04/2022, 6:20 PMchilly-tailor-75063
11/04/2022, 6:21 PMchilly-tailor-75063
11/04/2022, 6:24 PMpants.toml
file, no effect…
[python-bootstrap]
search_path = [
# This will use all the interpretrs in `$(pyenv root)/versins`.
"<PYENV>"
]
happy-kitchen-89482
11/04/2022, 6:26 PMhappy-kitchen-89482
11/04/2022, 6:26 PM~/.cache/pants/setup
and starting over?chilly-tailor-75063
11/04/2022, 6:26 PMwide-midnight-78598
11/04/2022, 6:27 PMbootstrap
in a .pants.rc
in your home dir, that way being in a different directory won't cause this all to happen againchilly-tailor-75063
11/04/2022, 6:27 PMhappy-kitchen-89482
11/04/2022, 6:28 PMhappy-kitchen-89482
11/04/2022, 6:28 PMpants
script is what selects the interpreter for Pants itself to run onhappy-kitchen-89482
11/04/2022, 6:29 PMchilly-tailor-75063
11/04/2022, 6:31 PMchilly-tailor-75063
11/04/2022, 6:37 PMchilly-tailor-75063
11/04/2022, 6:38 PMwide-midnight-78598
11/04/2022, 6:39 PMsearch_path setting is for interpreter discovery for your own codeDoh! That's right, the weird system python issue I was having was directly AFTER pants was installed. Blah...
wide-midnight-78598
11/04/2022, 6:40 PMwide-midnight-78598
11/04/2022, 6:40 PMPYTHON=/usr/local/bin/... ./pants --version
?chilly-tailor-75063
11/04/2022, 6:41 PM# Source any custom bootstrap settings for Pants from PANTS_BOOTSTRAP if it exists.
: ${PANTS_BOOTSTRAP:=".pants.bootstrap"}
if [[ -f "${PANTS_BOOTSTRAP}" ]]; then
source "${PANTS_BOOTSTRAP}"
fi
?chilly-tailor-75063
11/04/2022, 6:57 PM.python-version
file in the project directory that was referencing 3.10.8
(my project Python version) that was created by pyenv when I built the local .venv
file. This was screwing up pantshappy-kitchen-89482
11/05/2022, 12:44 AMchilly-tailor-75063
11/07/2022, 2:24 PM