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.

The warning message for Python 2.7 EOL is shown even for Pythons that are not EOL'ing

See original GitHub issue

Environment

  • pip version: 19.0.1
  • Python version: pypy 6.0.0
  • OS: macOS

PyPy is not EOL’ing on January 1, 2020, but the warning message emitted claims it is.

Description Not sure how much fixing this matters – I’m not sure whether there’s a clear existing statement or commitment for pip to maintain support for Python2 regardless of CPython (I’d assume from the addition of this warning that there’s at least some near-term plan to follow suit).

But as is, I’ve had a few internal developers ask me whether the message was accurate for us, for which I’ve had to explain it wasn’t, so I figured I’d see whether modifying this message matters to anyone else.

Expected behavior A warning simply about pip’s own plans in cases where the interpreter itself is not EOLing

How to Reproduce Run e.g. pip list under Python 2.7.

Output

⊙  pip list | head -n2                                                                                                                           julian@Air ●
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
ssbarneacommented, Feb 18, 2019

@xavfernandez Thanks for the workaround, I bet it can prove useful for lots of small projects.

Still, on by projects it is effectely impossible to apply this. For example on OpenStack we have hundreads of job definitions (and multiple CI systems) and even with a lot of inheritance between them we could not be able to obliterate this message.

In addition to this this could pose problem on many places where PYTHONWARNINGS is already defined, for different purposes.

I am afraid that the correct solution for this is to undo the change that adds this “feature”.

3reactions
ssbarneacommented, Feb 12, 2019

Is there a way to permanently disable this (annoying) warning which is polutting the build logs? … or we should just stop using newer versions of pip to avoid it?

For pip version check we at least had PIP_DISABLE_PIP_VERSION_CHECK to use to diable it but for this one I was not able to find any cli option to diable it.

This gets displayed on each pip call and if you could have lots of them even on a single tox environment, making your build logs like the 🎄

Read more comments on GitHub >

github_iconTop Results From Across the Web

PIP: Can I ignore erroneous Python 2.7 EOL warnings?
This message is maybe just a joke, as Python3.5 is installed on my system: % python3.5 Python 3.5.2 (default, Jan 26 ...
Read more >
Sunsetting Python 2
We have decided that January 1, 2020, was the day that we sunset Python 2. That means that we will not improve it...
Read more >
How to Secure Python 2 Past End of Life (EOL) with ActiveState
Understand the security risks of using Python 2 past End of Life ... (Note of caution: caniusepython3 is no longer actively developed).
Read more >
Apple removes Python 2.7 in macOS 12.3 beta - Hacker News
My understanding is that once they remove python2, there won't be any Python bundled. There will be a python3 handler that just prints...
Read more >
Pythonic Y2K - Mailing List Archive
As a note, I am not complaining that python has evolved in incompatible ... the same way that support for versions older than...
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