ubuntu导入数据存储本地的python应用程序引擎(app engine for python on ubuntu import datastore local)

编程入门 行业动态 更新时间:2024-10-21 17:36:31
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_api

I'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']

更多推荐

本文发布于:2023-08-07 01:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1458460.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   数据存储   引擎   python   ubuntu

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!