duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Dropbox backend: error on backup


From: Daniel Lo Nigro
Subject: Re: [Duplicity-talk] Dropbox backend: error on backup
Date: Sun, 6 Nov 2016 17:12:01 -0800

I just encountered the same issue. The reason is that there's some breaking changes in the Python Dropbox SDK v7.1 (see https://github.com/dropbox/dropbox-sdk-python/releases/tag/v7.1.0) and Duplicity hasn't been updated yet. You need to downgrade the Dropbox SDK by running:

pip install -I dropbox==6.9.0

I filed a bug report here: https://bugs.launchpad.net/duplicity/+bug/1639664

On Sat, Nov 5, 2016 at 11:44 AM, Richard McGraw via Duplicity-talk <address@hidden> wrote:
Hello,

I created an App folder access token.
collection-status succeeds, but backups fail:

Here is a Python traceback:

Writing duplicity-full.20161105T142636Z.vol1.difftar.gpg
Exception [expected request_binary as binary type, got <type 'file'>]:
| Traceback (most recent call last):
|   File
"/usr/lib/python2.7/dist-packages/duplicity/backends/dpbxbackend.py",
line 76, in wrapper |     return f(self, *args) |   File
"/usr/lib/python2.7/dist-packages/duplicity/backends/dpbxbackend.py",
line 186, in _put |     res_metadata = self.put_file_small(source_path,
remote_path) |   File
"/usr/lib/python2.7/dist-packages/duplicity/backends/dpbxbackend.py",
line 207, in put_file_small |     mute=True) |   File
"/usr/local/lib/python2.7/dist-packages/dropbox/base.py", line 1225, in
files_upload |     f, |   File
"/usr/local/lib/python2.7/dist-packages/dropbox/dropbox.py", line 249,
in request |     timeout=timeout) |   File
"/usr/local/lib/python2.7/dist-packages/dropbox/dropbox.py", line 341,
in request_json_string_with_retry |     timeout=timeout) |   File
"/usr/local/lib/python2.7/dist-packages/dropbox/dropbox.py", line 385,
in request_json_string |     type(request_binary)) | TypeError:
expected request_binary as binary type, got <type 'file'> dpbx code
error "expected request_binary as binary type, got <type 'file'>"
Attempt 4 failed. TypeError: expected request_binary as binary type,
got <type 'file'> Writing
duplicity-full.20161105T142636Z.vol1.difftar.gpg Exception [expected
request_binary as binary type, got <type 'file'>]: | Traceback (most
recent call last): |   File
"/usr/lib/python2.7/dist-packages/duplicity/backends/dpbxbackend.py",
line 76, in wrapper |     return f(self, *args) |   File
"/usr/lib/python2.7/dist-packages/duplicity/backends/dpbxbackend.py",
line 186, in _put |     res_metadata = self.put_file_small(source_path,
remote_path) |   File
"/usr/lib/python2.7/dist-packages/duplicity/backends/dpbxbackend.py",
line 207, in put_file_small |     mute=True) |   File
"/usr/local/lib/python2.7/dist-packages/dropbox/base.py", line 1225, in
files_upload |     f, |   File
"/usr/local/lib/python2.7/dist-packages/dropbox/dropbox.py", line 249,
in request |     timeout=timeout) |   File
"/usr/local/lib/python2.7/dist-packages/dropbox/dropbox.py", line 341,
in request_json_string_with_retry |     timeout=timeout) |   File
"/usr/local/lib/python2.7/dist-packages/dropbox/dropbox.py", line 385,
in request_json_string |     type(request_binary)) | TypeError:
expected request_binary as binary type, got <type 'file'> dpbx code
error "expected request_binary as binary type, got <type 'file'>"
Giving up after 5 attempts. TypeError: expected request_binary as
binary type, got <type 'file'>

Versions:
---------
Python 2.7.12
duplicity 0.7.10
dropbox package: 7.1.1
urrlib3: 1.19

Ubuntu 16.04

_______________________________________________
Duplicity-talk mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/duplicity-talk


reply via email to

[Prev in Thread] Current Thread [Next in Thread]