get_bucket unknown keyword location and my_location name error

Bug #1569523 reported by Felix Bünemann on 2016-04-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

There are two bugs in duplicity/backends/ of duplicity 0.7.07+bzr1206:

1) my_location is used instead of self.my_location causing:

NameError: global name 'my_location' is not defined

2) An unknown keyword argument location is passed to get_bucker (copy paste error from create_bucket)


The attached patch fixes both problems.

duplicity 0.7.07+bzr1206
Python 2.7.6
Ubuntu 14.04.4 LTS
boto 2.39.0
bucket in eu-central-1 location (requires AWS4 auth)

Backtrace of my_location name error:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1537, in <module>
  File "/usr/bin/duplicity", line 1531, in with_tempdir
  File "/usr/bin/duplicity", line 1369, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 1117, in ProcessCommandLine
    backup, local_pathname = set_backend(args[0], args[1])
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 1006, in set_backend
    globals.backend = backend.get_backend(bend)
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 223, in get_backend
    obj = get_backend_object(url_string)
  File "/usr/lib/python2.7/dist-packages/duplicity/", line 209, in get_backend_object
    return factory(pu)
  File "/usr/lib/python2.7/dist-packages/duplicity/backends/", line 166, in __init__
  File "/usr/lib/python2.7/dist-packages/duplicity/backends/", line 194, in resetConnection
NameError: global name 'my_location' is not defined

The unknown keyword error is in roughly the same location, so backtrace omitted.

Changed in duplicity:
status: New → Fix Released
milestone: none → 0.7.08
importance: Undecided → Medium

Thanks Kenneth, working fine in duplicity 0.7.07+bzr1207.

Changed in duplicity:
milestone: 0.7.08 →
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers