开发者

Yahoo BOSS API Python Library Error

i've just downloaded the Yahoo BOSS Mashup framework from http://developer.yahoo.com/search/boss/mashup.html, and I have a problem:

I'm receiving the following error for all examples. For instance, for example.ex3.py:

File "ex3.py", line 33
    tb = db.group(by=["ynews$title"], key="dg$diggs", reducer=lambda d1, d2: d1 + d2, as: 'rank', table=tb, norm=text.norm)
                                                                                       ^
SyntaxError: invalid syntax

I read the post at Python 2.6 DB error but i do not understand the solution.

How do i fix the problem?

Is there any other alternate libraries i can use?

Any suggestions are开发者_开发技巧 welcomed!


oh, i manage to fix it. What i did is that i changed the key word "as" and replace it with some other word.

I used "as" to "as1" and reinstalled the framework. Now it works. Hope this helps all other people.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜