Describe the bug
Failed to send animated stickers, ETM prompt Error('ffprobe error (see stderr output for detail)').
Checking the log found more than one error, and it is quite confused why I installed lottie 0.6.10 with pip but got an error ImportError: cannot import name 'export_png' from 'lottie.exporters.cairo' (see below)
LOG
Some redundant message content has been omitted.
ehforwarderbot[24910]: 2021-11-03 11:46:33,101 [ERROR]: root (utils.convert_tgs_to_gif; utils.py:210)
ehforwarderbot[24910]: Error occurred while converting TGS to GIF.
ehforwarderbot[24910]: Traceback (most recent call last):
ehforwarderbot[24910]: File "/home/vlc/.local/lib/python3.9/site-packages/efb_telegram_master/utils.py", line 207, in convert_tgs_to_gif
ehforwarderbot[24910]: export_gif(animation, gif_file, skip_frames=5, dpi=48)
ehforwarderbot[24910]: File "/home/vlc/.local/lib/python3.9/site-packages/efb_telegram_master/utils.py", line 171, in export_gif
ehforwarderbot[24910]: from lottie.exporters.cairo import export_png
ehforwarderbot[24910]: ImportError: cannot import name 'export_png' from 'lottie.exporters.cairo' (/home/vlc/.local/lib/python3.9/site-packages/lottie/exporters/cairo.py)
ehforwarderbot[24910]: 2021-11-03 11:46:34,375 [ERROR]: plugins.patch.PatchMiddleware (__init__.process_telegram_message; __init__.py:1268)
ehforwarderbot[24910]: Message is not sent. (update: {'message': {OMITTED}, 'update_id': OMITTED}, exception: ffprobe error (see stderr output for detail))
ehforwarderbot[24910]: Traceback (most recent call last):
ehforwarderbot[24910]: File "/home/vlc/.local/lib/python3.9/site-packages/efb_patch_middleware/__init__.py", line 1251, in process_telegram_message
ehforwarderbot[24910]: slave_msg = coordinator.send_message(m)
ehforwarderbot[24910]: File "/home/vlc/.local/lib/python3.9/site-packages/ehforwarderbot/coordinator.py", line 113, in send_message
ehforwarderbot[24910]: return slaves[msg.deliver_to.channel_id].send_message(msg)
ehforwarderbot[24910]: File "/home/vlc/.local/lib/python3.9/site-packages/efb_patch_middleware/__init__.py", line 1524, in send_message
ehforwarderbot[24910]: metadata = ffmpeg.probe(file.name)
ehforwarderbot[24910]: File "/home/vlc/.local/lib/python3.9/site-packages/ffmpeg/_probe.py", line 23, in probe
ehforwarderbot[24910]: raise Error('ffprobe', out, err)
ehforwarderbot[24910]: ffmpeg._run.Error: ffprobe error (see stderr output for detail)
Describe the bug
Failed to send animated stickers, ETM prompt
Error('ffprobe error (see stderr output for detail)')
. Checking the log found more than one error, and it is quite confused why I installed lottie 0.6.10 with pip but got an errorImportError: cannot import name 'export_png' from 'lottie.exporters.cairo'
(see below)LOG Some redundant message content has been omitted.
Version information:
Middleware: