【问题标题】:Error with urllib3 and the python-telegram-bot APIurllib3 和 python-telegram-bot API 出错
【发布时间】:2020-03-26 03:27:44
【问题描述】:

当我尝试运行我的脚本(我的电报机器人)时,终端中会出现以下内容:

/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.

我要做什么?

非常感谢

【问题讨论】:

    标签: python-3.x python-telegram-bot


    【解决方案1】:

    最初,python-telegram-bot 仅附带 urllib3 that was created to fix a bug that could not be fixed upstream. 的供应商版本

    为了允许 python-telegram-bot 作为 Linux 发行版的一部分发布,依赖于供应商的 urllib3 has been made optional,允许 python-telegram-bot 与标准 urllib3 一起使用。

    因此,如果您通过发行版的数据包管理器安装 python-telegram-bot,那么您看到的消息是预期的行为。如果您的机器人工作正常,您无需进行任何更改。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-07
      • 2018-04-07
      • 2021-06-21
      • 2021-11-26
      • 1970-01-01
      • 2017-02-17
      • 2022-01-24
      相关资源
      最近更新 更多