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

youtube-dl -U error #578

Closed
arnabbht opened this issue Dec 5, 2012 · 3 comments
Closed

youtube-dl -U error #578

arnabbht opened this issue Dec 5, 2012 · 3 comments

Comments

@arnabbht
Copy link

@arnabbht arnabbht commented Dec 5, 2012

As root, I am getting the following error for youtube-dl -U

Updating to latest version...
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 4645, in
main()
File "/usr/bin/youtube-dl", line 4636, in main
_real_main()
File "/usr/bin/youtube-dl", line 4610, in _real_main
updateSelf(fd, sys.argv[0])
File "/usr/bin/youtube-dl", line 4203, in updateSelf
urlh.close()
UnboundLocalError: local variable 'urlh' referenced before assignment

youtube-dl version 2012.02.27
python version 2.7.1
uname Linux Fedora 15 2.6.43.8-1.fc15.x86_64

@phihag
Copy link
Contributor

@phihag phihag commented Dec 5, 2012

Sorry, I cannot reproduce the error with the distribution youtube-dl 2012.02.27 9c22892 . I presume you're using Fedora's built-in version?

In any case, in the meantime, you can simply run

YOUTUBE_DL=$(which youtube-dl)
wget https://github.com/rg3/youtube-dl/blob/master/youtube-dl -O "$YOUTUBE_DL"
chmod a+x "$YOUTUBE_DL"
@arnabbht
Copy link
Author

@arnabbht arnabbht commented Dec 6, 2012

well, i had the one from yum install, and that gave problem.
the direct download from github is working fine.

@FiloSottile
Copy link
Collaborator

@FiloSottile FiloSottile commented Jan 2, 2013

We reworked that piece of code, and this should not happen anymore!

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.