Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Drop python 2.6 support #5697
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. |
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 inunittestand thexmlmodule 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.formatmethod. 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.