2012-07-09 32 views
0

我需要使用GAE上的Python從Freebase查詢大約30000個實體。這一直是我到目前爲止的晚上行程:在GAE上使用python 2.7進行大型Freebase查詢

首先,我試圖從這裏使用'光標'鍵的解決方案:​​。但是我點擊這裏描述的「Key cursor is a reserved word」錯誤:Freebase "Key cursor is a reserved word"。我遵循解決方案,但我不明白如何獲得遊標值,如下所述:How to get cursor from mqlread() when using Freebase API?。這篇文章建議使用Python的遊離鹼庫:

freebase.mqlread(query, extended=True) 

所以我安裝在GAE遊離鹼庫這裏的操作說明:http://code.google.com/p/freebase-python/wiki/GoogleAppEngine。接下來,我得到了GAE錯誤:

No module named uritemplate 

所以我跑了「的easy_install uritemplate」在我的Mac和複製安裝文件uritemplate.egg(在沒有安裝目錄)到我的GAE應用目錄。但我仍然得到同樣的錯誤。

+0

你可以發佈你的App Engine應用程序目錄的目錄佈局嗎? – proppy 2012-07-09 11:34:31

回答