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

dies with "KeyError: 'sig'" #1238

Closed
Gumnos opened this issue Aug 14, 2013 · 6 comments
Closed

dies with "KeyError: 'sig'" #1238

Gumnos opened this issue Aug 14, 2013 · 6 comments

Comments

@Gumnos
Copy link

@Gumnos Gumnos commented Aug 14, 2013

Trying to pull down Ok Go's Here It Goes Again using the latest master branch from git (0526e4f) on Debian Stable, but I got the traceback below. It continues to work well for other Youtube URLs.

tim@bigbox$ ~/bin/downloads/youtube-dl/youtube-dl --get-url --prefer-free-formats http://www.youtube.com/watch?v=dTAAsCNK7RA
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/__main__.py", line 7, in <module>
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/__init__.py", line 558, in main

  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/__init__.py", line 542, in _real_main

  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/FileDownloader.py", line 478, in download
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/InfoExtractors.py", line 82, in extract
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/InfoExtractors.py", line 436, in _real_extract
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/InfoExtractors.py", line 436, in <genexpr>
KeyError: 'sig'
@phihag
Copy link
Contributor

@phihag phihag commented Aug 14, 2013

0526e4f is ancient, why do you think it would be the latest commit? Can you post the entire input and output of all git commands you used?

@Gumnos
Copy link
Author

@Gumnos Gumnos commented Aug 14, 2013

Gaa, my apologies. I did a git fetch, but forgot to merge/pull. Bone-headed user mistake. Sorry for the noise. After a "git pull", 0577177 runs without a traceback, but does complain about encryption issues on the same video:

tim@bigbox: ~/bin/downloads/youtube-dl/youtube-dl --prefer-free-formats http://www.youtube.com/watch?v=dTAAsCNK7RA
[youtube] Setting language
[youtube] dTAAsCNK7RA: Downloading video webpage
[youtube] dTAAsCNK7RA: Downloading video info webpage
[youtube] dTAAsCNK7RA: Extracting video information
[youtube] dTAAsCNK7RA: Encrypted signatures detected.
ERROR: unable to download video

Is youtube-dl supposed to be able to handle these encrypted videos too? (If not, I can resign myself to going without, just hoped to pull it locally to save bandwidth from our preschooler wanting to repeatedly watch it)

@phihag
Copy link
Contributor

@phihag phihag commented Aug 14, 2013

Yes, youtube-dl handles these just fine. However, youtube changes the signature, and we haven't integrated a system to dynamically fetch that yet. Can you try to pull again, and then give the output with --verbose in the command line?

@Gumnos
Copy link
Author

@Gumnos Gumnos commented Aug 14, 2013

Here's the output from cd ~/bin/downloads/youtube-dl/; git pull; ./youtube-dl --verbose --prefer-free-formats http://www.youtube.com/watch?v=dTAAsCNK7RA which now gives a 403 Forbidden:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--prefer-free-formats', 'http://www.youtube.com/watch?v=dTAAsCNK7RA']
[debug] youtube-dl version 2013.08.09
[debug] Python version 2.7.3 - Linux-3.2.0-4-amd64-x86_64-with-debian-7.1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] dTAAsCNK7RA: Downloading video webpage
[youtube] dTAAsCNK7RA: Downloading video info webpage
[youtube] dTAAsCNK7RA: Extracting video information
[youtube] dTAAsCNK7RA: Encrypted signatures detected.
[youtube] encrypted signature length 83 (41.41), itag 44, html5 player vfl1HXdPb
[youtube] encrypted signature length 83 (41.41), itag 35, html5 player vfl1HXdPb
[youtube] encrypted signature length 83 (41.41), itag 43, html5 player vfl1HXdPb
[youtube] encrypted signature length 83 (41.41), itag 34, html5 player vfl1HXdPb
[youtube] encrypted signature length 83 (41.41), itag 18, html5 player vfl1HXdPb
[youtube] encrypted signature length 83 (41.41), itag 5, html5 player vfl1HXdPb
[youtube] encrypted signature length 83 (41.41), itag 36, html5 player vfl1HXdPb
[youtube] encrypted signature length 83 (41.41), itag 17, html5 player vfl1HXdPb
ERROR: unable to download video
Traceback (most recent call last):
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 573, in download
    videos = self.extract_info(url)
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 327, in extract_info
    return self.process_ie_result(ie_result, download=download)
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 410, in process_ie_result
    for r in ie_result['entries']
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 357, in process_ie_result
    self.process_info(ie_result)
  File "/home/tim/bin/downloads/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 550, in process_info
    raise UnavailableVideoError(err)
UnavailableVideoError: HTTP Error 403: Forbidden
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 21, 2013

It's working fine with version 2013.08.21.

@jaimeMF jaimeMF closed this Aug 21, 2013
@Gumnos
Copy link
Author

@Gumnos Gumnos commented Aug 21, 2013

Confirmed working here. Thanks!

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
3 participants
You can’t perform that action at this time.