sfan5 / pytgbridge

Better than teleirc
13 stars 5 forks source link

"SyntaxError: invalid syntax" during exec #9

Closed charls-a closed 3 years ago

charls-a commented 3 years ago

Telegram@servidor:~/pytgbridge$ ./pytgbridge Traceback (most recent call last): File "./pytgbridge", line 9, in from src.telegram import TelegramClient File "/home/Telegram/pytgbridge/src/telegram.py", line 1, in import telebot File "/home/Telegram/.local/lib/python3.5/site-packages/telebot/init.py", line 459 e.args = e.args + (f'Typed middleware handler "{typed_middleware_handler.qualname}"',) ^ SyntaxError: invalid syntax

sfan5 commented 3 years ago

The error happens inside pyTelegramBotAPI, my code has nothing to do with this. I can tell you why it happens though: Format strings like that are only supported in Python 3.6 so you simply need to upgrade.