Google Cloud SDK gcloud错误 [英] Google Cloud SDK gcloud error
问题描述
我在Window 7 64bit下使用Google Cloud SDK。
Google Cloud SDK和python安装成功。并运行gcloud。
出现如下错误。
C:\ Program Files \Google\Cloud SDK> gcloud
Traceback(最近一次调用的最后一个):
文件C:\ Program Files \Google\Cloud SDK\google- cloud-sdk \\\\\ \\\ \\\ \\\\\\\\\\\\\\\\\\\\\\\'
模块>
_cli = CreateCLI()
文件C:\程序文件\Google\Cloud SDK\google-cloud-sdk\bin\..\。/ lib\googlecloudsdk \ gcloud\gcloud.py,第98行,在Cr
eateCLI
sdk_root = config.Paths()。sdk_root
AttributeError:'路径'对象没有属性'sdk_root'
可以寻求帮助吗?谢谢
我有同样的问题。这帮助我解决了这个问题。
$ b 手动删除的目录:C:\程序文件\Google\Cloud SDK
$ b $然后重新运行:GoogleCloudSDKInstaller.exe
并确保您有连接到所需的DL服务器(我首先落后于公司防火墙并且安装程序没有全部下载文件 - 也没有安装程序的抱怨...)
然后我再次确定..
来源: https:// code.google.com/p/google-cloud-sdk/issues/detail?id=62&thanks=62&ts=1407851956
I use Google Cloud SDK under Window 7 64bit. Google Cloud SDK and python install success. and run gcloud.
The error occurs as shown below.
C:\Program Files\Google\Cloud SDK>gcloud
Traceback (most recent call last):
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\gcloud\gcloud.py", line 137, in <
module>
_cli = CreateCLI()
File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin\..\./lib\googlecloudsdk\gcloud\gcloud.py", line 98, in Cr
eateCLI
sdk_root = config.Paths().sdk_root
AttributeError: 'Paths' object has no attribute 'sdk_root'
Can ask for help? Thanks
I had the same problem. And this helped me solve this problem
Manually removed directory: C:\Program Files\Google\Cloud SDK
Then rerun: GoogleCloudSDKInstaller.exe
And make sure that you have connection to needed DL servers (I was first behind company firewall and installer didn't download all files - and no complains either by installer...)
Then I was OK again..
Source: https://code.google.com/p/google-cloud-sdk/issues/detail?id=62&thanks=62&ts=1407851956
这篇关于Google Cloud SDK gcloud错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!