broken with newest pyrax

Bug #1283738 reported by Simao
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
New
Undecided
Unassigned

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>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1483, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1317, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 1027, in ProcessCommandLine
    globals.backend = backend.get_backend(args[0])
  File "/usr/lib/python2.7/dist-packages/duplicity/backend.py", line 162, in get_backend
    return _backends[pu.scheme](pu)
  File "/usr/lib/python2.7/dist-packages/duplicity/backends/_cf_pyrax.py", 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

Revision history for this message
Kevin C. (kedoc) wrote :

Hello,

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

Revision history for this message
Simao (simaomm) wrote :

@kevin

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

Revision history for this message
Kevin C. (kedoc) wrote :

@simaomm

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.

Revision history for this message
albundy83 (albundy83) wrote :

Hello,
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 (http://ftp.fr.debian.org/debian/pool/main/d/duplicity/duplicity_0.6.24-1_amd64.deb)
And now it works.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.