Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Error #75

Closed
padevin opened this issue Mar 13, 2023 · 4 comments
Closed

Running Error #75

padevin opened this issue Mar 13, 2023 · 4 comments

Comments

@padevin
Copy link

padevin commented Mar 13, 2023

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
Copy link
Owner

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
Copy link
Owner

python-telegram-bot/python-telegram-bot#3005 Seems linked to.

@brianleect
Copy link
Owner

brianleect commented Mar 13, 2023

7237bd5

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
Copy link
Author

padevin commented Mar 13, 2023

worked thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants