当我跑步时
$ s3cmd
我得到了
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the following lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Problem: ValueError: incomplete format
S3cmd: 1.0.1
Traceback (most recent call last):
File "/usr/bin/s3cmd", line 2006, in <module>
main()
File "/usr/bin/s3cmd", line 1795, in main
cfg = Config(options.config)
File "/usr/lib/python2.7/site-packages/S3/Config.py", line 88, in __init__
self.read_config_file(configfile)
File "/usr/lib/python2.7/site-packages/S3/Config.py", line 105, in read_config_file
cp = ConfigParser(configfile)
File "/usr/lib/python2.7/site-packages/S3/Config.py", line 142, in __init__
self.parse_file(file, sections)
File "/usr/lib/python2.7/site-packages/S3/Config.py", line 170, in parse_file
print_value = (data["value"][:2]+"...%d_chars..."+data["value"][-1:]) % (len(data["value"]) - 3)
ValueError: incomplete format
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the above lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
任何人的想法??
答案 0 :(得分:1)
我发现了问题所在。
我正在s3cmd --config
s3cmd要求我为GPG设置加密的密码/密码
$ s3cmd --configure
...
Encryption password is used to protect your files from reading
by unauthorized persons while in transfer to S3
Encryption password
我设置了非常强大的密码,包括非A-Z字符(如%
)。 s3cmd --configure
没有逃脱这些字符,因此我的配置文件生成如下:
cat ~/.s3cfg
...
gpg_passphrase = examplepassword123%%
...
如果其他人有这种问题:要解决此问题,请删除s3cmd配置文件并再次运行配置并设置密码/ passpraze与a-z A-Z 0-9仅限字符
rm ~/.s3cfg
s3cmd --configure