'Error with urllib3 and the python-telegram-bot API
when i try to run my script (my telegram bot) the following appears in terminal:
/usr/local/lib/python3.7/dist-packages/python_telegram_bot-12.4.2-
py3.7.egg/telegram/utils/request.py:47: UserWarning: python-telegram-bot is using upstream urllib3.
This is allowed but not supported by python-telegram-bot maintainers.
what I do?
Thanks a lot
Solution 1:[1]
Originally, python-telegram-bot only shipped with a vendored version of urllib3 that was created to fix a bug that could not be fixed upstream.
To allow python-telegram-bot to be shipped as part of Linux distributions, the dependency on the vendored urllib3 has been made optional, allowing python-telegram-bot to work with the standard urllib3.
So the message you're seeing is expected behavior if you installed python-telegram-bot through your distribution's packet manager. If your bot works fine, you don't have to change anything.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | SomeDude |
