-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] State pip.installed fails when upgrade is True with pip version 20.3 #59100
Comments
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
according to the the underlying pip problem/ticket: pypa/pip#9139 you can use |
FYI even if my PR for |
we fixed what we can for |
@sagetherage This wasn't my issue, I was just informing you about part of a feature being removed from Pip. |
@sagetherage would it be OK to re-open this ticket? I'm using salt version 3003 (Aluminium) and I still experience the problem. Thanks! Edit: it turns out Debian bullseye's version of |
Problem description
function
pip.installed
fails when running it withupgrade: True
with pip3 v10+. After looking through the code I noticed that the state calls the functionpip.list_all_versions
. This module in turn runs the command[your running python] -m pip install {pkgname}==versions
in my case it will runpython3 -m pip install pip==versions
the idea behind the "random" wordversions
is that pip would return all available versions if it mismatches. However in pip version 10+ it does not return thefrom versions: xx xx
anymore. Due to this it gives an error and pip will not be installed.Testing/Research
output from the command line when running the command myself with pip v9.0.3:
output from the command line when running the command myself with pip v20.3:
Here is my minion debug output:
My state snippet:
Note: if i comment the
- upgrade: True
It runs fine.Versions report:
The text was updated successfully, but these errors were encountered: