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

Error when using --batch-file #2471

Closed
ghost opened this issue Feb 26, 2014 · 1 comment
Closed

Error when using --batch-file #2471

ghost opened this issue Feb 26, 2014 · 1 comment

Comments

@ghost
Copy link

@ghost ghost commented Feb 26, 2014

Hello,

I encountered a problem when using the -a or --batch-file option:

$ youtube-dl -t -a batch.txt --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-t', '-a', 'batch.txt', '--verbose']
[debug] Encodings: locale 'UTF-8', fs 'utf-8', out 'UTF-8', pref: 'UTF-8'
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 9, in
load_entry_point('youtube-dl==2014.02.25', 'console_scripts', 'youtube-dl')()
File "/usr/lib/python3.3/site-packages/youtube_dl/init.py", line 804, in main
_real_main(argv)
File "/usr/lib/python3.3/site-packages/youtube_dl/init.py", line 562, in _real_main
batchfd = io.open(opts.batchfile, 'r', encoding='utf-8', errors='ignore')
NameError: global name 'io' is not defined

content of batch.txt:
http://www.youtube.com/watch?v=l2ccxk4SEo4

I also noticed that the error occurs even if I do not specify the file to read from.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 26, 2014

It's fixed on 2014.02.26, I think you have used pip to install youtube-dl, run sudo pip install -U youtube_dl to update.
Thanks for the report, and sorry for the bug.

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