MoneyPrinterTurbo icon indicating copy to clipboard operation
MoneyPrinterTurbo copied to clipboard

OSError: MoviePy Error: creation of None failed because of the following error

Open lzb-dream opened this issue 9 months ago • 1 comments

OSError: MoviePy Error: creation of None failed because of the following error: [WinError 2] 系统找不到指定的文件。. .This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary. Check the documentation. Traceback: File "C:\myporject\AI\MoneyPrinterTurbo\venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 584, in _run_script exec(code, module.dict) File "C:\myporject\AI\MoneyPrinterTurbo\webui\Main.py", line 529, in result = tm.start(task_id=task_id, params=params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\myporject\AI\MoneyPrinterTurbo\app\services\task.py", line 159, in start video.generate_video(video_path=combined_video_path, File "C:\myporject\AI\MoneyPrinterTurbo\app\services\video.py", line 241, in generate_video sub = SubtitlesClip(subtitles=subtitle_path, encoding='utf-8') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\myporject\AI\MoneyPrinterTurbo\venv\Lib\site-packages\moviepy\video\tools\subtitles.py", line 104, in init hasmask = bool(self.make_textclip("T").mask) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\myporject\AI\MoneyPrinterTurbo\venv\Lib\site-packages\moviepy\video\tools\subtitles.py", line 58, in make_textclip return TextClip( ^^^^^^^^^ File "", line 2, in init File "C:\myporject\AI\MoneyPrinterTurbo\venv\Lib\site-packages\moviepy\decorators.py", line 89, in wrapper return f(*new_a, **new_kw) ^^^^^^^^^^^^^^^^^^^ File "C:\myporject\AI\MoneyPrinterTurbo\venv\Lib\site-packages\moviepy\video\VideoClip.py", line 1272, in init raise IOError(error)

这个问题怎么办

lzb-dream avatar Apr 23 '24 17:04 lzb-dream

❓ImageMagick is not installed on your computer https://github.com/harry0703/MoneyPrinterTurbo/issues/33

按照 示例配置 里面提供的 下载地址 ,安装 https://imagemagick.org/archive/binaries/ImageMagick-7.1.1-29-Q16-x64-static.exe, 用静态库 不要安装在中文路径里面,避免出现一些无法预料的问题 https://github.com/harry0703/MoneyPrinterTurbo/issues/54#issuecomment-2017842022

如果是linux系统,可以手动安装,参考 https://cn.linux-console.net/?p=16978

KevinZhang19870314 avatar Apr 24 '24 01:04 KevinZhang19870314

https://imagemagick.org/archive/binaries/ImageMagick-7.1.1-31-Q16-x64-static.exe

harry0703 avatar Apr 24 '24 05:04 harry0703