luckydonald / pytgbot

python module to access the telegram bot api.
MIT License
66 stars 16 forks source link

Error when running #7

Closed absenthecon closed 5 years ago

absenthecon commented 6 years ago

sudo python pager_telegram_forwarder.py --freq="148.5875M" --prot="POCSAG512 POCSAG1200" --min="1" --tID">REDACTED<" --rID=">REDACTED<"

Traceback (most recent call last): File "pager_telegram_forwarder.py", line 7, in from pytgbot import Bot File "build/bdist.linux-armv7l/egg/pytgbot/init.py", line 3, in File "build/bdist.linux-armv7l/egg/pytgbot/bot.py", line 12, in File "/usr/local/lib/python2.7/dist-packages/luckydonald_utils-0.57-py2.7.egg/luckydonaldUtils/exceptions.py", line 11 def assert_type_or_raise(value, expected_type_clazz_or_tuple, *more_clazzes, exception_clazz=TypeError, ^ SyntaxError: invalid syntax

luckydonald commented 6 years ago

Pytgbot is developed for mainly python 3. This is probably an incompatibility with python 2.7. I'll look into this.

Sorry, that issue somehow skipped my inbox.

luckydonald commented 6 years ago

The software used is https://github.com/stefanmoosbrugger/pager_telegram_forwarder. Maybe there is a better place for reporting that?

In any way, I need additional information: