python-reddit-youtube-bot icon indicating copy to clipboard operation
python-reddit-youtube-bot copied to clipboard

Can please help me to fix this : I run : Python app.py -l 59

Open nPokemon opened this issue 2 years ago • 3 comments

90.............102 Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\moviepy\video\VideoClip.py", line 1262, in init subprocess_call(cmd, logger=None) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\moviepy\tools.py", line 43, in subprocess_call raise IOError(err.decode("utf8")) OSError: magick.exe: label expected `@C:\Users\ADMINI~1\AppData\Local\Temp\tmplafqaafe.txt' @ error/annotate.c/GetMultilineTypeMetrics/799.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Administrator\Desktop\Reddit2YTB\python-reddit-youtube-bot\app.py", line 370, in process_submissions(submissions) File "C:\Users\Administrator\Desktop\Reddit2YTB\python-reddit-youtube-bot\app.py", line 65, in process_submissions process_submission(submission) File "C:\Users\Administrator\Desktop\Reddit2YTB\python-reddit-youtube-bot\app.py", line 103, in process_submission thumbnails: List[Path] = thumbnail.generate( ^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\Desktop\Reddit2YTB\python-reddit-youtube-bot\thumbnail\thumbnail.py", line 180, in generate thumbnail = create_thumbnail( ^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\Desktop\Reddit2YTB\python-reddit-youtube-bot\thumbnail\thumbnail.py", line 333, in create_thumbnail txt_clip: TextClip = TextClip( ^^^^^^^^^ File "", line 2, in init File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\moviepy\decorators.py", line 89, in wrapper return f(*new_a, **new_kw) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\moviepy\video\VideoClip.py", line 1272, in init raise IOError(error) OSError: MoviePy Error: creation of None failed because of the following error:

magick.exe: label expected `@C:\Users\ADMINI~1\AppData\Local\Temp\tmplafqaafe.txt' @ error/annotate.c/GetMultilineTypeMetrics/799. .

.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.

nPokemon avatar Aug 06 '23 20:08 nPokemon

Try using an older version of python :

root@5c66bb6bd001:/app# python3 --version
Python 3.10.6

alexlaverty avatar Feb 06 '24 09:02 alexlaverty