Open steelliberty opened 1 year ago
I too have just started getting this error. It occurs on all my attempted downloads both on Mac and Linux.
Just now started getting the same error under Ubuntu 22.04 on every download i try. Cannot validate on other systems currently. Seems like something suddenly changed on YouTubes side, everything still worked perfectly fine about an hour ago. Tried downloading, dumping information only, with and without authentication, used several URLs from single videos and whole playlists, but it's always the same error for everything i tried. I was using the latest version already but also went and built a fresh version of youtube-dl myself just now from the master branch, but that also changed nothing.
My traceback looks mostly the same, except for the paths up until youtube-dl as i installed it to /usr/local/bin
, but find it here anyway if required: https://pastebin.com/UBmBfZPU
This error is happening to me too. Does anyone have a solution?
I just started getting this error a few hours ago as well
Just got this error as well, here on Windows
Here too on MacOS.
COMMAND: youtube-dl --extract-audio -f 'bestaudio[ext=m4a]' --get-url 'https://www.youtube.com/watch?v=E4E-rIjfPe0'
OUTPUT:
File "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 1360, in _decrypt_signature
func = self._extract_signature_function(
File "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 1277, in _extract_signature_function
cache_res = res(test_string)
File "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 1344, in <lambda>
return lambda s: initial_function([s])
File "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/jsinterp.py", line 258, in resf
res, abort = self.interpret_statement(stmt, local_vars)
File "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/jsinterp.py", line 56, in interpret_statement
v = self.interpret_expression(expr, local_vars, allow_recursion)
File "/opt/homebrew/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/jsinterp.py", line 182, in interpret_expression
return obj[member](argvals)
KeyError: 'QV'
(caused by KeyError('QV')); 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.```
Same here on Linux
Confirmed on two different linux machines, both up to date. Worked fine two days ago.
Same error on Ubuntu Server 20.04 LTS, newest commit.
I got the same Error on Windows 10. The traceback was a lot shorter. Then I tried with yt_dlp (youtube_dlp) and it worked fine with me.
It appears for me at least on MacOS that it's suddenly working fine now.
Another youtube downloader is suddenly failing too. From its error message seems dues to the new consent page you'd get redirected too when trying to reach a playlist without being logged in.
this :point_down: is the other downloader's error message I mentioned
This is a new JS issue introduced with player 6ed0d907.
I have the same issue
The signature JS is like this (player line 2632):
Lsa = {
a = a.split('');
AH.QV(a, 46);
AH.pO(a, 1);
AH.QV(a, 26);
AH.LR(a, 56);
AH.pO(a, 3);
AH.QV(a, 24);
AH.pO(a, 2);
return a.join('')
};
var Lsa
is declared at the start of the player. var AH
is defined much later, on lines 8734-6:
var AH = {
LR: function (a, b) {
var c = a[0];
a[0] = a[b % a.length];
a[b % a.length] = c
},
QV: function (a) {
a.reverse()
},
pO: function (a, b) {
a.splice(0, b)
}
};
Because of var hoisting (thanks Brendan), AH
is in scope when the assignment to Lsa
is executed. However, we are not constructing or passing the gigantic local context, including AH
, to the signature function.
the library yt_dlp worked fine for me
This is also happening to me.. ive tried many times. Has anyone found a solution?
This is also happening to me.. ive tried many times. Has anyone found a solution?
No, have you?
I've been looking but have not found anything yet..
@davidecavaliere, please open a new issue (subject to #30839) for the consent issue, if it affects yt-dl.
Per https://github.com/yt-dlp/yt-dlp/issues/7327#issuecomment-1595764214, there is a short-term fix that needs to be verified before pushing to master.
same err
The issue is fixed (until some new player breaks the hack) in the master code. Follow updating instructions in #31530 until a new release is made.
I'll leave this open for now as a honeypot for affected users ...
Gettings this as well
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: DownloadError: [0;31mERROR:[0m Signature extraction failed: Traceback (most recent call last):
File "{HOME}/.local/share/Red-DiscordBot/data/namora/cogs/Downloader/lib/youtube_dl/extractor/youtube.py", line 1360, in _decrypt_signature
func = self._extract_signature_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{HOME}/.local/share/Red-DiscordBot/data/namora/cogs/Downloader/lib/youtube_dl/extractor/youtube.py", line 1277, in _extract_signature_function
cache_res = res(test_string)
^^^^^^^^^^^^^^^^
File "{HOME}/.local/share/Red-DiscordBot/data/namora/cogs/Downloader/lib/youtube_dl/extractor/youtube.py", line 1344, in <lambda>
return lambda s: initial_function([s])
^^^^^^^^^^^^^^^^^^^^^
File "{HOME}/.local/share/Red-DiscordBot/data/namora/cogs/Downloader/lib/youtube_dl/jsinterp.py", line 258, in resf
res, abort = self.interpret_statement(stmt, local_vars)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{HOME}/.local/share/Red-DiscordBot/data/namora/cogs/Downloader/lib/youtube_dl/jsinterp.py", line 56, in interpret_statement
v = self.interpret_expression(expr, local_vars, allow_recursion)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{HOME}/.local/share/Red-DiscordBot/data/namora/cogs/Downloader/lib/youtube_dl/jsinterp.py", line 182, in interpret_expression
return obj[member](argvals)
~~~^^^^^^^^
KeyError: 'QV'
(caused by KeyError('QV')); 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.
@japandotorg, @masterivanic, @shankar-v, @stm32learn, @Arkansis2901, @NStuster: https://github.com/ytdl-org/youtube-dl/issues/32314#issuecomment-1595779984
@thedtvn, you are not running the commit that you think you are, which would have been apparent if you'd posted the whole log.
@japandotorg: #32314 (comment)
@thedtvn, you are not running the commit that you think you are, which would have been apparent if you'd posted the whole log.
sorry
same error, KeyError: 'QV' (caused by KeyError('QV'));
I think the problem that i am seeing is reported here. I am in the windows environment with the latest version
youtube-dl.exe --verbose https://www.youtube.com/watch?v=w265XTgOd0s [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=w265XTgOd0s'] [debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252 [debug] youtube-dl version 2021.12.17 [debug] Python version 3.4.4 (CPython) - Windows-10-10.0.22621 [debug] exe versions: none [debug] Proxy map: {} [youtube] w265XTgOd0s: Downloading webpage [youtube] w265XTgOd0s: Downloading player 6ed0d907 ERROR: Signature extraction failed: Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1361, in _decrypt_signature File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1277, in _extract_signature_function File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1344, in
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\jsinterp.py", line 258, in resf File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\jsinterp.py", line 56, in interpret_statement File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\jsinterp.py", line 182, in interpret_expression KeyError: 'QV' (caused by KeyError('QV',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1361, in _decrypt_signature File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1277, in _extract_signature_function File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1344, in File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\jsinterp.py", line 258, in resf File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\jsinterp.py", line 56, in interpret_statement File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\jsinterp.py", line 182, in interpret_expression KeyError: 'QV' Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1361, in _decrypt_signature File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1277, in _extract_signature_function File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1344, in File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\jsinterp.py", line 258, in resf File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\jsinterp.py", line 56, in interpret_statement File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\jsinterp.py", line 182, in interpret_expression KeyError: 'QV'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 534, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1641, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1371, in _decrypt_signature
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1361, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1277, in _extract_signature_function
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1344, in
I'm having the exact same error. I have the latest version installed. No matter what I've tried it still has the same error. Tried it on replit(python), window 10, linux and all have the same error.
Hi, i also have a problem, that my youtube-dl doesn't work for my bot. Every time when i typ in the code, it pops up an Error.... Idk why either the AI can help me or my friends, know i am asking y'all for help....
Since today here too, on ubuntu in WSL in win 11: KeyError: 'QV'
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 1584, in _decrypt_signature
func = self._extract_signature_function(
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 1506, in _extract_signature_function
cache_res = res(test_string)
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 1573, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 819, in wrapper
return func(self, *args, **kwargs)
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 840, in __extract_info
ie_result = ie.extract(url)
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/extractor/common.py", line 535, in extract
ie_result = self._real_extract(url)
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 2017, in _real_extract
signature = self._decrypt_signature(sc['s'][0], video_id, player_url)
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 1594, in _decrypt_signature
raise ExtractorError(
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 1584, in _decrypt_signature
func = self._extract_signature_function(
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 1506, in _extract_signature_function
cache_res = res(test_string)
File "/home/nikki/.local/lib/python3.10/site-packages/youtube_dl/extractor/youtube.py", line 1573, in
[Update] This issue is solved: see https://github.com/ytdl-org/youtube-dl/issues/32314#issuecomment-1595779984.
Checklist
Verbose log
Description
I am unable to get the filename or download this video. I am using it in python code, but even from the command line the error above occurs.