Closed
Description
Running any kind of animation example with ani.save leads to following stacktrace (windows 8.1, mpl 1.4.2, python 2.7 64 bit):
ani = animation.FuncAnimation(fig, animate, np.arange(1, len(y)),
interval=25, blit=True, init_func=init)
ani.save('double_pendulum.mp4', fps=15)
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-8-34073d277633> in <module>()
85 interval=25, blit=True, init_func=init)
86
---> 87 ani.save('double_pendulum.mp4', fps=15)
88 #plt.show()
C:\Anaconda\lib\site-packages\matplotlib\animation.pyc in save(self, filename, writer, fps, dpi, codec, bitrate, extra_args, metadata, extra_anim, savefig_kwargs)
750 #TODO: Need to see if turning off blit is really necessary
751 anim._draw_next_frame(d, blit=False)
--> 752 writer.grab_frame(**savefig_kwargs)
753
754 # Reconnect signal for first draw if necessary
C:\Anaconda\lib\contextlib.pyc in __exit__(self, type, value, traceback)
22 if type is None:
23 try:
---> 24 self.gen.next()
25 except StopIteration:
26 return
C:\Anaconda\lib\site-packages\matplotlib\animation.pyc in saving(self, *args)
175 self.setup(*args)
176 yield
--> 177 self.finish()
178
179 def _run(self):
C:\Anaconda\lib\site-packages\matplotlib\animation.pyc in finish(self)
356 # are available to be assembled.
357 self._run()
--> 358 MovieWriter.finish(self) # Will call clean-up
359
360 # Check error code for creating file here, since we just run
C:\Anaconda\lib\site-packages\matplotlib\animation.pyc in finish(self)
194 def finish(self):
195 'Finish any processing for writing the movie.'
--> 196 self.cleanup()
197
198 def grab_frame(self, **savefig_kwargs):
C:\Anaconda\lib\site-packages\matplotlib\animation.pyc in cleanup(self)
366
367 def cleanup(self):
--> 368 MovieWriter.cleanup(self)
369
370 #Delete temporary files
C:\Anaconda\lib\site-packages\matplotlib\animation.pyc in cleanup(self)
230 'Command stdout:\n%s' % out, level='debug')
231 verbose.report('MovieWriter -- '
--> 232 'Command stderr:\n%s' % err, level='debug')
233
234 @classmethod
UnicodeDecodeError: 'ascii' codec can't decode byte 0x84 in position 5: ordinal not in range(128)