如何正确解决gsutil错误

时间:2014-06-08 04:12:08

标签: google-cloud-storage gsutil

我刚刚在OS X上安装了gsutil,完全遵循了Google的指令,并且在运行任何gsutil命令时看到以下格式的错误:

Traceback (most recent call last):
  File "/Users//gsutil/gsutil", line 22, in <module>
    gsutil.RunMain()
  File "/Users//gsutil/gsutil.py", line 101, in RunMain
    sys.exit(gslib.__main__.main())
  File "/Users//gsutil/gslib/__main__.py", line 175, in main
    command_runner = CommandRunner()
  File "/Users//gsutil/gslib/command_runner.py", line 107, in __init__
    self.command_map = self._LoadCommandMap()
  File "/Users//gsutil/gslib/command_runner.py", line 113, in _LoadCommandMap
    __import__('gslib.commands.%s' % module_name)
  File "/Users//gsutil/gslib/commands/disablelogging.py", line 16, in <module>
    from gslib.command import COMMAND_NAME
ImportError: cannot import name COMMAND_NAME

命令目录中的多个模块发生此错误。我唯一能解决这些错误的方法是从引用COMMAND_NAME的目录中删除以下模块:disablelogging,enablelogging,getacl,getcors,getdefacl,getlogging,setacl,setcors,setdefacl。

我在这里做对了吗?这是gsutil中的错误吗?

0 个答案:

没有答案