-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Write_Gif returns errno 2 #62
Comments
Ugh, I tried manipulating a number of different things, but of course resolved it AFTER posting. clip.write_gif() needed a valid location to write to. My apologies. |
Cool. A few tips:
|
Thanks write_gif2 is MUCH better, also saves me having to clear the directory on a failure... Do you have some sample code on using ipython notebooks? I just grabed ipython but I'm not familiar. |
Hi, thanks for the great package ! Traceback (most recent call last):
File "/Users/nicolas/Projects/vectoranim/test01.py", line 15, in <module>
clip.write_gif("circle.gif",fps=15, opt="OptimizePlus", fuzz=10)
File "<string>", line 2, in write_gif
File "/Users/nicolas/Virtualenvs/python3/lib/python3.4/site-packages/moviepy-0.2.1.8.12-py3.4.egg/moviepy/decorators.py", line 49, in requires_duration
return f(clip, *a, **k)
File "/Users/nicolas/Virtualenvs/python3/lib/python3.4/site-packages/moviepy-0.2.1.8.12-py3.4.egg/moviepy/video/VideoClip.py", line 435, in write_gif
dispose= dispose, colors=colors)
File "<string>", line 2, in write_gif
File "/Users/nicolas/Virtualenvs/python3/lib/python3.4/site-packages/moviepy-0.2.1.8.12-py3.4.egg/moviepy/decorators.py", line 49, in requires_duration
return f(clip, *a, **k)
File "/Users/nicolas/Virtualenvs/python3/lib/python3.4/site-packages/moviepy-0.2.1.8.12-py3.4.egg/moviepy/video/io/gif_writers.py", line 186, in write_gif
stdout=sp.PIPE)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 858, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 1456, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'convert' And being a bit of a newbie in Python (and in coding, really), I'm not sure what @selfcommit means by "clip.write_gif() needed a valid location to write to". A pointer in the right direction would me much welcome !... |
Hi @nico7et8 , I don't think it is the same as @selfcommit, in your case MoviePy cannot find the program convert, which certainly means that you didn't install ImageMagick on your computer. Tell me if it works once you have installed ImageMagick. |
Thanks for such a quick reply ! |
Hi again @Zulko , sorry for the disturbance and thank you for your time.
Traceback (most recent call last):
File "/Users/nicolas/Projects/vectoranim/test01.py", line 15, in <module>
clip.write_gif("circle.gif",fps=15, opt="OptimizePlus", fuzz=10)
File "<string>", line 2, in write_gif
File "/Users/nicolas/Virtualenvs/python3/lib/python3.4/site-packages/moviepy-0.2.1.8.12-py3.4.egg/moviepy/decorators.py", line 49, in requires_duration
return f(clip, *a, **k)
File "/Users/nicolas/Virtualenvs/python3/lib/python3.4/site-packages/moviepy-0.2.1.8.12-py3.4.egg/moviepy/video/VideoClip.py", line 435, in write_gif
dispose= dispose, colors=colors)
File "<string>", line 2, in write_gif
File "/Users/nicolas/Virtualenvs/python3/lib/python3.4/site-packages/moviepy-0.2.1.8.12-py3.4.egg/moviepy/decorators.py", line 49, in requires_duration
return f(clip, *a, **k)
File "/Users/nicolas/Virtualenvs/python3/lib/python3.4/site-packages/moviepy-0.2.1.8.12-py3.4.egg/moviepy/video/io/gif_writers.py", line 186, in write_gif
stdout=sp.PIPE)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 858, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 1456, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'convert' If you have an other minute to spare, any idea or direction would be welcome. Thanks again. |
Scratch that, it works ! |
Yay ! So what made it work ? |
I'm looking into it... |
Calling write_gif
returns the following error:
The text was updated successfully, but these errors were encountered: