crooked-honey-24238
10/08/2024, 11:24 AMProcessExecutionFailure: Process 'Find interpreter for constraints: CPython==3.13.*' failed with exit code 1.
stdout:
stderr:
No supported version of Pip is compatible with the given targets
...
do I need to fix or otherwise specify a version/version range for pip or is this a symptom of something else?better-van-82973
10/08/2024, 12:08 PMcrooked-honey-24238
10/08/2024, 12:13 PMbetter-van-82973
10/08/2024, 12:14 PMpants.toml
to the latest version - that should support the latest Pip + Python 3.13: https://www.pantsbuild.org/2.21/reference/subsystems/pex-clibetter-van-82973
10/08/2024, 12:16 PMcrooked-honey-24238
10/08/2024, 12:18 PMPATH
issue, when I run pants lint
even when specifying 3.12 instead, I get the same error but it mentions all installed versions of python on my system. I'm wondering if the 3.13 install could have done something more than just add the latest version to the PATH
🤦 any ideas would be great, I think the issue I'm having is getting in the way before I even get to the issue you mention!better-van-82973
10/08/2024, 12:19 PMpants lint
with 3.12?crooked-honey-24238
10/08/2024, 12:20 PMEngine traceback:
in `lint` goal
ProcessExecutionFailure: Process 'Find interpreter for constraints: CPython<4,>=3.7' failed with exit code 1.
stdout:
stderr:
No supported version of Pip is compatible with the given targets:
cp310-cp310-macosx_14_0_arm64 interpreter at /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
cp311-cp311-macosx_14_0_arm64 interpreter at /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
cp312-cp312-macosx_14_0_arm64 interpreter at /Users/mkahan/Development/vonage-python-sdk/venv-edit/bin/python3.12
cp313-cp313-macosx_14_0_arm64 interpreter at /Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13
cp37-cp37m-macosx_14_0_x86_64 interpreter at /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
cp39-cp39-macosx_14_0_arm64 interpreter at /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9
better-van-82973
10/08/2024, 12:23 PMCPython<=3.12,>=3.7
crooked-honey-24238
10/08/2024, 12:23 PM[python]
interpreter_constraints = ['==3.12.*']
better-van-82973
10/08/2024, 12:24 PMProcess 'Find interpreter for constraints: CPython<4,>=3.7' failed with exit code 1.
crooked-honey-24238
10/08/2024, 12:25 PMcrooked-honey-24238
10/08/2024, 12:26 PM[coverage-py]
block I have interpreter_constraints = ['>=3.9']
but that should be just for coveragebetter-van-82973
10/08/2024, 12:26 PM// This lockfile was autogenerated by Pants. To regenerate, run:
//
// pants generate-lockfiles --resolve=python-default
//
// --- BEGIN PANTS LOCKFILE METADATA: DO NOT EDIT OR REMOVE ---
// {
// "version": 3,
// "valid_for_interpreter_constraints": [
// "CPython<3.13,>=3.12"
// ],
crooked-honey-24238
10/08/2024, 12:28 PMcrooked-honey-24238
10/08/2024, 12:29 PMpants test ::
but also shows the errorbetter-van-82973
10/08/2024, 12:29 PMpants lint
command?crooked-honey-24238
10/08/2024, 12:32 PM13:31:32.19 [INFO] Completed: Format with taplo - taplo made no changes.
13:31:32.20 [INFO] Canceled: Building docformatter.pex from <resource://pants.backend.python.lint.docformatter/docformatter.lock>
13:31:33.40 [ERROR] 1 Exception encountered:
crooked-honey-24238
10/08/2024, 12:32 PMcrooked-honey-24238
10/08/2024, 12:32 PMbetter-van-82973
10/08/2024, 12:33 PMcrooked-honey-24238
10/08/2024, 12:33 PMcrooked-honey-24238
10/08/2024, 12:34 PMbetter-van-82973
10/08/2024, 12:35 PM>=3.8
for most of the tools.crooked-honey-24238
10/08/2024, 12:38 PMProcessExecutionFailure: Process 'Find interpreter for constraints: CPython>=3.12' failed with exit code 1.
stdout:
stderr:
No supported version of Pip is compatible with the given targets:
cp312-cp312-macosx_14_0_arm64 interpreter at /Users/mkahan/Development/venv-edit/bin/python3.12
cp313-cp313-macosx_14_0_arm64 interpreter at /Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13
better-van-82973
10/08/2024, 12:38 PMcrooked-honey-24238
10/08/2024, 12:47 PMUnsupportedVersion: The option [pex-cli].version is set to >=2.16.2, which is not compatible with what this release of Pants expects: pex<3.0,>=2.3.0. Please update the version to a supported value, or consider using a different Pants release if you cannot change the version. Alternatively, update [pex-cli].use_unsupported_version to be 'warning'.
better-van-82973
10/08/2024, 12:48 PMcrooked-honey-24238
10/08/2024, 12:48 PMbetter-van-82973
10/08/2024, 12:48 PM[pex-cli]
options before trying to set themcrooked-honey-24238
10/08/2024, 12:48 PMcrooked-honey-24238
10/08/2024, 12:52 PMUnknownVersion: No known version of pex 2.16.2 for macos_arm64 found in ('v2.3.1|macos_arm64|71690e672871b55323f5d6ef9a3fe9705f1668662652c4081080e7ab27d44de3|4124530', 'v2.3.1|macos_x86_64|71690e672871b55323f5d6ef9a3fe9705f1668662652c4081080e7ab27d44de3|4124530', 'v2.3.1|linux_x86_64|71690e672871b55323f5d6ef9a3fe9705f1668662652c4081080e7ab27d44de3|4124530', 'v2.3.1|linux_arm64|71690e672871b55323f5d6ef9a3fe9705f1668662652c4081080e7ab27d44de3|4124530')
better-van-82973
10/08/2024, 12:53 PMknown_versions
as well so that it contains the version and hash for the platform that you’re trying to use. PEX 2.16.2's values can be found here: https://www.pantsbuild.org/prerelease/reference/subsystems/pex-cli#known_versionscrooked-honey-24238
10/08/2024, 12:55 PMUnknownVersion: No known version of pex 2.16.2 for macos_arm64 found in ('v2.16.2|macos_arm64|f2ec29dda754c71a8b662e3b4a9071aef269a9991ae920666567669472dcd556|4284448', 'v2.16.2|macos_x86_64|f2ec29dda754c71a8b662e3b4a9071aef269a9991ae920666567669472dcd556|4284448', 'v2.16.2|linux_x86_64|f2ec29dda754c71a8b662e3b4a9071aef269a9991ae920666567669472dcd556|4284448', 'v2.16.2|linux_arm64|f2ec29dda754c71a8b662e3b4a9071aef269a9991ae920666567669472dcd556|4284448')
better-van-82973
10/08/2024, 12:55 PMv
in the version namecrooked-honey-24238
10/08/2024, 12:58 PMThe Pip requested was pip==24.0 but it does not work with the interpreter selected which is CPython 3.13.0 at /Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13. Pip 24.0 requires Python <3.13,>=3.7.
What's requesting that pip version?better-van-82973
10/08/2024, 1:00 PMcrooked-honey-24238
10/08/2024, 1:03 PMcoverage-py
tool being >=3.8, so it was implicitly covering a version range including 3.13better-van-82973
10/08/2024, 1:04 PM>=3.7, <4
(we fixed this in Pants 2.24)crooked-honey-24238
10/08/2024, 1:06 PMpip_version = 'latest'
but that didn't work. I tried pip_version = '24.2'
explicitly but still got the error:
The Pip requested was pip==24.0 but it does not work with the interpreter selected which is CPython 3.13.0 at /Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13. Pip 24.0 requires Python <3.13,>=3.7.
crooked-honey-24238
10/08/2024, 1:06 PMThe error message you got was because the default version range for most tools used to beOh that's interesting context(we fixed this in Pants 2.24)>=3.7, <4
better-van-82973
10/08/2024, 1:08 PMpip_version = '24.2'
in the right section of the config?crooked-honey-24238
10/08/2024, 1:09 PM[python]
interpreter_constraints = ['==3.13.*']
pip_version = '24.2'
better-van-82973
10/08/2024, 1:10 PMcrooked-honey-24238
10/08/2024, 1:14 PMbetter-van-82973
10/08/2024, 1:15 PMcrooked-honey-24238
10/08/2024, 1:25 PMdocformatter
had an error ModuleNotFoundError: No module named 'lib2to3'
I assume it's not stable yet so not really possible for me to use python 3.13 just yet?better-van-82973
10/08/2024, 1:28 PMbetter-van-82973
10/08/2024, 1:28 PMcrooked-honey-24238
10/08/2024, 1:29 PMcrooked-honey-24238
10/08/2024, 1:29 PMbetter-van-82973
10/08/2024, 1:29 PMbrainy-fireman-90351
10/11/2024, 4:34 PMinterpreter_constraints = ["CPython==3.11.*"]
and pants_version = "2.21.0"
• Got python 3.13 installed automatically while running a humble brew upgrade
(iirc, isort
added that as dependency)
• The entire thing wrecked havoc.
• Simple forced uninstall of python3.13 fixed the issue right back.
• If I understand correctly, ideally I should not have faced this with a hard constraint on 3.11.*better-van-82973
10/14/2024, 8:32 PMIf I understand correctly, ideally I should not have faced this with a hard constraint on 3.11.*The real issue is the tool lockfiles, which used to have constraints of `>=3.7,<4`: https://pantsbuild.slack.com/archives/C046T6T9U/p1728392666402449?thread_ts=1728386679.902609&cid=C046T6T9U. You Even though you have 3.11 set in your interpreter constraints, I believe what’s happening here might be that the tool is run with Python 3.13 due to the constraints in the lockfile. Depending on what tool you try to run, you should be able to set its
interpreter_constraints
as well (ex: for Black) to avoid this issue.brash-glass-61350
11/12/2024, 7:07 PM