Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657466 - >=app-backup/duplicity-0.7.15 - BackendException: B2 backend requires B2 Python APIs (pip install b2)
Summary: >=app-backup/duplicity-0.7.15 - BackendException: B2 backend requires B2 Pyth...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Freeman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-06 15:38 UTC by Marco DR
Modified: 2020-08-28 08:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
b2 ebuild (b2-1.1.0.ebuild,1000 bytes, text/plain)
2018-06-17 20:46 UTC, William Pettersson
Details
b2sdk-1.1.4.ebuild (b2sdk-1.1.4-r1.ebuild,975 bytes, text/plain)
2020-08-28 08:35 UTC, William Pettersson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco DR 2018-06-06 15:38:18 UTC
Duplicity 0.7.15 and later fail if using the Backblaze B2 backend. This was tested with app-backup/duplicity-0.7.17.

duplicity was called with:
duplicity --encrypt-key ${SIGN_KEY} --volsize ${VOLSIZE} --max-blocksize=20480 ${sourcedir} b2://${ACCID}:${APPKEY}@${MACHINE}/${destdir}

The error message was:
BackendException: B2 backend requires B2 Python APIs (pip install b2)

The issue is due to a complete rewrite of the Backblaze backend which happened with duplicity-0.7.15. See upstream bug report: https://bugs.launchpad.net/duplicity/+bug/1654756

An ebuild for the python B2 package needs to be added, and added as a dependency to >=app-backup/duplicity-0.7.15.
Comment 1 William Pettersson 2018-06-17 20:46:35 UTC
Created attachment 536152 [details]
b2 ebuild

This is an ebuild for the b2 package. It's fairly simple, but does stop tests from being packaged correctly (issue raised with upstream), and also renames the b2 executable to b2_bb to avoid clashing with b2 from boost. It does need one out-of-tree ebuild for logfury, a python method-call-logging library. That's also trivial, I can upload that one here too if needed.
Comment 2 William Pettersson 2020-08-28 08:35:55 UTC
Created attachment 657274 [details]
b2sdk-1.1.4.ebuild

Seeing as people are finding this bug to use b2, here is an updated b2sdk ebuild, current for version 1.1.4. Note that documentation won't build - the final comment in the file lists a missing dependency that is required if the docs USE is enabled, but said package isn't in the tree at the moment.