broken with newest pyrax

Bug #1283738 reported by Simao on 2014-02-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

After upgrading to duplicity 0.6.23-0ubuntu0ppa21~saucy1 cloudfiles support no longer works.

First it fails saying the `cf+http` backend requires `pyrax`:

    BackendException: This backend requires the pyrax library available from Rackspace.

After installing pyrax with `sudo pip install pyrax`, I get the following error:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1489, in <module>
  File "/usr/bin/duplicity", line 1483, in with_tempdir
  File "/usr/bin/duplicity", line 1317, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 1027, in ProcessCommandLine
    globals.backend = backend.get_backend(args[0])
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 162, in get_backend
    return _backends[pu.scheme](pu)
  File "/usr/lib/python2.7/dist-packages/duplicity/backends/", line 73, in __init__
    self.container = pyrax.cloudfiles.create_container(container)
AttributeError: 'NoneType' object has no attribute 'create_container'

Also, there is the `--cf-backend` option documented in the man page, but duplicity doesn't actually support it:

duplicity: error: no such option: --cf-backend

duplicity 0.6.23
Python 2.7.5+
Ubuntu 13.10

Kevin C. (kedoc) wrote :


Same issue here, with Ubuntu 14.04 LTS and also duplicity 0.6.23.

Simao (simaomm) wrote :


You need to define the CLOUDFILES_REGION environment variable to your cloudfiles region, in my case it's "LON"

Kevin C. (kedoc) wrote :


Thank you for your answer, but it did not change anything for me.

Actually I was a little tired when I posted my comment, my issue is different from yours: I do not have the Python error and the traceback, I only need to use the cloudfiles backend but pyrax is used instead and I have the error “no such option: --cf-backend” when I try to revert to the cloudfiles backend using the option specified in the manpage.

albundy83 (albundy83) wrote :

this option is available only in duplicity 0.6.24 and not in duplicity 0.6.23 even if it's written in CHANGELOG.
I'm under Ubuntu 14.04 and I have downloaded the version from debian SID (
And now it works.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers