当尝试使用Duplicity备份到CloudFiles时,我收到以下输出:
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1494, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1488, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1322, in main
action = commandline.ProcessCommandLine(sys.argv[1:])
File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 1036, in ProcessCommandLine
backup, local_pathname = set_backend(args[0], args[1])
File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 929, in set_backend
globals.backend = backend.get_backend(bend)
File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 163, in get_backend
return _backends[pu.scheme](pu)
File "/usr/lib/python2.7/dist-packages/duplicity/backends/_cf_pyrax.py", line 67, in __init__
% (e.__class__.__name__, util.uexc(e)),
NameError: global name 'util' is not defined
我使用的是Linux Mint 17,并遵循以下指南:http://gsusmonzon.blogspot.co.uk/2013/07/backup-with-duplicity-and-rackspace.html
替换了文件/usr/lib/python2.7/dist-packages/duplicity/backends/_cf_pirax.py中第67行的错误
% (e.__class__.__name__, util.uexc(e)),
带有:
% (e.__class__.__name__, duplicity.util.uexc(e))
pip-install-pyrax没有安装最新版本,所以我运行了以下命令:
pip install --upgrade git+git://github.com/rackspace/pyrax.git
现在一切正常。