Dropbox support needs to be updated for Dropbox SDK v7.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The Python Dropbox SDK v7.1 has a breaking change that affects Duplicity:
> File upload endpoints no longer accept file-like objects. Only byte strings are allowed.
(see https:/
When trying to run Duplicity with Dropbox, if you have v7.1 or higher of the Dropbox SDK installed, the following error is thrown:
Error: Exception [expected request_binary as binary type, got <type 'file'>]:
Error: | Traceback (most recent call last):
Error: | File "/usr/lib/
Error: | return f(self, *args)
Error: | File "/usr/lib/
Error: | res_metadata = self.put_
Error: | File "/usr/lib/
Error: | mute=True)
Error: | File "/usr/local/
Error: | f,
Error: | File "/usr/local/
Error: | timeout=timeout)
Error: | File "/usr/local/
Error: | timeout=timeout)
Error: | File "/usr/local/
Error: | type(request_
For anyone encountering this error, you can run pip install -I dropbox==6.9.0 to downgrade to a compatible version of the Dropbox SDK.
Related branches
- duplicity-team: Pending requested
-
Diff: 43 lines (+16/-9)1 file modifiedduplicity/backends/dpbxbackend.py (+16/-9)
Changed in duplicity: | |
importance: | Undecided → Medium |
milestone: | none → 0.7.16 |
status: | New → In Progress |
Changed in duplicity: | |
status: | In Progress → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |