Skip to content

get-pip no longer works with explicit args for pip #37

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

Closed
mihnea-dobrescubalaur-hs opened this issue Oct 5, 2018 · 6 comments
Closed

Comments

@mihnea-dobrescubalaur-hs

Hi!

Try curl https://bootstrap.pypa.io/get-pip.py | python - pip==18.0 and you will see that a DoubleRequirement exception is thrown. If you debug a bit, you'll find that actually InstallRequirement.from_line fails (InstallRequirement does not have from_line) and that triggers the continue call in the loop.

Thanks!

@rbreslow
Copy link

rbreslow commented Oct 5, 2018

I'm also getting this. Our Ansible provisioning that uses get-pip.py is broken. https://github.com/azavea/ansible-pip

@benoit-pierre
Copy link
Member

See pypa/pip#5857

benoit-pierre added a commit to benoit-pierre/get-pip that referenced this issue Oct 5, 2018
@benoit-pierre
Copy link
Member

As a temporary workaround, you can use a constraint, e.g.: python get-pip.py -c <(echo 'pip==18.0').

KaiSforza added a commit to KaiSforza/salt-jenkins that referenced this issue Oct 5, 2018
`get-pip.py` is no longer working with just specifying a pip version on
the command line (see pypa/get-pip#37 ) so we have to do some shell
redirection for a constraints file. This will cause us to install pip
9.0.1 or less, as intended. It *should* work. This also modifies the
python 2 version.
KaiSforza added a commit to KaiSforza/salt-jenkins that referenced this issue Oct 5, 2018
`get-pip.py` is no longer working with just specifying a pip version on
the command line (see pypa/get-pip#37 ) so we have to do some shell
redirection for a constraints file. This will cause us to install pip
9.0.1 or less, as intended. It *should* work. This also modifies the
python 2 version.
KaiSforza added a commit to KaiSforza/salt-jenkins that referenced this issue Oct 5, 2018
`get-pip.py` is no longer working with just specifying a pip version on
the command line (see pypa/get-pip#37 ) so we have to do some shell
redirection for a constraints file. This will cause us to install pip
9.0.1 or less, as intended. It *should* work. This also modifies the
python 2 version.
KaiSforza added a commit to KaiSforza/salt-jenkins that referenced this issue Oct 5, 2018
`get-pip.py` is no longer working with just specifying a pip version on
the command line (see pypa/get-pip#37 ) so we have to do some shell
redirection for a constraints file. This will cause us to install pip
9.0.1 or less, as intended. It *should* work. This also modifies the
python 2 version.
@cloneluke
Copy link

duplicate: pypa/pip#5859

@cloneluke
Copy link

another workarond is hardcode pip url to prior version:

https://github.com/raw/pypa/get-pip/f88ab195ecdf2f0001ed21443e247fb32265cabb/get-pip.py

cloneluke pushed a commit to cloneluke/airflow-cookbook that referenced this issue Oct 8, 2018
…ypa/get-pip#37

you can override get_pip_url to prior version likehttps://github.com/raw/pypa/get-pip/f88ab195ecdf2f0001ed21443e247fb32265cabb/get-pip.py
@pradyunsg
Copy link
Member

Thanks @benoit-pierre for the investigation and PR! :)

This didn't show up in my manual "does it install pip on running?" check for get-pip.py prior to the release.

I guess it shows we really need to do #18. Help on that front would be appreciated. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants