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

Unable to save the replay to hub. Error: must be real number, not NoneType #29

Closed
zoctipus opened this issue Jun 15, 2023 · 2 comments
Closed

Comments

@zoctipus
Copy link

zoctipus commented Jun 15, 2023

image

@zoctipus
Copy link
Author

zoctipus commented Jun 15, 2023

  1. run pip install moviepy, make sure the version is 1.0.3
  2. if the new error says ffmpeg not found, run sudo apt install ffmpeg, make sure moviepy know where to fint ffmpeg

@flerovious
Copy link

In case you're using brew on an m-series mac and having trouble fixing, here's what I did:

  1. Install ffmpeg version 4 with brew install ffmpeg@4 as suggested in Not compatible with M1 chip Zulko/moviepy#1867 (comment)
  2. Check that ffmpeg 4.4.4 (latest version for ffmpeg 4) is installed. Mine was installed at /opt/homebrew/Cellar/ffmpeg@4/4.4.4/bin/ffmpeg
  3. Create or add the following environment variable to your .env file, which will be read by moviepy.
FFMPEG_BINARY="/opt/homebrew/Cellar/ffmpeg@4/4.4.4/bin/ffmpeg"
  1. Check that moviepy loads ffmpeg successfully with the following python script
from moviepy.config import *

if try_cmd([FFMPEG_BINARY])[0]:
    print( "MoviePy : ffmpeg successfully found." )
else:
    print( "MoviePy : can't find or access ffmpeg." )

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