AttributeError: 'Response' object has no attribute 'json'
来源:互联网 发布:无锡大数据 编辑:程序博客网 时间:2024/06/05 19:32
import了requests和json,但是在运行的时候报出“AttributeError: 'Response' object has no attribute 'json'”这样的错。后来在stackflow上看到类似的错误
http://stackoverflow.com/questions/22412873/attributeerror-response-object-has-no-attribute-json
原来是requests版本太旧的问题,先
print requests.__version__
0.10.6
不是最新版本的,于是update requests的版本,在CMD的命令行里输入以下命令
pip install --upgrade requests or easy_install requests
再运行就OK了。
0 0
- AttributeError: 'Response' object has no attribute 'json'
- 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: 'module' object has no attribute(转)
- AttributeError: 'Connection' object has no attribute 'connection_errors'
- AttributeError: 'module' object has no attribute 'randint'
- AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'
- AttributeError: 'WebDriver' object has no attribute
- AttributeError: 'NoneType' object has no attribute
- AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for'
- AttributeError: 'module' object has no attribute 'Serial'
- AttributeError: 'module' object has no attribute 'LabelMap'
- AttributeError: 'module' object has no attribute 'XXX'
- AttributeError: 'module' object has no attribute 'urlopen'
- 在Hadoop研究过程中遇到问题杂记(后续再补充)
- ENetwork Chapter 11 - CCNA Exploration (Version 4.0)
- oracle笔记1-有效、干净的卸载oracle
- PHP 设计模式(二)
- 利用PLSQ中LODBC Import选项导入Excel数据到数据库表中
- AttributeError: 'Response' object has no attribute 'json'
- HDU 2521 反素数
- Sybase 中文乱码解决办法
- 解决安卓手机搜不到ubuntu13.10下WIFI热点的问题
- 使用Vitamio打造自己的Android万能播放器(3)——本地播放(主界面、播放列表)
- sift 详解
- oracle的sqlnet.ora,tnsnames.ora,listener.ora三个配置文件
- java事务
- linux kernel 启动分析