-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Drop python 2.6 support #5697
Comments
Are we going to remove python 2.6-specific workarounds? Or just change the policy to "Python 2.6 series is not officially supported" and declare it in documents? The latter option brings less annoyance to users. |
I would first say that we only support 2.7+ and then start removing the workarounds, additionally for any new code that is added we wouldn't check if it works on 2.6 and we would assume that all the features in 2.7 are available. |
According to #2396 (comment) it is probably reasonable to support python 2.6 while RHEL6 and CentOS6 do (namely 2024 and November 30th, 2020 correspondingly). As of workarounds, in case of dropping 2.6 support there would still remain lots of workarounds for python 2.7. |
From the Nick Coghlan's post:
So they should be able to easily install a copy of python 2.7 without interfering with the system version. If they are installing youtube-dl, which is constantly getting updated, I don't think that installing software provided by Red Hat. If some of the core contributors use 2.6 regularly I may understand wanting to support it. But if none of us use it, then we may miss issues and it's a unneeded burden (especially if we consider that we don't get that many reports from people using 2.6).
Apart from the unicode issues and different module names, I don't think there too much of them. At least we would get access to the features in 2.7. |
For making transition easier and doing a survey on how many users would be affected, we could add a warning on python 2.6:
Would you accept this approach? If we get a lot of reasonable complains we could continue to support it, but if most of python 2.6 users upgrade it we could drop the support. |
There's a little trick: not all youtube-dl users have a github account. Is it neccessary to force a github account for a survey? Requiring registering an account can reduce the willingness of sharing ideas. |
You are quite right. I know that Google Docs allows you to create a survey with the results publicly available (which I think we should try to do), maybe you prefer another service? |
Just a reminder: Python 3.2.5, 3.3.6, 3.4.3 and 2.7.10 support SSL SubjectAltName, while 2.6.9 not. See #1589. And I think Google Docs is a good choice if you're going to have a survey. EDIT: Sorry I forgot Python < 2.7.9 does not check certificates. The problem is irrelevant with dropping python 2.6 support. |
Another reason to move to 2.7+ is the addition of helpful modules to the standard library, like |
Dear devs, I would be really grateful if you can look into this issue, which impacts us windows users of youtube-dl. Thank you! |
@videonerd I'm assuming you are talking about #7091, it has nothing to do with using python 2.6. The problem is that the exe is build with python 2.7, it could be fixed if it used python 3.x, see #5094 for more info. |
@jaimeMF thank you for the explanation. If the issue is as simple as building the windows exe using python 3.x, then can we please have the official windows exe built using python 3.x? Thank you. |
As it is the middle of 2016, can I ask that we drop support for Python 2.6, so that we can switch to using |
Switching to |
As a side note: there are still some commits on optparse.py in CPython. I guess it's not completely abandoned.
|
+1 27 months after this issue was opened, here's some current reasons for dropping 2.6:
(Related issue: Drop Python 3.2 support #9751) |
61 months after this issue was opened, here are more reasons for dropping 2(.6):
A few follow up questions 2,5 years later: |
As pip itself (which is probably where most users install youtube-dl from) drops python 2 support january 2021 dropping python 2.6 seems long overdue. Keep in mind that this is only relevant for people not using the exe as it bundles python. People not using the exe will be mostly MacOS and Linux users who have up to date python versions in general. The only exceptions seem to be very old enterprise linux distributions whose set of users I assume have no overlap with the users of youtube-dl. |
It seems like Python 2.7 is not officially supported by
|
This issue can likely be closed, as youtube-dl has new maintainers who committed to supporting Python 2.6 #30568 (comment) |
From #30568 (comment):
Python 2.7 has ben EOL for a couple of years, but 2.6 is a couple of years off a decade EOL (2013-10-29). https://devguide.python.org/devcycle/#end-of-life-branches Is 2.6 still used in those cases? |
An argument which often seem to be forgot is that old version of the library will still work. If you do not upgrade youtube-dl there is nothing to worry about. And if you can update youtube-dl on an embedded device it is usually also possible to update the interpreter |
From "How is Python 2 supported in RHEL after 2020?":
s/RHEL/youtube-dl/ However, it's now 2024, which AFAIK is the year when support for Python 2 expires in Ubuntu 16.04 ESR and RHEL8, and RHEL6 with Python 2.6 reaches End of Maintenance. Python 2.7 support is a feature of the project that will be continued. However, if no Python 2.6 die-hards complain or provide examples of environments where Python 2.6 is required, or maybe even if they do, it's likely that the policy suggested above will start to be applied. These look like the only 2.6-specific issues in the last few years: #31600, #32544. The rationale for this is essentially stated in the second bullet point of the original post. See also |
REHL 7 ships with python 2.7 since June 2014 and the same for CentOS 7, so I think that all the current releases for main Linux distributions have stopped shipping python 2.6 only, OS X includes 2.7 for a few releases and on *BSDs 2.7 can be easily installed from the ports. Therefore all users with updated software could continue to use it.
Some of the problems with python 2.6:
assert*
methods are not available inunittest
and thexml
module doesn't support xpath attributes queries or namespaces. One of the most annoying thing that is missing is the need to explicitly set the index for the.format
method. That's also true to some degree for 2.7 vs 3.x, but 2.7 is currently widely deploy so dropping it would mean that a lot of users would stop using youtube-dl.If someone is using outdated software it would unfortunately stop to work. This can annoy some users, for example those using a PPC Mac where youtube-dl can be the only option for viewing videos from the Internet; although they can probably manually build python 2.7 (I think I managed to compile python 3.{something} in OS X 10.4) or use something like Tigerbrew.
Some interesting read about the problem with supporting python 2.6 is this post by Nick Coghlan and this one from Alex Gaynor.
The text was updated successfully, but these errors were encountered: