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

Receiving "could not find JS function 'gz' all the sudden (latest version 8/24.1) #10446

Closed
CollinChaffin opened this issue Aug 26, 2016 · 6 comments
Labels

Comments

@CollinChaffin
Copy link

@CollinChaffin CollinChaffin commented Aug 26, 2016

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.08.24.1. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • [x ] I've verified and I assure that I'm running youtube-dl 2016.08.24.1

Before submitting an issue make sure you have:

  • [x ] At least skimmed through README and most notably FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • [x ] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2016.08.24.1
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):


Description of your issue, suggested solution and other information

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue required an account credentials please provide them or explain how one can obtain them.

Just began receiving this error when downloading from Youtube:

[youtube] aaFNcJT4aQQ: Downloading webpage
[youtube] aaFNcJT4aQQ: Downloading video info webpage
[youtube] aaFNcJT4aQQ: Extracting video information
[youtube] aaFNcJT4aQQ: Downloading js player en_US-vflrza-6I
ERROR: Signature extraction failed: Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 997, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 912, in _extract_signature_function
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 975, in _parse_sig_js
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\jsinterp.py", line 241, in extract_function
youtube_dl.utils.ExtractorError: Could not find JS function 'gz'; 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.
(caused by ExtractorError("Could not find JS function 'gz'; please report this
issue on https://yt-dl.org/bug . Make sure you are using the latest version; typ
e youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag
and include its complete output.",)); please report this issue on https://yt-dl.
org/bug . Make sure you are using the latest version; type youtube-dl -U to up
date. Be sure to call youtube-dl with the --verbose flag and include its complet
e output.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 26, 2016

Post the full output of youtube-dl when run with -v, i.e. add -v flag to your command line, copy the whole output and post it in the issue body wrapped in ``` for better formatting. It should look similar to this:

$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2015.12.06
[debug] Git HEAD: 135392e
[debug] Python version 2.6.6 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...

Do not post screenshots of verbose log only plain text is acceptable.

The output (including the first lines) contains important debugging information. Issues without the full output are often not reproducible and therefore do not get solved in short order, if ever.

@CollinChaffin
Copy link
Author

@CollinChaffin CollinChaffin commented Aug 27, 2016

Sorry here is an example of a youtube video generating this error using verbose switch:

D:\Downloads>youtube-dl -v "https://www.youtube.com/watch?v=aaFNcJT4aQQ"
[debug] System config: []
[debug] User config: ['--continue', '--ignore-errors', '--no-overwrites', '-f',
'best', '--output', '%(playlist_index)s_%(upload_date)s_%(height)sP_%(title)s.%(
ext)s']
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=aaFNcJT4aQQ']

[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2016.06.14
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-80256-g0a9e781, ffprobe N-80256-g0a9e781
[debug] Proxy map: {}
[youtube] aaFNcJT4aQQ: Downloading webpage
[youtube] aaFNcJT4aQQ: Downloading video info webpage
[youtube] aaFNcJT4aQQ: Extracting video information
[youtube] {22} signature length 40.43, html5 player en_US-vflrza-6I
[youtube] aaFNcJT4aQQ: Downloading player https://s.ytimg.com/yts/jsbin/player-e
n_US-vflrza-6I/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 997, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 912, in _extract_signature_function
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 975, in _parse_sig_js
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\jsinterp.py", line 241, in extract_function
youtube_dl.utils.ExtractorError: Could not find JS function 'gz'; 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.
(caused by ExtractorError("Could not find JS function 'gz'; please report this
issue on https://yt-dl.org/bug . Make sure you are using the latest version; typ
e youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag
and include its complete output.",)); please report this issue on https://yt-dl.
org/bug . Make sure you are using the latest version; type youtube-dl -U to up
date. Be sure to call youtube-dl with the --verbose flag and include its complet
e output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 997, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 912, in _extract_signature_function
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 975, in _parse_sig_js
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\jsinterp.py", line 241, in extract_function
youtube_dl.utils.ExtractorError: Could not find JS function 'gz'; 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\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 997, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 912, in _extract_signature_function
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 975, in _parse_sig_js
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\jsinterp.py", line 241, in extract_function
youtube_dl.utils.ExtractorError: Could not find JS function 'gz'; 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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\YoutubeDL.py", line 676, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\common.py", line 342, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 1570, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 1007, in _decrypt_signature
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most re
cent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 997, in _decrypt_signature
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 912, in _extract_signature_function
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\extractor\youtube.py", line 975, in _parse_sig_js
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa3ey2lj9\bu
ild\youtube_dl\jsinterp.py", line 241, in extract_function
youtube_dl.utils.ExtractorError: Could not find JS function 'gz'; 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.
(caused by ExtractorError("Could not find JS function 'gz'; please report this
issue on https://yt-dl.org/bug . Make sure you are using the latest version; typ
e youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag
and include its complete output.",)); please report this issue on https://yt-dl.
org/bug . Make sure you are using the latest version; type youtube-dl -U to up
date. Be sure to call youtube-dl with the --verbose flag and include its complet
e output.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 27, 2016

You are using an outdated version of youtube-dl. Read this FAQ entry if you have troubles updating.

@dstftw dstftw closed this Aug 27, 2016
@CollinChaffin
Copy link
Author

@CollinChaffin CollinChaffin commented Aug 27, 2016

Just ran this:

C:\Data\Scripts\Sync\Scripts>youtube-dl -U
youtube-dl is up-to-date (2016.08.24.1)

Is there a newer version? Why is the update command not finding something newer than 8.24.1?

EDIT: Looks like have a 2nd version I missed in the one single local folder. When I rerun from other location, you are correct it is resolved in current version! Doh! Thanks and sorry!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 27, 2016

[debug] youtube-dl version 2016.06.14

You have multiple instances of youtube-dl in PATH. where youtube-dl and manage copies.

@CollinChaffin
Copy link
Author

@CollinChaffin CollinChaffin commented Aug 27, 2016

Yep, so sorry in this folder had prior issue and forgot I had manually downloaded another older version to test some time ago and not deleted it. :)

Sorry go ahead and close this issue!

@dstftw dstftw added the invalid label Aug 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.