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

aws-quickstart fails with "SyntaxError: invalid syntax" #9501

Closed
mahima-ipath opened this issue Jan 23, 2021 · 1 comment
Closed

aws-quickstart fails with "SyntaxError: invalid syntax" #9501

mahima-ipath opened this issue Jan 23, 2021 · 1 comment
Labels
kind: crash For situations where pip crashes resolution: wrong project Should be reported elsewhere

Comments

@mahima-ipath
Copy link

mahima-ipath commented Jan 23, 2021

Environment

  • pip version:20.3.4
  • Python version:Python 2.7.5
  • OS: RHEL 7.7

Description
After upgrading to PIP 20.3.4, getting this error,

[INFO] Relax tty requirement
[INFO] Check for python/pip
Traceback (most recent call last):
  File "<stdin>", line 24226, in <module>
  File "<stdin>", line 199, in main
  File "<stdin>", line 82, in bootstrap
  File "/tmp/tmpVWyxHB/pip.zip/pip/_internal/cli/main.py", line 60
    sys.stderr.write(f"ERROR: {exc}")
                                   ^
SyntaxError: invalid syntax

Expected behavior

Working fine with PIP 20.3.3

How to Reproduce

git clone https://github.com/aws-quickstart/quickstart-linux-utilities.git
          export P=/quickstart-linux-utilities/quickstart-cfn-tools.source
          source $P
          qs_bootstrap_pip || qs_err " pip bootstrap failed "

Output

qs_bootstrap_pip || qs_err " pip bootstrap failed "
[INFO] Relax tty requirement
[INFO] Check for python/pip
Traceback (most recent call last):
  File "<stdin>", line 24226, in <module>
  File "<stdin>", line 199, in main
  File "<stdin>", line 82, in bootstrap
  File "/tmp/tmpVWyxHB/pip.zip/pip/_internal/cli/main.py", line 60
    sys.stderr.write(f"ERROR: {exc}")
                                   ^
SyntaxError: invalid syntax
@pradyunsg pradyunsg changed the title Issue with 20.3.4 aws-quickstart fails with "SyntaxError: invalid syntax" Jan 24, 2021
@pradyunsg pradyunsg added kind: crash For situations where pip crashes resolution: wrong project Should be reported elsewhere labels Jan 24, 2021
@pradyunsg
Copy link
Member

Thanks for filing this issue! Unlike the description implies, the issue is not with pip 20.3.4, but with aws-quickstart is using https://bootstrap.pypa.io/get-pip.py directly:

https://github.com/aws-quickstart/quickstart-linux-utilities/blob/c357bcc12d6b004667e8aba20702c05a0e8e0c5e/quickstart-cfn-tools.source#L295

The latest get-pip.py (which is for 21.0, NOT 20.3.4) does not support Python 2.

Please file an issue with them to update their scripts for the reality that pip as dropped Python 2 support and they should use get-pip.py from https://bootstrap.pypa.io/2.7/ instead. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind: crash For situations where pip crashes resolution: wrong project Should be reported elsewhere
Projects
None yet
Development

No branches or pull requests

2 participants