gpt4 book ai didi

python - Google App Engine 批量下载

转载 作者:太空狗 更新时间:2023-10-30 01:35:19 26 4
gpt4 key购买 nike

我正在使用批量下载从数据存储中下载数据(超过 1 GB)。突然,我的互联网停止工作,下载过程在中间停止。我想从它停止的地方恢复。当我尝试时,出现以下错误

File "/Users/FYP/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/datastore_types.py", line 156, in ValidateString
(name, value, typename(value)))
BadArgumentError: kind should be a string; received 3 (a int):
[INFO ] [WorkerThread-2] Backing off due to errors: 1.0 seconds
[INFO ] An error occurred. Shutting down...
[ERROR ] Error in WorkerThread-0: kind should be a string; received 3 (a int):

这是我下载数​​据的代码

appcfg.py download_data --config_file=bulkloader.yaml --batch_size=200 --filename=final80_2.csv 
--kind=TasksTime1 --url=http://abc.appspot.com/_ah/remote_api --rps_limit=40
--db_filename=bulkloader-progress-20110429.141103 --result_db_filename=bulkloader-results-20110429.141103

如何解决问题?

最佳答案

只需重新运行相同的命令。每the docs :

If the transfer is interrupted, you can resume the transfer from where it left off using the --db_filename=... argument. The value is the name of the progress file created by the tool, which is either a name you provided with the --db_filename argument when you started the transfer, or a default name that includes a timestamp. This assumes you have sqlite3 installed, and did not disable the progress file with --db_filename=skip.

您在第一次执行时指定了一个 db_filename,因此如果您重新运行该命令,它应该会找到现有文件并从它停止的地方继续。

关于python - Google App Engine 批量下载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5840352/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com