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.
Python 2 no longer supported? #15972
Comments
|
Can't you close this yourself (as it's you the one that opened it... ) ? |
I've verified and I assure that I'm running youtube-dl 2018.03.20
At least skimmed through the README, most notably the FAQ and BUGS sections
Searched the bugtracker for similar issues including closed ones
Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser
When downloading songs from Soundcloud while running youtube-dl on Python 2 (installed with python-pip on Debian 9), I get the log below.
After installing the Python 3 version (with python3-pip), it works as intended.
I found this bug report, that suggests that you no longer support Python2. Is this true?
terus@i5temp:~/Music/Music$ youtube-dl -v https://soundcloud.com/everydayastronaut/moon-dance
[debug] System config: []
[debug] User config: [u'--no-mtime']
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://soundcloud.com/everydayastronaut/moon-dance']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.03.03
[debug] Python version 2.7.13 (CPython) - Linux-4.9.0-6-amd64-x86_64-with-debian-9.4
[debug] exe versions: ffmpeg 3.2.10-1, ffprobe 3.2.10-1
[debug] Proxy map: {}
[soundcloud] everydayastronaut/moon-dance: Resolving id
[soundcloud] everydayastronaut/moon-dance: Downloading info JSON
ERROR: Unable to download JSON metadata: HTTP Error 401: Unauthorized (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/home/terus/.local/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 519, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/home/terus/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 2199, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
terus@i5temp:~/Music/Music$