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

VectorBT - Telegram - Issue: ImportError: cannot import Unauthorized, ChatMigrated #748

Open
pte1601 opened this issue Sep 19, 2024 · 4 comments

Comments

@pte1601
Copy link

pte1601 commented Sep 19, 2024

Hello
I am trying to install vbt on a win11 machine python 3.12 environment.
I am getting errors, even after having installed python-telegram-bot, v21.5:
"from telegram.error import Unauthorized, ChatMigrated; ImportError: cannot import name 'Unauthorized' from 'telegram.error'
I just saw that the teegram bot max version is 20.

Please, could you assist to elimitate this error.

Thanks, Greetings, Peter

@pte1601
Copy link
Author

pte1601 commented Sep 19, 2024

Hello SoldierFace
thx for ur prompt help
The downloaded file cannot be installed; says , includes virus
btw, in which directory install the dlls?
Greetings, Peter

@polakowo
Copy link
Owner

Use pip install python-telegram-bot==13.15

@pte1601
Copy link
Author

pte1601 commented Sep 19, 2024

Hello Oleg
Thanks for quick help.
installed with v13.15; now installation passed; But when testing with your start script the msg appears:
"...\Python312\Lib\site-packages\telegram\utils\request.py:54: UserWarning: python-telegram-bot wasn't properly installed. Please refer to README.rst on how to properly install"

Unfortunately then the vectorbt script stops.

What other actions can I do to fix the issue under win 11 and python 3.12?

Greetings, Peter

@mrojaso07
Copy link

Hello, polakowo, I have same error, please your help.
Best regards

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

4 participants
@polakowo @pte1601 @mrojaso07 and others