V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
deepice
V2EX  ›  Project Picky

进入Picky Writer提示错误

  •  
  •   deepice · 2010-11-21 20:23:19 +08:00 · 5411 次点击
    这是一个创建于 5123 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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/example-picky/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   ·   实用小工具   ·   2615 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 06:48 · PVG 14:48 · LAX 22:48 · JFK 01:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.