Open mkrasselt1 opened 2 years ago
i tempoary solved it by commenting out "from PIL import Image" from init.py and it made it work again, but without gif support
2022-03-30 10:10:21,840 - octoprint.plugins.telegram.listener - INFO - Got a command: '/gif' with parameter: '' in chat 496195168
2022-03-30 10:10:21,846 - octoprint.plugins.telegram.TCMD - INFO - Will try to create a gif
2022-03-30 10:10:22,161 - octoprint.plugins.telegram - ERROR - Caught an exception trying clean previous images : [Errno 2] No such file or directory: '/home/pi/.octoprint/data/telegram/tmpgif/gif.mp4'
2022-03-30 10:10:22,231 - octoprint.plugins.telegram - INFO - test if nice exist
2022-03-30 10:10:22,232 - octoprint.plugins.telegram - INFO - test exist program 'nice', '--version'
2022-03-30 10:10:22,267 - octoprint.plugins.telegram - INFO - ret = 0
2022-03-30 10:10:22,269 - octoprint.plugins.telegram - INFO - test if cpulimit exist
2022-03-30 10:10:22,269 - octoprint.plugins.telegram - INFO - test exist program 'cpulimit', '--help'
2022-03-30 10:10:22,313 - octoprint.plugins.telegram - INFO - ret = 1
2022-03-30 10:10:22,314 - octoprint.plugins.telegram - INFO - test if ffmpeg exist
2022-03-30 10:10:22,315 - octoprint.plugins.telegram - INFO - test exist program 'ffmpeg', '-h'
2022-03-30 10:10:22,431 - octoprint.plugins.telegram - INFO - ret = 127
2022-03-30 10:10:22,770 - octoprint.plugins.telegram - INFO - sec=5
2022-03-30 10:10:22,774 - octoprint.plugins.telegram - INFO - timeSec=11:11:05
2022-03-30 10:10:22,776 - octoprint.plugins.telegram - INFO - limit_cpu=130.0 | used_cpu=2.0 | because nb_cpu=4
2022-03-30 10:10:22,781 - octoprint.plugins.telegram - INFO - will now create the video 'nice', '-n', '20', 'cpulimit', '-l', '130.0', '-f', '-z', '--', 'ffmpeg', '-y', '-threads', '2.0', '-i', 'http://localhost/webcam/?action=stream', '-t', '11:11:05', '-pix_fmt', 'yuv420p', '/home/pi/.octoprint/data/telegram/tmpgif/gif.mp4'
2022-03-30 10:10:23,904 - octoprint.plugins.telegram - INFO - Finish the video
Also i have seen this error, not shure if related or not:
2022-03-30 10:07:12,787 - octoprint.plugins.telegram - ERROR - Caught an exception in loop chatId for key: 496XXXXXX => 'Home'
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_telegram/__init__.py", line 1641, in send_msg
self.chats[key]["notifications"][kwargs["event"]]
KeyError: 'Home'
it seams like ffmpeg has a problem - the same that causes im port image to fail, i will try to reinstall my octoprint on a clean sd card, lets check if that changes anything
I Noticed the plugin beeing gone on my machine some time ago, and now started to investigate. Turns out its requiring as symbol from a image librarry, that no longer exists?