awalon / MailToTelegramForwarder

MailToTelegramForwarder is a Python based daemon that will fetch mails from a remote IMAP server and forward them via Telegram API.
GNU General Public License v3.0
40 stars 18 forks source link

Done by manual provided, but can not start it #10

Open SFinctor opened 2 years ago

SFinctor commented 2 years ago

-- Logs begin at Fri 2021-01-29 17:21:45 UTC, end at Thu 2022-09-15 22:57:20 UTC. -- Sep 15 22:38:41 bruny systemd[1]: Started Mail to Telegram Forwarder - Service for: 'mailToTelegramForwarder'. Sep 15 22:38:41 bruny mailToTelegramForwarder[2961]: Traceback (most recent call last): Sep 15 22:38:41 bruny mailToTelegramForwarder[2961]: File "/usr/local/bin/mailToTelegramForwarder", line 278, in Sep 15 22:38:41 bruny mailToTelegramForwarder[2961]: class MailBody: Sep 15 22:38:41 bruny mailToTelegramForwarder[2961]: File "/usr/local/bin/mailToTelegramForwarder", line 281, in MailBody Sep 15 22:38:41 bruny mailToTelegramForwarder[2961]: images: typing.Optional[dict[str, MailAttachment]] = None Sep 15 22:38:41 bruny mailToTelegramForwarder[2961]: TypeError: 'type' object is not subscriptable Sep 15 22:38:41 bruny systemd[1]: mail-to-telegram-forwarder@mailToTelegramForwarder.service: Main process exited, code=exited, status=1/FAILURE Sep 15 22:38:41 bruny systemd[1]: mail-to-telegram-forwarder@mailToTelegramForwarder.service: Failed with result 'exit-code'. Sep 15 22:38:42 bruny systemd[1]: mail-to-telegram-forwarder@mailToTelegramForwarder.service: Scheduled restart job, restart counter is at 1. Sep 15 22:38:42 bruny systemd[1]: Stopped Mail to Telegram Forwarder - Service for: 'mailToTelegramForwarder'. Sep 15 22:38:42 bruny systemd[1]: Started Mail to Telegram Forwarder - Service for: 'mailToTelegramForwarder'. Sep 15 22:38:42 bruny mailToTelegramForwarder[2987]: Traceback (most recent call last): Sep 15 22:38:42 bruny mailToTelegramForwarder[2987]: File "/usr/local/bin/mailToTelegramForwarder", line 278, in Sep 15 22:38:42 bruny mailToTelegramForwarder[2987]: class MailBody: Sep 15 22:38:42 bruny mailToTelegramForwarder[2987]: File "/usr/local/bin/mailToTelegramForwarder", line 281, in MailBody Sep 15 22:38:42 bruny mailToTelegramForwarder[2987]: images: typing.Optional[dict[str, MailAttachment]] = None Sep 15 22:38:42 bruny mailToTelegramForwarder[2987]: TypeError: 'type' object is not subscriptable Sep 15 22:38:42 bruny systemd[1]: mail-to-telegram-forwarder@mailToTelegramForwarder.service: Main process exited, code=exited, status=1/FAILURE Sep 15 22:38:42 bruny systemd[1]: mail-to-telegram-forwarder@mailToTelegramForwarder.service: Failed with result 'exit-code'. Sep 15 22:38:42 bruny systemd[1]: mail-to-telegram-forwarder@mailToTelegramForwarder.service: Scheduled restart job, restart counter is at 2. Sep 15 22:38:42 bruny systemd[1]: Stopped Mail to Telegram Forwarder - Service for: 'mailToTelegramForwarder'. Sep 15 22:38:42 bruny systemd[1]: Started Mail to Telegram Forwarder - Service for: 'mailToTelegramForwarder'. Sep 15 22:38:42 bruny mailToTelegramForwarder[2990]: Traceback (most recent call last): Sep 15 22:38:42 bruny mailToTelegramForwarder[2990]: File "/usr/local/bin/mailToTelegramForwarder", line 278, in Sep 15 22:38:42 bruny mailToTelegramForwarder[2990]: class MailBody: Sep 15 22:38:42 bruny mailToTelegramForwarder[2990]: File "/usr/local/bin/mailToTelegramForwarder", line 281, in MailBody Sep 15 22:38:42 bruny mailToTelegramForwarder[2990]: images: typing.Optional[dict[str, MailAttachment]] = None Sep 15 22:38:42 bruny mailToTelegramForwarder[2990]: TypeError: 'type' object is not subscriptable Sep 15 22:38:42 bruny systemd[1]: mail-to-telegram-forwarder@mailToTelegramForwarder.service: Main process exited, code=exited, status=1/FAILURE Sep 15 22:38:42 bruny systemd[1]: mail-to-telegram-forwarder@mailToTelegramForwarder.service: Failed with result 'exit-code'. Sep 15 22:38:43 bruny systemd[1]: mail-to-telegram-forwarder@mailToTelegramForwarder.service: Scheduled restart job, restart counter is at 3. Sep 15 22:38:43 bruny systemd[1]: Stopped Mail to Telegram Forwarder - Service for: 'mailToTelegramForwarder'. Sep 15 22:38:43 bruny systemd[1]: Started Mail to Telegram Forwarder - Service for: 'mailToTelegramForwarder'. Sep 15 22:38:43 bruny mailToTelegramForwarder[2993]: Traceback (most recent call last):

awalon commented 1 year ago

Hello, this could be caused by an outdated Python3 version (similar to issue #14), please check that you used at least version 3.9.2. Greets