Requested MovieWriter (ffmpeg) not available

Do you want to create videos / animations with ffmpeg from your jupyter notebook? you need ffmpeg-python (conda) which requires ffmpeg software on Mistral (module)

Requirements

  • conda env with ffmpeg-python and ipykernel

  • conda env available in jupyter notebook (see doc)

  • PATH of ffmpeg software

What do you need to change/add

if you installed ffmpeg-python in your conda env:

conda install -c conda-forge ffmpeg

you only need to modify the kernel.json to add the PATH of the ffmpeg like this:

{
 "argv": [
  "/path/to/your/conda/env/bin/python",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "display_name": "my kernel",
 "language": "python",
 "env": {
    "PATH":
       "/sw/rhel6-x64/graphics/ffmpeg-3.4.1-gcc64/bin:/path/to/your/conda_env/bin:$PATH"
       }
}

Note

This only concerns missing ffmpeg, some additional packages might be required depending on your code!

Similar issue that required PATH modification can be found here

Troubleshootings

  • libmkl_intel_thread.so.1: undefined symbol: omp_get_num_procs can be solved by:

    conda install –channel conda-forge llvm-openmp

  • ImportError: failed to import graphviz; ... solved by:

    conda install –channel conda-forge python-graphviz