【问题标题】:Eventlet + DNS Python Attribute Error: module "dns.rdtypes" has no attribute ANYEventlet + DNS Python 属性错误:模块“dns.rdtypes”没有任何属性
【发布时间】:2023-01-17 01:57:53
【问题描述】:

我知道有些人会在不久的将来很快面临这个问题。我今天遇到了这个问题,但我可以及时解决它,并想分享我的解决方案:

问题:

from flask_socketio import SocketIO

您将收到类似以下内容的输出错误:

属性错误:模块“dns.rdtypes”没有任何属性

这只有在你安装了 eventlet 时才会发生,因为它会用它安装 dnspython。

解决方案很简单,只需为以前的版本安装 dnspython:

python3 -m pip install dnspython==2.2.1

问题应该消失

【问题讨论】:

    标签: python flask-socketio eventlet dnspython


    【解决方案1】:

    解决方案很简单,只需为以前的版本安装 dnspython:

    python3 -m pip install dnspython==2.2.1

    问题应该消失

    【讨论】:

      猜你喜欢
      • 2018-11-26
      • 1970-01-01
      • 2022-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-29
      • 2014-07-23
      • 2019-07-09
      相关资源
      最近更新 更多