gpt4 book ai didi

google-compute-engine - 容器引擎 : AttributeError: 'module' object has no attribute 'Credentials'

转载 作者:行者123 更新时间:2023-12-01 14:00:25 25 4
gpt4 key购买 nike

我正在关注“hello wordpress”示例: https://cloud.google.com/container-engine/docs/tutorials/hello-wordpress , 但它停止于:

henrik_ormasen_gmail_com@k8s-test2-master:~$ gcloud alpha container kubectl create -f wordpress.json
Traceback (most recent call last):
File "/usr/local/bin/../share/google/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 209, in <module>
main()
File "/usr/local/bin/../share/google/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 205, in main
_cli.Execute()
File "/usr/local/bin/../share/google/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 537, in Execute
result = args.cmd_func(cli=self, args=args)
File "/usr/local/bin/../share/google/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 1073, in Run
last_group = context_filter(tool_context, Http, args)
File "/usr/local/bin/../share/google/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 458, in ContextFilter
group.Filter(context, args)
File "/usr/local/share/google/google-cloud-sdk/lib/googlecloudsdk/container/commands/__init__.py", line 61, in Filter
credentials=cli.Credentials(),
AttributeError: 'module' object has no attribute 'Credentials'
henrik_ormasen_gmail_com@k8s-test2-master:~$

我在运行大多数其他 kubectl 命令时也会遇到此错误。还有 gcloud alpha 容器集群创建

我也尝试过:gcloud auth login 没有帮助。我错过了什么?

henrik_ormasen_gmail_com@k8s-test2-master:~$ gcloud --version
Google Cloud SDK 0.9.61

alpha 2015.05.19
bq 2.0.18
bq-nix 2.0.18
compute 2015.05.19
core 2015.05.19
core-nix 2014.12.17
dns 2015.05.19
gcloud 2015.05.19
gcutil 1.16.5
gcutil-nix 1.16.5
gsutil 4.12
gsutil-nix 4.7
kubectl
kubectl-linux-x86_64 0.17.0
sql 2015.05.06

最佳答案

您的 gcloud 安装似乎以某种方式进入了部分更新状态。如果 gcloud components update 没有执行任何操作,请尝试 reinstalling .

关于google-compute-engine - 容器引擎 : AttributeError: 'module' object has no attribute 'Credentials' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30412735/

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