Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
getpass import screwy #283
Comments
|
Ouch, that's a stupid bug. Fixed. |
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.