容器引擎:AttributeError:'模块'对象没有属性'Credentials' [英] Container Engine: AttributeError: 'module' object has no attribute 'Credentials'

查看:86
本文介绍了容器引擎:AttributeError:'模块'对象没有属性'Credentials'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注"hello wordpress"示例: https://cloud.google.com/container-engine/docs/tutorials /hello-wordpress ,但以以下字符结尾:

I'm following the "hello wordpress" example: https://cloud.google.com/container-engine/docs/tutorials/hello-wordpress, but it stops with:

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 container clusters create

I also get this error running most other kubectl commands. And also gcloud alpha container clusters create

我也尝试过:gcloud auth login在没有帮助的情况下.我想念什么?

I've also tried: gcloud auth login without help. What are I missing?

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无效,请尝试重新安装.

It looks like your gcloud installation somehow got into a partially updated state. If gcloud components update doesn't do anything, try reinstalling.

这篇关于容器引擎:AttributeError:'模块'对象没有属性'Credentials'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆