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
ImportError: cannot import name 'Animation' from 'telegram' #9
Comments
Interesting, there may have been a change in python-telegram-bot or something, though if you used poetry, it should use the poetry.lock file to use the specific versions. When I get a chance I will take a peek and see if I can reproduce it, though if you could give me the full traceback and what OS you're using, that might be helpful. As a quick stop-gap to get you back up and running, you might want to try the Docker version. If you use the |
thanks! alright the bot is running again via docker ... i totally forgot that there is a docker image. My Homeserver runs latest and fully updated Debian. As i said before i tested under Python 3.8 and Python 3.9. Here is the complete Output: Traceback (most recent call last): |
I have not been able to reproduce this on either Ubuntu or Windows with any Python version between 3.8 and 3.10, installing with either pip or Poetry, so I'm not sure what happened. Just in case, I have updated the python-telegram-bot requirement to the latest, in case some old version of it in your environment was causing the problem, and updated the poetry lock file to the latest compatible version of everything, in v0.6.4. |
I stumbled upon this same error in Python 3.8 when I accidentally installed the |
Ah, this makes sense. The |
This really solved the problem for me, we only need the package |
After running your bot like for over 7months without problem i cant start it anymore. I literally changed nothing.
I reinstalled like stated in readme, i even did the poetry way after i couldnt get it fixed, but nothing.
On Python 3.8:
ImportError: cannot import name 'TelegramError' from 'telegram' (....
on Python 3.9:
ImportError: cannot import name 'Animation' from 'telegram' (...
The text was updated successfully, but these errors were encountered: