[Developers] eMQL errors
Benjamin Goldenberg
bgoldenberg at gmail.com
Tue Jun 2 22:52:14 UTC 2009
Hello all,
I've been trying to write an eMQL adapter to extend /music/track to
query LyricWiki via their REST API for song lyrics. (It seems unlikely
that the RIAA will ever let Freebase host song lyrics, but eMQL seems
to provide an almost as good solution.) I cloned the umql and
stock_quote scripts from the umql acre app at
http://acre.freebase.com/#app=/freebase/apps/umql My cloned scripts
are at http://acre.freebase.com/#app=/user/bgoldenberg/emql I've been
testing it using the following query:
[{
"id": "/en/like_a_rolling_stone",
"/music/track/lyrics": null
}]
If I use the debug=pre option, I can see that the pre step seems to
transform the query into a valid MQL query, but the fetch step causes
the following cryptic error:
{
"status": "500 Server Error",
"code": "/api/status/error",
"messages": [{
"code": "/api/status/error/emql",
"message": "'unicode' object does not support item assignment
Traceback (most recent call last):
File '/mw/vajda/mw/mwbuild/_work/relevance-trunk_2009.02.26-00.29.11/python/packages/jemql-1.0-py2.6-linux-x86_64.egg/jemql/emql.py',
line 995, in emql_query
escape, lang, debug, parameter)
File '/mw/vajda/mw/mwbuild/_work/relevance-trunk_2009.02.26-00.29.11/python/packages/jemql-1.0-py2.6-linux-x86_64.egg/jemql/emql.py',
line 940, in _query
parameter)
...
}
Regards,
Ben
More information about the Developers
mailing list