Skip to content
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

Cannot install from get-pip.py #9574

Closed
1 task done
lttjohn opened this issue Feb 9, 2021 · 1 comment
Closed
1 task done

Cannot install from get-pip.py #9574

lttjohn opened this issue Feb 9, 2021 · 1 comment
Labels
type: bug A confirmed bug or unintended behavior

Comments

@lttjohn
Copy link

lttjohn commented Feb 9, 2021

pip version

none

Python version

2.7.12

OS

Synology DSM 6.2.3-25426 Update 3

Additional information

Hardware: DS420j

Description

syntax error near unexpected token `f"ERROR: {exc}"'

Expected behavior

Python 2.7.12 doesn't support f-string syntax. need rollback to str.format() or %-formatting syntax.

How to Reproduce

sudo -i
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py --python-version "2.7.12"

Output

root@ANIMENAS:~# python get-pip.py --python-version "2.7.12"
Traceback (most recent call last):
File "get-pip.py", line 24244, in
main()
File "get-pip.py", line 199, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
from pip._internal.cli.main import main as pip_entry_point
File "/tmp/tmp9PQmOe/pip.zip/pip/_internal/cli/main.py", line 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax

Code of Conduct

  • I agree to follow the PSF Code of Conduct
@lttjohn lttjohn added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Feb 9, 2021
@uranusjr
Copy link
Member

uranusjr commented Feb 9, 2021

#9520

@uranusjr uranusjr closed this as completed Feb 9, 2021
@uranusjr uranusjr removed the S: needs triage Issues/PRs that need to be triaged label Feb 9, 2021
@pypa pypa locked as resolved and limited conversation to collaborators Feb 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants