於 VERSION: 2.5.0-dev-7 後的出信息 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
guokb
0.02D
V2EX    Project Babel

於 VERSION: 2.5.0-dev-7 後的出信息

  •  
  •   guokb 2012-10-18 10:13:24 +08:00 5703 次点击
    这是一个创建于 4817 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我是昨天晚上 https://github.com/livid/v2ex 用git clone的一份,
    案里只按照( http://www.v2ex.com/cn/index.html )改了下 app.yaml 和 config.py 中自己的部分
    但是用 GAE sdk的 lanucher-> deploy後,「首」是看到了一,稍候就告下面的信息:

    Traceback (most recent call last):
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 710, in __call__
    handler.get(*groups)
    File "/base/data/home/apps/kooclass/3.362528604301743683/main.py", line 135, in get
    home_rendered = template.render(path, template_values)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/template.py", line 92, in render
    return t.render(Context(template_dict))
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/template.py", line 128, in wrap_render
    return orig_render(context)
    File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 168, in render
    return self.nodelist.render(context)
    File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 705, in render
    bits.append(self.render_node(node, context))
    File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 718, in render_node
    return(node.render(context))
    File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/defaulttags.py", line 122, in render
    nodelist.append(node.render(context))
    File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 767, in render
    output = self.filter_expression.resolve(context)
    File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 563, in resolve
    obj = resolve_variable(self.var, context)
    File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 650, in resolve_variable
    current = getattr(current, bits[0])
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 3692, in __get__
    instance = get(reference_id)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1537, in get
    return get_async(keys, **kwargs).get_result()
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 604, in get_result
    return self.__get_result_hook(self)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/datastore/datastore_rpc.py", line 1459, in __get_hook
    entities = rpc.user_data(entities)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 600, in local_extra_hook
    return extra_hook(result)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1507, in extra_hook
    model = cls1.from_entity(entity)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1442, in from_entity
    return cls(None, _from_entity=entity, **entity_values)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 974, in __init__
    prop.__set__(self, value)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 614, in __set__
    value = self.validate(value)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 3214, in validate
    value = super(IntegerProperty, self).validate(value)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 641, in validate
    raise BadValueError('Property %s is required' % self.name)
    BadValueError: Property notification_position is required

    然首成上面子,然而,後的「事本」 ,「置」 ,「附近」 功能正常,
    由於我是一名代盲,只有求V2上折或熟悉PB的朋友忙看看了。 多先!

    充: 我的器境
    。 win xp
    。 app engine sdk 1.7.2 和 python 2.7
    1 条回复    1970-01-01 08:00:00 +08:00
    guokb
        1
    guokb  
    OP
       2012-10-18 20:48:52 +08:00
    咦,之前已有朋友也出似( t/43231 ),可是有答案。

    自己搜了一下,但 stackoverflow.com 上找的有些e文是看不懂,恰哈 @keakon 的篇「db.Property机制解析」( http://www.keakon.net/2010/11/01/db.Property%E6%9C%BA%E5%88%B6%E8%A7%A3%E6%9E%90 ) 好彩是中文,可於我代盲的人,也不知是哪能找正的法。

    自己用 gedit 打 mapreduce 文件下 model.py 的源,大致137行-154行跟上面提到的情形有些似,但我是不能肯定,所以是求v2里的人指一下,合上面的出信息,改如何着手呢?

    多各位啦!
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2513 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 38ms UTC 15:19 PVG 23:19 LAX 07:19 JFK 10:19
    Do have faith in what you're doing.
    ubao msn 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