我一直在使用 Freebase Python 模块成功读取数据,今天我开始测试将数据写入 Freebase。
但我不断收到一个对我来说没有意义的错误:
在相同的代码范围内,我可以执行 mqlread(query) 而不会出错。
但是当我尝试时:
freebase.mqlwrite(query)
我收到如下错误:
File "/Users/willmerydith/repos/supermeeple-sk/admin.py", line 96, in post
result = freebase.mqlwrite(query)
File "/Users/willmerydith/repos/supermeeple-sk/freebase/api/session.py",
line 745, in mqlwrite
form=dict(query=qstr))
File "/Users/willmerydith/repos/supermeeple-sk/freebase/api/session.py",
line 442, in _httpreq_json
resp, body = self._httpreq(*args, **kws)
File "/Users/willmerydith/repos/supermeeple-sk/freebase/api/session.py",
line 428, in _httpreq
return self._http_request(url, method, body, headers)
File "/Users/willmerydith/repos/supermeeple-sk/freebase/api/httpclients.py",
line 88, in __call__
self._raise_service_error(url, resp.status_code,
resp.headers['content-type'], resp.body)
AttributeError: '_URLFetchResult' object has no attribute 'body'
这是否意味着这些电话无法到达 Freebase?或者 Freebase 没有发回正确的结果?