0
我一直在使用Freebase Python模塊成功讀取數據,今天我開始測試將數據寫入Freebase。_URLFetchResult對象在通過Python調用Freebase時沒有屬性「body」
但我不斷收到這對我來說並不決策意識的錯誤:
內的代碼相同的範圍,我可以沒有錯誤執行mqlread(查詢)。
但是當我嘗試:
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沒有發回正確的結果?