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

Hamac example gives subprocess error #152

Closed
Tjorriemorrie opened this issue Apr 9, 2015 · 3 comments
Closed

Hamac example gives subprocess error #152

Tjorriemorrie opened this issue Apr 9, 2015 · 3 comments

Comments

@Tjorriemorrie
Copy link

Using the code from the example on the blog (python 2.7)

[MoviePy] Running:

youtube-dl NpxD9TZIlv8 -o hamac.mp4Traceback (most recent call last):
File "hamac.py", line 5, in
mpy.download_webfile("NpxD9TZIlv8", "hamac.mp4")
File "/Users/jaco/anaconda/lib/python2.7/site-packages/moviepy/video/io/downloader.py", line 27, in download_webfile
subprocess_call(['youtube-dl', url, '-o', filename])
File "/Users/jaco/anaconda/lib/python2.7/site-packages/moviepy/tools.py", line 41, in subprocess_call
proc = sp.Popen(cmd, **popen_params)
File "/Users/jaco/anaconda/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/Users/jaco/anaconda/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

@Zulko
Copy link
Owner

Zulko commented Apr 9, 2015

You must install youtube-dl to be able to use download_webfile()

@Tjorriemorrie
Copy link
Author

@Zulko thanks! Isn't that module imported in moviepy? Why is there no missing module error thrown?

@Zulko
Copy link
Owner

Zulko commented Apr 9, 2015

For the moment I don't use the module, I use the terminal interface of youtube-dl, which is why what you see is an OSError from the terminal. In the current version on Github, that error is caught and you get a nicer message saying that you must install youtube-dl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants