Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "No ffmpeg exe could be found" even though I have ffpmeg installed #9

Closed
zeke opened this issue Nov 11, 2023 · 2 comments
Closed

Comments

@zeke
Copy link

zeke commented Nov 11, 2023

$ python tune.py "https://www.youtube.com/watch?v=UcmFu_Mcf_Q"
Traceback (most recent call last):
  File "/Users/z/Desktop/youtune/tune.py", line 2, in <module>
    from moviepy.editor import AudioFileClip
  File "/Users/z/.pyenv/versions/python-3.10.4/lib/python3.10/site-packages/moviepy/editor.py", line 36, in <module>
    from .video.io.VideoFileClip import VideoFileClip
  File "/Users/z/.pyenv/versions/python-3.10.4/lib/python3.10/site-packages/moviepy/video/io/VideoFileClip.py", line 3, in <module>
    from moviepy.audio.io.AudioFileClip import AudioFileClip
  File "/Users/z/.pyenv/versions/python-3.10.4/lib/python3.10/site-packages/moviepy/audio/io/AudioFileClip.py", line 3, in <module>
    from moviepy.audio.AudioClip import AudioClip
  File "/Users/z/.pyenv/versions/python-3.10.4/lib/python3.10/site-packages/moviepy/audio/AudioClip.py", line 7, in <module>
    from moviepy.audio.io.ffmpeg_audiowriter import ffmpeg_audiowrite
  File "/Users/z/.pyenv/versions/python-3.10.4/lib/python3.10/site-packages/moviepy/audio/io/ffmpeg_audiowriter.py", line 7, in <module>
    from moviepy.config import get_setting
  File "/Users/z/.pyenv/versions/python-3.10.4/lib/python3.10/site-packages/moviepy/config.py", line 36, in <module>
    FFMPEG_BINARY = get_exe()
  File "/Users/z/.pyenv/versions/python-3.10.4/lib/python3.10/site-packages/imageio/plugins/ffmpeg.py", line 173, in get_exe
    return imageio_ffmpeg.get_ffmpeg_exe()
  File "/Users/z/.pyenv/versions/python-3.10.4/lib/python3.10/site-packages/imageio_ffmpeg/_utils.py", line 34, in get_ffmpeg_exe
    raise RuntimeError(
RuntimeError: No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.

~/Desktop/youtune main
$ which ffmpeg
/opt/homebrew/bin/ffmpeg

cc @cbh123

@cbh123
Copy link
Owner

cbh123 commented Nov 11, 2023

Thanks @zeke I will investigate. Just confirming, this is within the virtual env and after installing dependencies?

python3 -m pip install virtualenv
python3 -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

@zeke
Copy link
Author

zeke commented Nov 14, 2023

Oh forgot to follow up it was me. My FFMPEG installation was hosed. Brew uninstalled, reinstalled, and all is well. 😅

@zeke zeke closed this as completed Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants