'module' object has no attribute 'OP_NO_TLSv1_1'问题解决
2017-08-18 15:54
1276 查看
问题概述:
在使用twisted建立简单服务器时,需要导入管理器reactor。在导入时报错,最终错误描述内容如标题所示。
报错后尝试了什么?
重新安装twisted
怀疑是reactor没有被正确安装,或者未能找到正确的、符合当前系统的reactor,所以尝试安装了pollreactor.未能奏效
解决办法:
方法1、参考http://twistedmatrix.com/trac/对twisted的介绍进行检测,看看自己的twisted是不是没有正确安装
方法2、降低自己安装的twisted的版本,如 '$ pip install twisted==16.4.1'
注:twisted版本及下载可参考网址:http://twistedmatrix.com/trac/wiki/Downloads
在使用twisted建立简单服务器时,需要导入管理器reactor。在导入时报错,最终错误描述内容如标题所示。
报错后尝试了什么?
重新安装twisted
怀疑是reactor没有被正确安装,或者未能找到正确的、符合当前系统的reactor,所以尝试安装了pollreactor.未能奏效
解决办法:
方法1、参考http://twistedmatrix.com/trac/对twisted的介绍进行检测,看看自己的twisted是不是没有正确安装
方法2、降低自己安装的twisted的版本,如 '$ pip install twisted==16.4.1'
注:twisted版本及下载可参考网址:http://twistedmatrix.com/trac/wiki/Downloads
相关文章推荐
- Scrapy安装报错:AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'解决办法
- Mac 安装scrapy框架报错AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'解决办法
- Scrapy AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1 解决方法
- 'module' object has no attribute 'OP_NO_TLSv1_1'
- 解决问题 AttributeError: 'module' object has no attribute 'face_recognition_model_v1'
- 'module' object has no attribute 'OP_NO_TLSv1_1'
- linux中scrapy startproject 创建项目失败AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'
- 关于Srapy框架运行的错误AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- 关于Python的:'module' object has no attribute 'inet_pton'问题解决
- 'module' object has no attribute 'MLPRegressor'问题解决(Python2.7)
- 关于python里运行出现'module' object has no attribute 'xxxx'等问题解决方法
- AttributeError: 'module' object has no attribute 'face' 问题解决 opencv+python
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- Tensorflow protobuf版本报错问题解决(AttributeError: 'module' object has no attribute 'Default')
- Ubuntu运行scrapy报“scrapy: 'module' object has no attribute 'OP_SINGLE_ECDH_USE'错误解决方法”
- AttributeError: ‘module’ object has no attribute’xxx 问题解决
- 解决用easygui是出现Attribute: 'module' object has no attribute 'msgbox'
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
- AttributeError 'module' object has no attribute 'handlers'--Python子模块导入问题