Under Linux, I\'ve been checking out matplotlib\'s animation class, and it seems to work except that I cant initialise the movie writer to write out the movie.
I know this question is about Linux, but in case someone stumbles on this problem on Mac like I did here is the solution for that. I had the exact same problem on Mac because ffmpeg is not installed by default apparently, and so I could solve it using: