brianleect / binance-pump-alerts

Tracks prices of pairs on binance and notifies when price movements based on pre-defined parameters are met.
140 stars 42 forks source link

Running Error #75

Closed padevin closed 1 year ago

padevin commented 1 year ago

Traceback (most recent call last): File "c:\Users\ismai\Desktop\projeyusuf\binance-pump-alerts-master\binance-pump-alerts-master\pumpAlerts.py", line 7, in from sender import TelegramSender File "c:\Users\ismai\Desktop\projeyusuf\binance-pump-alerts-master\binance-pump-alerts-master\sender__init.py", line 1, in from .TelegramSender import TelegramSender File "c:\Users\ismai\Desktop\projeyusuf\binance-pump-alerts-master\binance-pump-alerts-master\sender\TelegramSender.py", line 4, in from telegram import Bot, ParseMode ImportError: cannot import name 'ParseMode' from 'telegram' (C:\Python311\Lib\site-packages\telegram\init__.py)

brianleect commented 1 year ago

Thanks for the issue, I suspect it might be a breaking change due to a version upgrade by python-telegram-bot , let me investigate further once I've time ideally sometime today or later tmr

brianleect commented 1 year ago

https://github.com/python-telegram-bot/python-telegram-bot/issues/3005 Seems linked to.

brianleect commented 1 year ago

https://github.com/brianleect/binance-pump-alerts/commit/7237bd55a58910d8f61799023fbb7629a25567fa

Fixed. @padevin

Specified python-telegram-version to use an older version so it should function now. Closing. Lmk if it doesn't fix the problem.

Run the command pip -r --force-reinstall requirements.txt

padevin commented 1 year ago

worked thanks