Closed geoidesic closed 1 year ago
Review #30839 for your problem and use one of the recommended interim update methods, or whatever you did to install the previous instance. See also #32353, not yet separately added to the pinned issue.
What I did before was install from git master. I tried that again and now I'm getting a completely different error:
Successfully uninstalled youtube-dl-2021.12.17
[foundry@localhost root]$ sudo pip3 install git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dl
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting youtube_dl from git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dl
Cloning https://github.com/ytdl-org/youtube-dl.git (to master) to /tmp/pip-build-gu1lpgmd/youtube-dl
Installing collected packages: youtube-dl
Running setup.py install for youtube-dl ... done
Successfully installed youtube-dl-2021.12.17
[foundry@localhost root]$ youtube-dl --verbose --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=pGw2ztHACxA
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--extract-audio', '--audio-format', 'mp3', 'https://www.youtube.com/watch?v=pGw2ztHACxA']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python 3.6.8 (CPython x86_64 64bit) - Linux-4.18.0-425.13.1.el8_7.x86_64-x86_64-with-almalinux-8.8-Sapphire_Caracal - OpenSSL 1.1.1k FIPS 25 Mar 2021 - glibc 2.3.4
[debug] exe versions: ffmpeg 4.2.9, ffprobe 4.2.9
[debug] Proxy map: {}
[youtube] pGw2ztHACxA: Downloading webpage
[youtube] pGw2ztHACxA: Downloading player 71547d26
[debug] [youtube] Decrypted nsig KOMNJtZiV0wjx2UWLV => d7PBatAWETC7Uw
[debug] [youtube] Decrypted nsig INSLQHc56wCfG-xQLl => xGLxqO-UgtwPIw
[debug] Invoking downloader on 'https://rr4---sn-aigzrn7z.googlevideo.com/videoplayback?expire=1687970806&ei=lg-cZJWQFeP91wbMwZrYBw&ip=88.208.196.110&id=o-AKol_Pl0y9Y2NrACdMlySKHC_xWovfMd6ehtfR9seCGP&itag=140&source=youtube&requiressl=yes&mh=ul&mm=31%2C26&mn=sn-aigzrn7z%2Csn-4g5lznlz&ms=au%2Conr&mv=m&mvi=4&pl=20&initcwndbps=43750&spc=qEK7B7r9ZDIDp4I2E3eq2E9MpgKaOHSYLn-qTBXW4w&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=U0205Vi3NCKIi0f0iDQzXCoN&gir=yes&clen=86854964&dur=5366.711&lmt=1622362903792786&mt=1687948904&fvip=5&keepalive=yes&fexp=24007246%2C51000022&c=WEB&txp=5432434&n=d7PBatAWETC7Uw&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAPQgjVULvQNfJbiKlbFO1ccxkA_6NCyOG0ZtJ4NqwTozAiEA2Mth6xxtCQFxLgwKA5uUfGQGh7_HdK8qrzSZ7F6CPGM%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAOhBZ0HzA_U-YzEFdabsTKQhSVTfRasPhD1mYCRWK-UlAiEAi0T7_RV51FlfDGmMBkm_h6yIRkS2ifoT5H0SYpa1_tA%3D'
[dashsegments] Total fragments: 9
[download] Destination: D&D _ RPG Battle Combat Music-pGw2ztHACxA.m4a
ERROR: unable to download video data: [Errno 13] Permission denied: 'D&D _ RPG Battle Combat Music-pGw2ztHACxA.m4a.ytdl'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1993, in process_info
success = dl(filename, info_dict)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1932, in dl
return fd.download(name, info)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 376, in download
return self.real_download(filename, info_dict)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/downloader/dash.py", line 30, in real_download
self._prepare_and_start_frag_download(ctx)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/downloader/fragment.py", line 69, in _prepare_and_start_frag_download
self._prepare_frag_download(ctx)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/downloader/fragment.py", line 193, in _prepare_frag_download
self._write_ytdl_file(ctx)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/downloader/fragment.py", line 87, in _write_ytdl_file
frag_index_stream, _ = sanitize_open(self.ytdl_filename(ctx['filename']), 'w')
File "/usr/local/lib/python3.6/site-packages/youtube_dl/utils.py", line 2078, in sanitize_open
stream = open(encodeFilename(filename), open_mode)
PermissionError: [Errno 13] Permission denied: 'D&D _ RPG Battle Combat Music-pGw2ztHACxA.m4a.ytdl'
nvm... my user was in the /root folder, thus the above error. Re-installing from master branch on git fixed the issue.
The instructions that you followed have an escape route when "none of the suggested methods worked for me", but your pip installation seems to have succeeded.
Are you still running in the root directory, maybe? The program seems to be working but can't write to the specified directory, which is the current default directory since you haven't given yt-dl a custom output template. Yes, you got there first.
Also, not a problem here, but do quote the 'URL' in case it contains a special shell character like &
.
Checklist
Verbose log
At first I was getting this:
Then I uninstalled and re-installed YouTube-dl and after that the error changed.
Description
So it was working perfectly and quickly till today. Today, I tried it and it was being throttled. Normally this means it requires updating. So I deleted it and re-installed it and now it doesn't work at all.