m1guelpf/auto-subtitle

No module named 'ffmpeg'

Aenigma opened this issue · 7 comments

I kept getting an error when running auto-subtitle:

ModuleNotFoundError: No module named 'ffmpeg'

This seems to be caused by the fact that openai-whisper dropped the upstream dependency of ffmpeg-python in this change openai/whisper@8035e9e. Since this module depends on it, it should add the dependency to the requirements.txt and setup.py.

For now, you can do a workaround by running:

pip install ffmpeg-python

pip install ffmpeg-python

that will fix your issue.

Thanks. I outlined that workaround in my post. 😅

lol i didn't read the last line before posting :P

Same problem here on Mac:

user@users-MacBook-Pro ~ % brew install ffmpeg     
Warning: ffmpeg 6.0_2 is already installed and up-to-date.
To reinstall 6.0_2, run:
  brew reinstall ffmpeg
  
user@users-MacBook-Pro ~ % auto_subtitle --help
Traceback (most recent call last):
  File "/opt/homebrew/bin/auto_subtitle", line 5, in <module>
    from auto_subtitle.cli import main
  File "/opt/homebrew/lib/python3.11/site-packages/auto_subtitle/cli.py", line 2, in <module>
    import ffmpeg
ModuleNotFoundError: No module named 'ffmpeg'