No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.

Expected Behavior

not getting an error

Actual Behavior

getting the error in the title

Steps to Reproduce the Problem

be me and try to run from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip

ffmpeg is installed with apt and i can confirm its location in /usr/bin/. additionally ive also executed pip install imageio-ffmpeg in the python virtual environment and it is installed. ive logged platform.python_version() to confirm i was in the 3.8.0 venv.
executing a plain interpreter terminal in the venv and trying to import it manually does not resault in an error. only during execution. the execution is in a flask application deployed with gunicorn and nginx.

Specifications

  • Python Version: 3.8.0
  • Moviepy Version: the newest
  • Platform Name: Ubunto server
  • Platform Version: 18.04

Read more here: Source link