ubuntu导入数据存储本地的python应用程序引擎(app engine for python on ubuntu import datastore local)
python
我正在尝试根据此问题的答案创建数据存储的本地副本如何创建GAE数据存储的本地副本? 。 在MAC / Windows上它可以工作,但现在我正在使用Ubuntu,我收到此错误:
Traceback (most recent call last): File "/opt/google/google_appengine/appcfg.py", line 133, in <module> run_file(__file__, globals()) File "/opt/google/google_appengine/appcfg.py", line 129, in run_file execfile(_PATHS.script_file(script_name), globals_) File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 5445, in <module> main(sys.argv) File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 5436, in main result = AppCfgApp(argv).Run() File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 2997, in Run self.action(self) File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 5092, in __call__ return method() File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 4874, in PerformDownload run_fn(args) File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 4777, in RunBulkloader sys.exit(bulkloader.Run(arg_dict)) File "/opt/google/google_appengine/google/appengine/tools/bulkloader.py", line 4405, in Run return _PerformBulkload(arg_dict) File "/opt/google/google_appengine/google/appengine/tools/bulkloader.py", line 4145, in _PerformBulkload passin = arg_dict['passin'] KeyError: 'passin'我尝试使用--passin,但没有这样的论点appcfg.py关于什么可能出错的任何想法?
我试图使用的命令是:
appcfg.py upload_data --filename=Downloads/data.csv --url=http://localhost:8080/remote_apiI'm trying to create a local copy of the datastore following the answer on this question How to create local copy of GAE datastore? . On MAC/Windows it works, but now i'm using Ubuntu and I get this error:
Traceback (most recent call last): File "/opt/google/google_appengine/appcfg.py", line 133, in <module> run_file(__file__, globals()) File "/opt/google/google_appengine/appcfg.py", line 129, in run_file execfile(_PATHS.script_file(script_name), globals_) File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 5445, in <module> main(sys.argv) File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 5436, in main result = AppCfgApp(argv).Run() File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 2997, in Run self.action(self) File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 5092, in __call__ return method() File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 4874, in PerformDownload run_fn(args) File "/opt/google/google_appengine/google/appengine/tools/appcfg.py", line 4777, in RunBulkloader sys.exit(bulkloader.Run(arg_dict)) File "/opt/google/google_appengine/google/appengine/tools/bulkloader.py", line 4405, in Run return _PerformBulkload(arg_dict) File "/opt/google/google_appengine/google/appengine/tools/bulkloader.py", line 4145, in _PerformBulkload passin = arg_dict['passin'] KeyError: 'passin'I tried using --passin, but there is no such argument to appcfg.py Any ideas about what could go wrong?
The command I am trying to use is:
appcfg.py upload_data --filename=Downloads/data.csv --url=http://localhost:8080/remote_api最满意答案
刚尝试设置passin = False而不是从bulkloader.py中的arg_dict ['passin']获取它并且它可以工作。
passin = False #arg_dict['passin'] self.passin = False #arg_dict['passin']Just tried setting passin = False instead of getting it from arg_dict['passin'] in bulkloader.py and it works.
passin = False #arg_dict['passin'] self.passin = False #arg_dict['passin']更多推荐
发布评论