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

Can youtube-dl move to python 3.8 ? #23350

Closed
shirishag75 opened this issue Dec 8, 2019 · 1 comment
Closed

Can youtube-dl move to python 3.8 ? #23350

shirishag75 opened this issue Dec 8, 2019 · 1 comment
Labels

Comments

@shirishag75
Copy link

@shirishag75 shirishag75 commented Dec 8, 2019

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2019.11.28
  • I've searched the bugtracker for similar feature requests including closed ones

In Debian, we are moving all python 2.x stuff and moving to python 3.8 . See [1] [2] . Seems even Canonical i.e. Ubuntu is moving there, see [3]

Almost 50-60% of the packages in the Debian archive have moved to python 3.8, the rest would be moving soon. While seeing a potential video download it seems we still use python 2.7, see

#22360 (comment)

I did try to see if there were any active branches which were using or considering python 3.8 but came up short. FWIW, I did look at the bugs to see if there was a bug which mentioned python3.8 but didn't find it. :(

  1. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931659
  2. https://release.debian.org/transitions/html/python2-rm.html
  3. https://people.canonical.com/~ubuntu-archive/transitions/html/python2-rm.html
  4. https://github.com/ytdl-org/youtube-dl/branches

@remitamine any comments here would also be appreciated.

@shirishag75 shirishag75 added the request label Dec 8, 2019
@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 8, 2019

the code is compatible with both Python 2.6+ and Python 3.2+, there is nothing to on the youtube-dl side, it's up to the distribution to choose the default version used to run Python programs, for example, Arch Linux uses Python 3.x by default:

youtube-dl -v
[debug] System config: []
[debug] User config: ['-f', 'best[height<=768]/bestvideo[height<=768]+bestaudio/best', '--hls-prefer-ffmpeg', '--external-downloader', 'curl', '--sub-format', 'ass/tt/ttml/dfxp/scc/vtt/srt/sami/best']
[debug] Custom config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2019.11.28
[debug] Python version 3.8.0 (CPython) - Linux-5.4.1-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.1, ffprobe 4.2.1, rtmpdump 2.4
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.

the issue you have with Python 2 has been already reported in #23256.

@remitamine remitamine closed this Dec 8, 2019
@remitamine remitamine mentioned this issue Dec 8, 2019
4 of 5 tasks complete
@ytdl-org ytdl-org locked and limited conversation to collaborators Jan 12, 2020
@ytdl-org ytdl-org deleted a comment from jaddawyn Jan 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.