上传问题之AttributeError: '_socketobject' object has no attribute 'set_tlsext_host_name'
2017-05-20 11:58
666 查看
这两天一直在解决的问题:
上传图片之后,获取图片的 url 且已经进入项目框架里面了,但是还是传输那一块有问题
解决的方向是 pyopenssl 库,就看到说是这个库里面的啥啥的缺失,在网上找了五花八门:卸载了 pyopenssl,再重新安装;更到 pyopenssl 最新版本等等。结果因为卸载 pyopenssl 出现 bug 然后去交流群里面请教,在这过程中我惊奇的发现了其实是 requests 这个库的问题!它下面的下面的 pyopenssl
然后,再把这个库更到最新版本后,问题解决了。
但是!
交流群里一个前辈说,这样解决问题不好,要自己去解决包依赖问题,不要手动升级,我自己想了想说到:
现在的项目是在我的分支下完成 我自己这里更新了 requirements里面即使我手动把那个包号改变了 pull到主分支去 也还是没用的。
因此,万不得已的情况,在自己的分支下,不要轻易升级包来解决问题。
上传图片之后,获取图片的 url 且已经进入项目框架里面了,但是还是传输那一块有问题
解决的方向是 pyopenssl 库,就看到说是这个库里面的啥啥的缺失,在网上找了五花八门:卸载了 pyopenssl,再重新安装;更到 pyopenssl 最新版本等等。结果因为卸载 pyopenssl 出现 bug 然后去交流群里面请教,在这过程中我惊奇的发现了其实是 requests 这个库的问题!它下面的下面的 pyopenssl
然后,再把这个库更到最新版本后,问题解决了。
但是!
交流群里一个前辈说,这样解决问题不好,要自己去解决包依赖问题,不要手动升级,我自己想了想说到:
现在的项目是在我的分支下完成 我自己这里更新了 requirements里面即使我手动把那个包号改变了 pull到主分支去 也还是没用的。
因此,万不得已的情况,在自己的分支下,不要轻易升级包来解决问题。
相关文章推荐
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- python机器学习实战3.2提示错误AttributeError: type object 'str' has no attribute '_name_'
- AttributeError: type object '_socketobject' has no attribute 'socket'
- Python3下AttributeError: 'dict' object has no attribute 'iteritems'的问题分析
- 解决python中问题AttributeError: 'collections.defaultdict' object has no attribute 'iteritems'
- AttributeError: 'dict' object has no attribute 'items' 问题
- python 提示错误AttributeError: type object 'str' has no attribute '_name_'
- django view.py error 'QuerySet' object has no attribute 'save' 解决方法
- Python下Pip安装包下的AttributeError: 'Requirement' object has no attribute 'project_name'
- python图像处理问题AttributeError: 'NoneType' object has no attribute 'shape'
- Python3下AttributeError: 'dict' object has no attribute 'iteritems'的问题分析
- python问题请教:大佬们 AttributeError: 'int' object has no attribute 'save_bullet'
- AttributeError: 'module' object has no attribute 'handlers'--Python子模块导入问题
- Python问题分析:AttributeError: module 'sys' has no attribute 'setdefaultencoding'
- python遇到AttributeError: 'str' object has no attribute '_getAssertEqualityFunc'问题解决过程
- AttributeError 'module' object has no attribute 'handlers'--Python子模块导入问题
- Tensorflow protobuf版本报错问题解决(AttributeError: 'module' object has no attribute 'Default')
- RabbitVCS(0.14.2)不显示右键设置(settings)菜单,AttributeError: 'gtk.VBox' object has no attribute 'set_visible
- 【问题】Keras AttributeError: 'Tensor' object has no attribute '_keras_history'