PYES异常: TypeError: 'NoneType' object is not callable
来源:互联网 发布:云计算 维基百科 编辑:程序博客网 时间:2024/06/04 17:44
在执行pyes脚本时报出以下异常
Traceback (most recent call last): File "indextest.py", line 18, in <module> conn.indices.put_mapping("test-type", {'properties':mapping}, ["test-index"]) File "/usr/lib/python2.7/site-packages/pyes/managers.py", line 440, in put_mapping return self.conn._send_request('PUT', path, mapping, params=parameters) File "/usr/lib/python2.7/site-packages/pyes/es.py", line 486, in _send_request raise_if_error(response.status, decoded) File "/usr/lib/python2.7/site-packages/pyes/convert_errors.py", line 74, in raise_if_error bits = error.split('[', 1)TypeError: 'NoneType' object is not callable
这个异常通常都是由mapping中的部分字段类型设置错误,或者索引和映射书写有错误,以及格式错误导致的。
0 0
- PYES异常: TypeError: 'NoneType' object is not callable
- TypeError: 'NoneType' object is not subscriptable
- TypeError: ‘NoneType’ object is not iterable
- TypeError: 'NoneType' object is not iterable
- python装饰器 ——@符号与“TypeError: 'NoneType' object is not callable”
- TypeError: 'str' object is not callable
- TypeError: 'sip.methoddescriptor' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'module' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'tuple' object is not callable
- TypeError: 'str' object is not callable
- TypeError:'dict' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- TypeError: 'str' object is not callable
- Python:TypeError: 'int' object is not callable
- 2017代码备忘(自用)
- Ubuntu桌面美化
- 北京天宇联科技有限责任公司—智慧园区云平台
- Play框架的部分性能优化问题
- android 开发 - 网络图片加载库 Fresco 的使用。
- PYES异常: TypeError: 'NoneType' object is not callable
- D3D11地形渲染教程七之HeightBasedMovement(利用四叉树加速查询)
- 目标检测 Faster-rcnn python demo 实现
- jrebel 7.0.1
- 百度查询复制粘贴:MySQL存储过程详解 mysql 存储过程
- JavaScript生成GUID的方法
- 台式前置耳机没有声音解决办法之一
- 更改vs2010的语言编写开发环境
- 从0到1 ,搭建一个android项目(仿券妈妈)