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

jsinterp failed with: AttributeError: 'NoneType' object has no attribute 'group' #7625

Closed
netch80 opened this issue Nov 24, 2015 · 1 comment
Closed

Comments

@netch80
Copy link

@netch80 netch80 commented Nov 24, 2015

(Already reported in 7624 but the latter one is closed by its originator, so I decided to open a new one.)

The fail log:

Script started on Tue Nov 24 08:31:01 2015
command: yt --verbose iCGM6sRopqE
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-c', u'-f', u'37/85/35/22/18', u'-o', u'%(id)s--%(title)s.%(format_id)s.%(ext)s', u'--verbose', u'iCGM6sRopqE']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.11.23
[debug] Python version 2.7.10 - FreeBSD-10.2-RELEASE-p5-amd64-64bit-ELF
[debug] exe versions: ffmpeg 2.8.2, ffprobe 2.8.2
[debug] Proxy map: {}
[youtube] iCGM6sRopqE: Downloading webpage
[youtube] iCGM6sRopqE: Downloading video info webpage
[youtube] iCGM6sRopqE: Extracting video information
[youtube] {22} signature length 49.43, html5 player en_US-vflUpjAy9
[youtube] iCGM6sRopqE: Downloading player https://s.ytimg.com/yts/jsbin/player-en_US-vflUpjAy9/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 856, in _decrypt_signature
video_id, player_url, s
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 783, in _extract_signature_function
cache_res = res(test_string)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 835, in
return lambda s: initial_function([s])
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 254, in resf
res, abort = self.interpret_statement(stmt, local_vars)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 55, in interpret_statement
v = self.interpret_expression(expr, local_vars, allow_recursion)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 135, in interpret_expression
self._objects[variable] = self.extract_object(variable)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 220, in extract_object
fields = obj_m.group('fields')
AttributeError: 'NoneType' object has no attribute 'group'
(caused by AttributeError("'NoneType' object has no attribute 'group'",)); 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 "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 856, in _decrypt_signature
video_id, player_url, s
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 783, in _extract_signature_function
cache_res = res(test_string)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 835, in
return lambda s: initial_function([s])
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 254, in resf
res, abort = self.interpret_statement(stmt, local_vars)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 55, in interpret_statement
v = self.interpret_expression(expr, local_vars, allow_recursion)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 135, in interpret_expression
self._objects[variable] = self.extract_object(variable)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 220, in extract_object
fields = obj_m.group('fields')
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 663, in extract_info
ie_result = ie.extract(url)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/common.py", line 290, in extract
return self._real_extract(url)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1410, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 866, in _decrypt_signature
'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 856, in _decrypt_signature
video_id, player_url, s
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 783, in _extract_signature_function
cache_res = res(test_string)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 835, in
return lambda s: initial_function([s])
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 254, in resf
res, abort = self.interpret_statement(stmt, local_vars)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 55, in interpret_statement
v = self.interpret_expression(expr, local_vars, allow_recursion)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 135, in interpret_expression
self._objects[variable] = self.extract_object(variable)
File "/var2/homes/netch/bin/youtube-dl/youtube_dl/jsinterp.py", line 220, in extract_object
fields = obj_m.group('fields')
AttributeError: 'NoneType' object has no attribute 'group'
(caused by AttributeError("'NoneType' object has no attribute 'group'",)); 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.

System is: FreeBSD 10.2-RELEASE-p5 amd64
Python 2.7.10

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 24, 2015

Thanks for the verbose log. Looks like a duplicate of #7623.

@yan12125 yan12125 closed this Nov 24, 2015
phihag added a commit that referenced this issue Nov 24, 2015
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.