Google Cloud SDK安装-gsutil错误

时间:2018-10-25 13:35:07

标签: gcloud gsutil google-cloud-sdk

我已经安装了Google Cloud SDK,但是运行“ gsutil”时出现问题。这是我遇到的错误:

~/gcloud/google-cloud-sdk@> gsutil
Traceback (most recent call last):
  File "/Users/gonyi/Desktop/gonyyi/gcloud/google-cloud-sdk/bin/bootstrapping/gsutil.py", line 13, in <module>
    import bootstrapping
  File "/Users/gonyi/Desktop/gonyyi/gcloud/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 40, in <module>
    from googlecloudsdk.core import execution_utils
  File "/Users/gonyi/Desktop/gonyyi/gcloud/google-cloud-sdk/lib/googlecloudsdk/core/execution_utils.py", line 33, in <module>
    from googlecloudsdk.core import log
  File "/Users/gonyi/Desktop/gonyyi/gcloud/google-cloud-sdk/lib/googlecloudsdk/core/log.py", line 810, in <module>
    _log_manager = _LogManager()
  File "/Users/gonyi/Desktop/gonyyi/gcloud/google-cloud-sdk/lib/googlecloudsdk/core/log.py", line 526, in __init__
    self._file_formatter = _LogFileFormatter()
  File "/Users/gonyi/Desktop/gonyyi/gcloud/google-cloud-sdk/lib/googlecloudsdk/core/log.py", line 315, in __init__
    super(_LogFileFormatter, self).__init__(fmt=_LogFileFormatter.FORMAT)
TypeError: must be type, not classobj
~/gcloud/google-cloud-sdk@> 

我已经安装了Python 2.7,也尝试使用“酒桶”安装它,并直接从Google Cloud网站下载并安装,但也没有运气。

我用谷歌搜索了这个错误,但似乎我是唯一一个出现此错误的人。

“ gcloud”命令可以正常工作;但这只是“ gsutil”不起作用。

谢谢

0 个答案:

没有答案