V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
deepice

进入Picky Writer提示错误

  •  
  •   deepice · Nov 21, 2010 · 6001 views
    This topic created in 5647 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    deepice
        1
    deepice  
    OP
       Nov 21, 2010
    有人知道这是什么问题么?
    xinzhi
        2
    xinzhi  
       Nov 21, 2010
    大概是Twitter API的问题,需要修改writer.py文件,已经修改好的问题,你可以直接下载使用:
    https://cl.ly/2Qas

    请先备份你的writer.py
    deepice
        3
    deepice  
    OP
       Nov 21, 2010
    @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
       Nov 22, 2010
    继续求助了. 本地模拟也没通过 无法访问Twitter..
    Mianco
        5
    Mianco  
       Nov 22, 2010
    不要用pick的twitter功能
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5835 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 06:25 · PVG 14:25 · LAX 23:25 · JFK 02:25
    ♥ Do have faith in what you're doing.