Windows 7x64专业版
gsutil错误:
C:\Users\Chris>gsutil.py ls
Failure: invalid literal for int() with base 10: ''.
我已根据安装gsutil doc验证了所有设置。
我做错了什么,或者安装文档出了什么问题需要更正以使其正常工作?
Python版本:2.7.4
修改 的
以下是gsutil调试开关的输出:
C:\>python C:\gsutil\gsutil -D ls
***************************** WARNING *****************************
*** You are running gsutil with debug output enabled.
*** Be aware that debug output includes authentication credentials.
*** Do not share (e.g., post to support forums) debug output
*** unless you have sanitized authentication tokens in the
*** output, or have revoked your credentials.
***************************** WARNING *****************************
Traceback (most recent call last):
File "C:\gsutil\gsutil", line 72, in <module>
gslib.__main__.main()
File "C:\gsutil\gslib\__main__.py", line 151, in main
command_runner.RunNamedCommand('ver')
File "C:\gsutil\gslib\command_runner.py", line 92, in RunNamedCommand
if self._MaybeCheckForAndOfferSoftwareUpdate(command_name, debug):
File "C:\gsutil\gslib\command_runner.py", line 160,
in_MaybeCheckForAndOfferSoftwareUpdate
last_checked_ts = int(f.readline())
ValueError: invalid literal for int() with base 10: ''
答案 0 :(得分:2)
您可以尝试使用以下方式运行gsutil:
python gsutil ls
(另外,看起来您将主gsutil脚本重命名为gsutil.py。虽然您当然欢迎您根据需要更改代码,但在寻求支持时,我们需要您将gsutil用作分布式,而无需重命名或其他修改。)
如果您在运行时仍遇到问题,请将以下输出发送给我们:
python gsutil -D ls
执行此操作时,请在输出中编辑“授权:”标题的值。
谢谢,
Mike Schwartz,谷歌云存储团队