1

什么是问题?

我在 Pythonanywhere.com 上运行

此错误可能是由于您的计算机上未安装 ImageMagick,或者(对于 Windows 用户)您没有在文件 conf.py 中指定 ImageMagick 二进制文件的路径,或者您指定的路径不正确

[MoviePy] This command returned an error !Traceback (most recent call last):,

  File "deneme.py", line 6, in <module>

    txt_clip = TextClip("My Holidays 2013",fontsize=70,color='white')

  File "/home/pirali/.local/lib/python2.7/site-packages/moviepy/video/VideoClip.py", line 1145, in __init__

    raise IOError(error)

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

Youtube Foto Galeri: not authorized `@/tmp/tmpxjn5vu.txt' @ error/property.c/InterpretImageProperties/2959.
Youtube Foto Galeri: no images defined `PNG32:/tmp/tmp3lNxp8.png' @ error/convert.c/ConvertImageCommand/3044...

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 in file conf.py, or.that the path you specified is incorrect
4

1 回答 1

2

PythonAnywhere 管理员在这里。对于可能遇到此问题的其他任何人,这是由于几周前发现的 ImageMagick 安全漏洞:

https://www.imagemagick.org/discourse-server/viewtopic.php?t=29588

因此,imagemagick 中的某些功能被禁用,等待安全补丁。

于 2016-10-11T14:35:33.197 回答