samirsalman / AmazonOffers-TelegramBot

This project is a Telegram Bot connected to a Telegram Channel that checks Amazon offers and send them to your Channel.
137 stars 46 forks source link

Bot startup errors #22

Closed Alex87a closed 8 months ago

Alex87a commented 2 years ago

Hi, when I go to run the bot I get the following errors:

/usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version! warnings.warn ("urllib3 ({}) or chardet ({}) doesn't match a supported"

Traceback (most recent call last): File "bot.py", line 5, in from create_messages import create_item_html File "/home/Alex/Scrivania/AmazonOffers-TelegramBot-main/create_messages.py", line 1, in from telegram import InlineKeyboardButton, InlineKeyboardMarkup ImportError: cannot import name 'InlineKeyboardButton' from 'telegram' (/usr/local/lib/python3.8/dist-packages/telegram/init.py)

How can I solve? I did the automatic installation with script.sh

d3mo12 commented 2 years ago

Same problems , how i can fix it?

d3mo12 commented 2 years ago

Traceback (most recent call last): File "C:\Users\d3mos\OneDrive\Desktop\AmazonOffers-TelegramBot-main\bot.py", line 5, in from create_messages import create_item_html File "C:\Users\d3mos\OneDrive\Desktop\AmazonOffers-TelegramBot-main\create_messages.py", line 1, in from telegram import InlineKeyboardButton, InlineKeyboardMarkup ImportError: cannot import name 'InlineKeyboardButton' from 'telegram' (C:\Users\d3mos\AppData\Local\Programs\Python\Python39\lib\site-packages\telegram__init__.py)

vinceplayer commented 2 years ago

pip install python-telegram-bot==4.0rc1 and i have solved