-
-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No supported version of Pip is compatible with the given targets #21690
Comments
Try using pants 2.23.0. It solved the same issue for me. |
Sorry for the trouble. We'd need a lot more information to debug this. Ideally a small github repo that reproduces it (and whose README explains how to reproduce it). There are so many moving parts in your config, BUILD files etc, that it's not possible to say with confidence what the solution is without seeing that. That said, if pants 2.23.0 works for you, as @medflowdev suggests, then... :) |
You definitely do not need more information to debug this. The listed ICs are It may be that this knowledge is spread amongst Pants people, but its definitely there. Certainly @huonw knows all this at least? |
FWIW, I also encountered this after recently upgrading to 2.22. Just tried updating to 2.23 and it seems to have resolved the issue. |
FWIW, here are some of the existing issues documenting this problem:
Here is at least one of the fixes: #21389 |
Thanks Guys.
Note that it also errors on 2.23.0 if I enable that plugin. |
@netapp-vaughan, assuming @cburroughs knew what he was talking about, that observation confirms his note here: https://www.pantsbuild.org/blog/2024/08/24/venerable-pythons#user-content-fn-1-a1cb28 This seems to be confirmed as well by:
@netapp-vaughan maybe you missed this bit of the blog post, snipped:
That teaches you how to solve this problem without disabling black in older Pants versions. |
Is there any other change in 2.23 that may have resolved this? I can reliably reproduce the error by downgrading to 2.22 and resolve it by upgrading to 2.23. Both 2.22 and 2.23 show the I use the |
@bmcandr do you have a Python 3.13 installed and on the PATH? |
Yep. Here's the error from 2.22:
|
Aha, but you do not have 3.7 installed like @netapp-vaughan. The later Pips supported by Pants 2.23 support Python |
Unless I'm mistaken, a Pants maintainer can close this is an answered question. AFAICT there are 0 mysteries left. |
@bmcandr perhaps to make things more clear: even though Pip claims a Requires-Python of Relevant here, Pip 24.0 for Pants 2.22: And Pip 24.2 for Pants 2.24.0a0: You'll note the former does not cover your range (which is cp38-cp313, cp313 being the not covered version), where the latter does (Pex is currently running test shards against 3.14 alphas; so knows Pip works with 3.14; thus the |
Thanks @jsirois, that was a helpful explanation. |
Thanks @jsirois ! |
Describe the bug
I am unable to run
pants fix
. I received the errorNo supported version of Pip is compatible with the given targets
.Pants version
2.22.0rc2
OS
MacOS Arm64
Additional info
`
❯ pants fix src/python/
19:52:28.91 [ERROR] 1 Exception encountered:
Engine traceback:
in
fix
goalProcessExecutionFailure: 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 /Users/vaughand/.pyenv/versions/3.10.12/bin/python3.10
cp310-cp310-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.10.13/bin/python3.10
cp310-cp310-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.10.14/bin/python3.10
cp310-cp310-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.10.9/bin/python3.10
cp310-cp310-macosx_14_0_arm64 interpreter at /opt/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/bin/python3.10
cp311-cp311-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.11.1/bin/python3.11
cp311-cp311-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.11.3/bin/python3.11
cp311-cp311-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.11.4/bin/python3.11
cp311-cp311-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.11.8/bin/python3.11
cp311-cp311-macosx_14_0_arm64 interpreter at /opt/homebrew/Cellar/[email protected]/3.11.10/Frameworks/Python.framework/Versions/3.11/bin/python3.11
cp312-cp312-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.12.4/bin/python3.12
cp312-cp312-macosx_14_0_arm64 interpreter at /opt/homebrew/Cellar/[email protected]/3.12.7_1/Frameworks/Python.framework/Versions/3.12/bin/python3.12
cp313-cp313-macosx_14_0_arm64 interpreter at /opt/homebrew/Cellar/[email protected]/3.13.0_1/Frameworks/Python.framework/Versions/3.13/bin/python3.13
cp37-cp37m-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.7.17/bin/python3.7
cp38-cp38-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.8.10/bin/python3.8
cp39-cp39-macosx_14_0_arm64 interpreter at /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9
cp39-cp39-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.9.12/bin/python3.9
cp39-cp39-macosx_14_0_arm64 interpreter at /Users/vaughand/.pyenv/versions/3.9.13/bin/python3.9
`
I can execute pip in the above /bin folders without trouble.
The text was updated successfully, but these errors were encountered: