简体   繁体   English

如何从谷歌云控制台下载我的项目源代码

[英]How can I download my project source code from google cloud console

When i issued this command (appcfg.py -A rrrrr -V 1 download_app /C) to download source code from the Google Cloud Shell, I get this error message:当我发出此命令 (appcfg.py -A rrrrr -V 1 download_app /C) 从 Google Cloud Shell 下载源代码时,我收到以下错误消息:

Python 2 is deprecated. Python 2 已弃用。 Upgrade to Python 3 as soon as possible.尽快升级到 Python 3。 See https://cloud.google.com/python/docs/python2-sunset请参阅https://cloud.google.com/python/docs/python2-sunset

To suppress this warning, create an empty ~/.cloudshell/no-python-warning file.要取消此警告,请创建一个空的 ~/.cloudshell/no-python-warning 文件。 The command will automatically proceed in seconds or on any key.该命令将在几秒钟内或按任意键自动执行。


10:33 AM Host: appengine.google.com
10:33 AM Fetching file list...
Error 401: --- begin server output ---
1.434068975362424615
<ApiError 401, Message: "Rejected by creds_policy: Permission 'auth.creds.useNormalUserEUC' not granted to app-engine-appserver@prod.google.com, because it satisfies none of the 3 rules granting that permission. (Policy {type=creds, id=/apps/framework/auth/v0/mapping0/247afb42-c0c2-4579-9534-4d81ab6e915f}); RpcSecurityPolicy http://rpcsp/p/5frrBmXyY2vYXBQ1ey0O2q71nxZ-SEboQ9bDWATZ7oA
com.google.security.context.validation.CredsPermissionException: Rejected by creds_policy: Permission 'auth.creds.useNormalUserEUC' not granted to app-engine-appserver@prod.google.com, because it satisfies none of the 3 rules granting that permission. (Policy {type=creds, id=/apps/framework/auth/v0/mapping0/247afb42-c0c2-4579-9534-4d81ab6e915f}); RpcSecurityPolicy http://rpcsp/p/5frrBmXyY2vYXBQ1ey0O2q71nxZ-SEboQ9bDWATZ7oA ">
--- end server output ---

appcfg.py is part of the old SDK which has been deprecated and no longer works ( source ). appcfg.py是旧 SDK 的一部分,它已被弃用且不再有效( 来源)。 Google has no direct replacement for appcfg.py download . Google 没有直接替代appcfg.py download

There are some possible work arounds as documented on this stackoverflow question .在此stackoverflow question上记录了一些可能的解决方法。

Our App, nocommandline.com , also supports download with some caveats.我们的应用程序nocommandline.com也支持下载,但有一些注意事项。 See full details on our answer to that previous stackoverflow question.查看我们对上一个 stackoverflow 问题的回答的完整细节 We also have an article on our blog about it.我们的博客上也有一篇关于它的文章 That article also gives you a tip on how to ensure your source code is available for download in the future.该文章还为您提供了有关如何确保您的源代码将来可供下载的提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 python 从 google-cloud-platform 下载我的数据? - how can i download my data from google-cloud-platform using python? Google云功能 - 我可以将来自不同GCP项目仓库的代码部署到云功能吗? - Google Cloud Functions - Can I deploy code from a different GCP project repo into a Cloud Function? 如何通过在云控制台上创建的服务帐户访问与我的client_email共享的Google工作表 - How can I access a google sheet shared with my client_email from the service account created on the cloud console 如何使用Buildout从源代码安装我的项目? - How can I install my project from source with Buildout? android如何下载google源码 - How to download google source code for android 如何从谷歌云存储桶下载文件? - How to download file from google cloud bucket? 如何在Python GAE中从检索到的Google云存储对象访问文件 - How can I access my file from a retrieved google cloud storage object in Python GAE 如何使用谷歌云控制台运行一个python项目 - how to use google cloud console to run a python project 从Scrapinghub下载项目的源代码 - Download project's source-code from Scrapinghub 如何使用python下载谷歌云平台上文件夹内的文件? - How can i download the files inside a folder on google cloud platform using python?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM