2012-03-27 31 views
2

このエラーは本番環境で発生しています。 localhostではうまく動作します。App Engine Python:AttributeError: 'module'オブジェクトに 'Stock'属性がありません

Traceback (most recent call last): 
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 701, in __call__ 
    handler.get(*groups) 
    File "/base/data/home/apps/s~ordenaacoes/2.357768699674437719/controllers/mainh.py", line 74, in get 
    'stocks': goodStocks(), 
    File "/base/data/home/apps/s~ordenaacoes/2.357768699674437719/controllers/mainh.py", line 108, in goodStocks 
    goodStocks = memcache.get("goodStocks") 
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/memcache/__init__.py", line 574, in get 
    results = rpc.get_result() 
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 592, in get_result 
    return self.__get_result_hook(self) 
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/memcache/__init__.py", line 639, in __get_hook 
    self._do_unpickle) 
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/memcache/__init__.py", line 271, in _decode_value 
    return do_unpickle(value) 
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/memcache/__init__.py", line 412, in _do_unpickle 
    return unpickler.load() 
    File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 852, in load 
    dispatch[key](self) 
    File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 1084, in load_global 
    klass = self.find_class(module, name) 
    File "/base/python_runtime/python_dist/lib/python2.5/pickle.py", line 1119, in find_class 
    klass = getattr(mod, name) 
AttributeError: 'module' object has no attribute 'Stock' 

在庫は自分のモデルの1クラスです。私はlocalhostでもpython 2.5でテストしました。

エラーを返す行は、memcache(get関数)へのアクセスです。
私はプロジェクトを変更しました。おそらく、私がmemcacheに入れたデータのタイプは異なっています。 Memcacheのデータを消去する方法はありますか?

+2

このエラーを生成する実際のコードのスニペットを含めてください。ありがとうございました。 – bernie

答えて

2

リリースのとおり。それはあなたが必要とするものを正確に行うべきである "フラッシュキャッシュ"ボタンを含みます。

関連する問題