进入Picky Writer提示错误 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
deepice
V2EX    Project Picky

进入Picky Writer提示错误

  •  
  •   deepice 2010-11-21 20:23:19 +08:00 5710 次点击
    这是一个创建于 5438 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Traceback (most recent call last):
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
    handler.get(*groups)
    File "/base/data/home/apps/examplepicky/1.346371474994347470/writer.py", line 211, in get
    if len(mentions_twitter['results']) > 0:
    KeyError: 'results'
    5 条回复    1970-01-01 08:00:00 +08:00
    deepice
        1
    deepice  
    OP
       2010-11-21 21:03:10 +08:00
    有人知道这是什么问题么?
    xinzhi
        2
    xinzhi  
       2010-11-21 21:16:55 +08:00
    大概是Twitter API的问题,需要修改writer.py文件,已经修改好的问题,你可以直接下载使用:
    https://cl.ly/2Qas

    请先备份你的writer.py
    deepice
        3
    deepice  
    OP
       2010-11-21 21:56:26 +08:00
    @xinzhi 现在Writer可以访问了. 但是Twitter还是提示错误
    Traceback (most recent call last):
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
    handler.get(*groups)
    File "/base/data/home/apps/deepice-picky/7.346374760088569714/twitter.py", line 42, in get
    lists = api.GetLists()
    File "/base/data/home/apps/deepice-picky/7.346374760088569714/v2ex/picky/ext/twitter.py", line 1546, in GetLists
    json = self._FetchUrl(url)
    File "/base/data/home/apps/deepice-picky/7.346374760088569714/v2ex/picky/ext/twitter.py", line 2180, in _FetchUrl
    url_data = opener.open(url, encoded_post_data).read()
    File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 387, in open
    respOnse= meth(req, response)
    File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
    File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 425, in error
    return self._call_chain(*args)
    File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
    File "/base/python_runtime/python_dist/lib/python2.5/urllib2.py", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    HTTPError: HTTP Error 404: Not Found
    deepice
        4
    deepice  
    OP
       2010-11-22 09:39:04 +08:00
    继续求助了. 本地模拟也没通过 无法访问Twitter..
    Mianco
        5
    Mianco  
       2010-11-22 10:03:31 +08:00
    不要用pick的twitter功能
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2583 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 33ms UTC 14:53 PVG 22:53 LAX 07:53 JFK 10:53
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86