Open ghost opened 6 years ago
I managed to get rid of that error by running
` brew install libav
brew install ffmpeg `
Now when the example runs I don't get any errors but the video is 15seconds of nothing but white screen
I solve this problem by setting blit=False in plot_animation() function in ipynbtools.py file.
Replicated this issue in Ubuntu 20.04 (WSL), also matplotlib complains about how avconv will be deprecated.
I also encountered the same problem when using an example from qutip-notebooks. I think the reason for this problem is that libav, which contains anconv, has been replaced by ffmpeg. Even after libav is installed, the problem cannot be solved. So I suggest installing ffmpeg through Anaconda:
conda install -c conda-forge ffmpeg
and then change the parameter of plot_animation() function in ipynbtools.py file:
writer="anconv" -> writer="ffmpeg"
Then I solved this problem.
By the way, the reason you got nothing but white screen maybe you activated %matplotlib inline unintentionally, it's on the first line of the qutip-notebook, which also bothered me for a long time. You can change it to
%matplotlib notebook
or
%matplotlib tk
.
OS: MacOS High sierra Python: Python 3.6.5 :: Anaconda, Inc.
I installed qutip using conda
When I run python and the following
I get
Then I launch the jupyter notebook and run 'bloch-sphere-animation.ipynb'
plot_animation(plot_setup, plot_result, result)
I get this