使用appcfg.py download_data时,'Query'对象没有属性'kind'

时间:2009-09-06 17:28:05

标签: python google-app-engine

我在批量下载时遇到问题 - 我的所有数据都没有被删除。

我还在调试,但是我在控制台中看到了:

Traceback (most recent call last):
File "/Users/matthew/local/opt/google_appengine/google/appengine/tools/adaptive_thread_pool.py", line 150, in WorkOnItems
  status, instruction = item.PerformWork(self.__thread_pool)
File "/Users/matthew/local/opt/google_appengine/google/appengine/tools/bulkloader.py", line 675, in PerformWork
  transfer_time = self._TransferItem(thread_pool)
File "/Users/matthew/local/opt/google_appengine/google/appengine/tools/bulkloader.py", line 1054, in _TransferItem
  download_result = self.request_manager.GetEntities(self)
File "/Users/matthew/local/opt/google_appengine/google/appengine/tools/bulkloader.py", line 1274, in GetEntities
  query = key_range_item.key_range.make_directed_datastore_query(self.kind)
File "/Users/matthew/local/opt/google_appengine/google/appengine/ext/key_range/__init__.py", line 246, in make_directed_datastore_query
  query = self.filter_datastore_query(query)
File "/Users/matthew/local/opt/google_appengine/google/appengine/ext/key_range/__init__.py", line 175, in filter_datastore_query
  return EmptyDatastoreQuery(query.kind)
AttributeError: 'Query' object has no attribute 'kind'
[INFO    ] An error occurred. Shutting down...
.....[ERROR   ] Error in Thread-7: 'Query' object has no attribute 'kind'

[INFO    ] Have 83 entities, 0 previously transferred
[INFO    ] 83 entities (0 bytes) transferred in 2.5 seconds

有什么想法吗?对于此测试,我只导出单个模型的数据,但每个记录都有2个对另一个模型的引用。

1 个答案:

答案 0 :(得分:1)

遗憾的是,您在批量下载程序中遇到了错误。你能否提交一份错误报告here?如果您可以提供模型定义和批量加载器导出器子类定义,那将会有所帮助。