上传问题之AttributeError: '_socketobject' object has no attribute 'set_tlsext_host_name'
来源:互联网 发布:mac查看cad图纸的软件 编辑:程序博客网 时间:2024/05/16 14:43
这两天一直在解决的问题:
上传图片之后,获取图片的 url 且已经进入项目框架里面了,但是还是传输那一块有问题
解决的方向是 pyopenssl 库,就看到说是这个库里面的啥啥的缺失,在网上找了五花八门:卸载了 pyopenssl,再重新安装;更到 pyopenssl 最新版本等等。结果因为卸载 pyopenssl 出现 bug 然后去交流群里面请教,在这过程中我惊奇的发现了其实是 requests 这个库的问题!它下面的下面的 pyopenssl
然后,再把这个库更到最新版本后,问题解决了。
但是!
交流群里一个前辈说,这样解决问题不好,要自己去解决包依赖问题,不要手动升级,我自己想了想说到:
现在的项目是在我的分支下完成 我自己这里更新了 requirements里面即使我手动把那个包号改变了 pull到主分支去 也还是没用的。
因此,万不得已的情况,在自己的分支下,不要轻易升级包来解决问题。
阅读全文
0 0
- 上传问题之AttributeError: '_socketobject' object has no attribute 'set_tlsext_host_name'
- AttributeError: type object '_socketobject' has no attribute 'socket'
- python 使用 pip 安装 三方库的时候报错 “AttributeError: '_socketobject' object has no attribute...”
- AttributeError: ‘module’ object has no attribute’ 问题
- AttributeError: 'module' object has no attribute 'post'问题
- 【TensorFlow问题】AttributeError:'module' object has no attribute 'mul'
- 问题AttributeError: ‘module’ object has no attribute ‘sub’
- 【问题】Keras AttributeError: 'Tensor' object has no attribute '_keras_history'
- 【TensorFlow问题】AttributeError:'module' object has no attribute 'mul'
- AttributeError: 'classmethod' object has no attribute '__module__'
- AttributeError: 'module' object has no attribute 'getpass'
- AttributeError: ‘NoneType’ object has no attribute ‘clone’
- AttributeError: 'module' object has no attribute 'Serial'
- AttributeError: 'NoneType' object has no attribute 'clone'
- AttributeError: 'tuple' object has no attribute 'Multi'
- AttributeError: 'Response' object has no attribute 'json'
- AttributeError: 'module' object has no attribute(转)
- AttributeError: 'Connection' object has no attribute 'connection_errors'
- 《现代操作系统(原书第3版)》pdf
- Android中调用shell脚本
- 输入一个数(N),列出(1~N)之间的素数
- 07数据库设计
- Android Studio 默认keystore 以及自定义keystore
- 上传问题之AttributeError: '_socketobject' object has no attribute 'set_tlsext_host_name'
- 关于近些日子的一些问题小结
- 08关联查询(多表查询)
- FPGA学习(第7节)-Verilog状态机(状态按条件切换)
- 软件测试(Software testing)
- 20、包含min函数的栈
- Oracle存储过程
- 线程互斥与线程同步
- Spring的bean的继承