polakowo / vectorbt

Find your trading edge, using the fastest engine for backtesting, algorithmic trading, and research.
https://vectorbt.dev
Other
4.26k stars 612 forks source link

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

Open pte1601 opened 1 week ago

pte1601 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

Use pip install python-telegram-bot==13.15

pte1601 commented 1 week ago

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