youtube-dl crashed with UnboundLocalError in _real_extract(): local variable 'video_id' referenced before assignment

Bug #1101165 reported by Daniel Holbach
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
youtube-dl (Debian)
Fix Released
Unknown
youtube-dl (Ubuntu)
Fix Released
High
Unassigned
Precise
Won't Fix
High
Unassigned

Bug Description

Looks like it's fixed upstream already: http://youtube-dl.org/downloads/2013.01.13/youtube-dl

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 "/usr/bin/youtube-dl/__main__.py", line 7, in <module>
    __init__.main()
  File "/usr/bin/youtube-dl/__init__.py", line 536, in main
    _real_main()
  File "/usr/bin/youtube-dl/__init__.py", line 520, in _real_main
    retcode = fd.download(all_urls)
  File "/usr/bin/youtube-dl/FileDownloader.py", line 475, in download
    videos = ie.extract(url)
  File "/usr/bin/youtube-dl/InfoExtractors.py", line 80, in extract
    return self._real_extract(url)
  File "/usr/bin/youtube-dl/InfoExtractors.py", line 2541, in _real_extract
    mediaURL = mediaURL % (video_id, stream_token)
UnboundLocalError: local variable 'video_id' referenced before assignment

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: youtube-dl 2012.09.27+dfsg1-1
ProcVersionSignature: Ubuntu 3.8.0-0.4-generic 3.8.0-rc3
Uname: Linux 3.8.0-0-generic x86_64
ApportVersion: 2.8-0ubuntu2
Architecture: amd64
CheckboxSubmission: 2f383a1679e8525d7196eb2518a1921f
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
CrashCounter: 1
Date: Fri Jan 18 12:34:09 2013
ExecutablePath: /usr/bin/youtube-dl
InstallationDate: Installed on 2011-08-19 (518 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110817)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: python /usr/bin/youtube-dl -t https://soundcloud.com/isaacmaya/tc-tap-ho-isaac-maya-rmx
PythonArgs: ['/usr/bin/youtube-dl', '-t', 'https://soundcloud.com/isaacmaya/tc-tap-ho-isaac-maya-rmx']
SourcePackage: youtube-dl
Title: youtube-dl crashed with UnboundLocalError in _real_extract(): local variable 'video_id' referenced before assignment
UpgradeStatus: Upgraded to raring on 2013-01-17 (1 days ago)
UserGroups: adm admin audio cdrom dialout lpadmin plugdev sambashare utah

Revision history for this message
Daniel Holbach (dholbach) wrote :
tags: added: upgrade-software-version
tags: removed: need-duplicate-check
Changed in youtube-dl (Ubuntu):
importance: Undecided → Medium
information type: Private → Public
Revision history for this message
Bryce Harrington (bryce) wrote :

Reproduced the bug on current precise.

Guessing you've moved off oneiric and so don't need the fix there.

description: updated
Changed in youtube-dl (Ubuntu Precise):
importance: Undecided → High
status: New → Triaged
Changed in youtube-dl (Ubuntu):
status: New → Triaged
importance: Medium → High
Revision history for this message
Daniel Holbach (dholbach) wrote :

Hum, this was on raring. I upgraded from oneiric all the way to raring, but I'm not sure that's relevant in the bug here.

Changed in youtube-dl (Debian):
status: Unknown → New
Revision history for this message
Benjamin Kerensa (bkerensa) wrote :

I'm bugging Debian maintainer to see if they can sync the fixed version to experimental so we can merge.

Changed in youtube-dl (Debian):
status: New → Fix Released
Revision history for this message
Jackson Doak (noskcaj) wrote :

Shouldn't this be marked as "Fix released" since saucy has version 2013.07.10-1

Revision history for this message
Jackson Doak (noskcaj) wrote :

The bug has a workaround too. run "sudo youtube-dl -U" then restart youtube-dl

Jackson Doak (noskcaj)
Changed in youtube-dl (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

The Precise Pangolin has reached end of life, so this bug will not be fixed for that release

Changed in youtube-dl (Ubuntu Precise):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.