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

getpass import screwy #283

Closed
storkk opened this issue Jan 28, 2012 · 1 comment
Closed

getpass import screwy #283

storkk opened this issue Jan 28, 2012 · 1 comment

Comments

@storkk
Copy link

@storkk storkk commented Jan 28, 2012

Using version 2012.01.08b, with a command line such as:

youtube-dl.py -t http://www.youtube.com/watch?v=video_location_here -u my_user_name

results in:

Traceback (most recent call last):
File "/usr/local/bin/youtube-dl.py", line 4625, in
main()
File "/usr/local/bin/youtube-dl.py", line 4616, in main
_real_main()
File "/usr/local/bin/youtube-dl.py", line 4508, in _real_main
opts.password = getpass.getpass(u'Type account password and press return:')
NameError: global name 'getpass' is not defined

I know it's probably not the most pythonic solution, but adding "import getpass" to the very top, rather than at the deferred import location fixes this.

It should be irrelevant, but i'm on 64 bit linux.

@phihag
Copy link
Contributor

@phihag phihag commented Feb 26, 2012

Ouch, that's a stupid bug. Fixed.

@phihag phihag closed this in c9ed14e Feb 26, 2012
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.