BoKKeR / RSS-to-Telegram-Bot

RSS to Telegram python script
http://t.me/rss_t_bot
GNU General Public License v3.0
247 stars 105 forks source link

Traceback Error #8

Closed OasisFootbabll closed 3 years ago

OasisFootbabll commented 3 years ago

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/telegram/ext/dispatcher.py", line 270, in process_update handler.handle_update(update, self) File "/usr/local/lib/python2.7/dist-packages/telegram/ext/commandhandler.py", line 171, in handle_update return self.callback(dispatcher.bot, update, **optional_args) File "telegramRSSbot.py", line 65, in cmd_rss_add args[1] IndexError: list index out of range

Can someone help out ?

BoKKeR commented 3 years ago

You are running python 2.7 but this package requires python 3.x. If you are running on MacOs install python with brew install python and add this to your .bashrc or .zshrc:

#https://stackoverflow.com/a/48101303/2515404
export PATH="/usr/local/opt/python/libexec/bin:$PATH"

Reload the terminal