question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python 2.7 Broken

See original GitHub issue

Latest commit broke python 2.7 compatibility over string formatting 😦

python2.7 get-pip.py
Traceback (most recent call last):
    File "get-pip.py", line 24226, in <module>
        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/tmpO8Gfeg/pip.zip/pip/_internal/cli/main.py", line 60
        sys.stderr.write(f"ERROR: {exc}")
        ^

SyntaxError: invalid syntax

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pradyunsgcommented, Jan 23, 2021
1reaction
pradyunsgcommented, Mar 22, 2022

https://github.com/pypa/get-pip/commit/b44c5248c6916cbfa650e419fc8fb9ed39dd6a44 was the commit that provided a helpful message to users when this was migrated. That was reverted after a grace period.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 2.7 installation is broken #102 - micheles/decorator
From my experience on other projects getting that issue, I would bet this is caused by performing the upload using an old setuptools...
Read more >
macos - How to fix broken python 2.7.11 after OSx updates ...
How I got it to work: · 1 - Removed python 2.7 by using the post in here · 2 - Removed the...
Read more >
Issue 29525: Python 2.7.13 for Windows broken (from prompt)
I used to have an older version of python 2.7 that has worked for years. I just upgraded to 2.7.13 for Windows, 32...
Read more >
apt - Uninstalling Python 2.7.12 on ubuntu 18.04 ended with ...
Uninstalling Python 2.7.12 on ubuntu 18.04 ended with broken packages [duplicate] ... sudo apt install python Reading package lists.
Read more >
Entware/Python2 broken - Zyxel Community
I fixed it using the system python2 (/usr/bin/python2; Python 2.7.9). The entware Python 2 require building a new package list. It can be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found