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

安装报错

  •  
  •   horse · 2010-08-22 17:16:02 +08:00 · 4990 次点击
    这是一个创建于 4987 天前的主题,其中的信息可能已经有所发展或是发生改变。
    小白提问,装picky在zhanbin.appspot.com出错

    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/zhanbin/1.344259933651252454/main.py", line 52, in get
    template_values['articles_total'] = articles.count()
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1818, in count
    result = raw_query.Count(limit=limit, rpc=rpc)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1275, in Count
    iterator = self._Run(limit=0, offset=offset, **kwargs)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1188, in _Run
    str(exc) + '\nThis query needs this index:\n' + yaml)
    NeedIndexError: The index for this query is not ready to serve. See the Datastore Indexes page in the Admin Console.
    This query needs this index:
    - kind: Article
    properties:
    - name: is_page
    - name: created
    direction: desc
    4 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
       2010-08-22 17:17:52 +08:00
    第一次运行的时候,要等待 GAE 构建数据库索引。
    horse
        2
    horse  
    OP
       2010-08-22 17:19:12 +08:00
    哦。收到
    iugo
        3
    iugo  
       2010-08-22 18:33:55 +08:00
    嗯。Project Babel 也是一样的。。。

    难道所有GAE都是一样的?
    iwinux
        4
    iwinux  
       2010-08-22 18:54:49 +08:00
    @Livid 请问这些索引可以手工添加进 index.yaml 吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5379 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 07:18 · PVG 15:18 · LAX 00:18 · JFK 03:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.