← Back to team overview

duplicity-team team mailing list archive

Re: [Question #255740]: Dropbox backend: global name 'rest' is not defined when changing app id and secret

 

Question #255740 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/255740

Description changed to:
Steps I did:

1. <code>curl -L http://code.launchpad.net/duplicity/0.6-series/0.6.24/+download/duplicity-0.6.24.tar.gz | tar xz</code>
2. `cd duplicity-0.6.24`
3. `vim duplicity/backends/dpbxbackend.py` and change the `APP_KEY` and `APP_SECRET` values.
4. `sudo checkinstall python setup.py install`

The error:

```
Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 1502, in <module>
    with_tempdir(main)
  File "/usr/local/bin/duplicity", line 1496, in with_tempdir
    fn()
  File "/usr/local/bin/duplicity", line 1329, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/duplicity/commandline.py", line 1059, in ProcessCommandLine
    backup, local_pathname = set_backend(args[0], args[1])
  File "/usr/local/lib/python2.7/dist-packages/duplicity/commandline.py", line 952, in set_backend
    globals.backend = backend.get_backend(bend)
  File "/usr/local/lib/python2.7/dist-packages/duplicity/backend.py", line 163, in get_backend
    return _backends[pu.scheme](pu)
  File "/usr/local/lib/python2.7/dist-packages/duplicity/backends/dpbxbackend.py", line 156, in __init__
    self.login()
  File "/usr/local/lib/python2.7/dist-packages/duplicity/backends/dpbxbackend.py", line 162, in login
    except rest.ErrorResponse, e:
NameError: global name 'rest' is not defined
```

-- 
You received this question notification because you are a member of
duplicity-team, which is an answer contact for Duplicity.