Ubuntu is currently shipping a broken version (0.8.04). That's the bug being reported.
This LP bugtracker tracks both duplicity and it's ubuntu packaging, right? On Thu, Jan 2, 2020 at 1:30 PM Kenneth Loafman <[email protected]> wrote: > This bug was fixed in rev 1344, current rev is 1533. > > It looks like a case where duplicity was updated manually, not even > running 'setup.py install' or purging the repo's duplicity. > > ** Changed in: duplicity > Status: In Progress => Invalid > > ** Changed in: duplicity > Milestone: 0.8.09 => None > > ** Changed in: duplicity > Assignee: Kenneth Loafman (kenneth-loafman) => (unassigned) > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1858072 > > Title: > Webdav is not python3 compatible > > Status in Duplicity: > Invalid > Status in duplicity package in Ubuntu: > New > > Bug description: > The webdav backend calls base64.encodestring, which > (counterintuitively) expects a bytes input in python3. > > > # duplicity incremental \ > --asynchronous-upload \ > --full-if-older-than 1M \ > -v 9 \ > --exclude='./Documents/google_drive/**' \ > --include='./src/**' \ > --exclude='**' \ > '.' \ > "$target_url" > Using archive dir: > /home/username/.cache/duplicity/74043f3f63750b8654c846cb69e2833f > Using backup name: 74043f3f63750b8654c846cb69e2833f > GPG binary is gpg, version (2, 2, 12) > Import of duplicity.backends.adbackend Succeeded > Import of duplicity.backends.azurebackend Succeeded > Import of duplicity.backends.b2backend Succeeded > Import of duplicity.backends.botobackend Succeeded > Import of duplicity.backends.cfbackend Succeeded > Import of duplicity.backends.dpbxbackend Succeeded > Import of duplicity.backends.gdocsbackend Succeeded > Import of duplicity.backends.giobackend Succeeded > Import of duplicity.backends.hsibackend Succeeded > Import of duplicity.backends.hubicbackend Succeeded > Import of duplicity.backends.imapbackend Succeeded > Import of duplicity.backends.jottacloudbackend Succeeded > Import of duplicity.backends.lftpbackend Succeeded > Import of duplicity.backends.localbackend Succeeded > Import of duplicity.backends.mediafirebackend Succeeded > Import of duplicity.backends.megabackend Succeeded > Import of duplicity.backends.multibackend Succeeded > Import of duplicity.backends.ncftpbackend Succeeded > Import of duplicity.backends.onedrivebackend Succeeded > Import of duplicity.backends.par2backend Succeeded > Import of duplicity.backends.pcabackend Succeeded > Import of duplicity.backends.pydrivebackend Succeeded > Import of duplicity.backends.rsyncbackend Succeeded > Import of duplicity.backends.ssh_paramiko_backend Succeeded > Import of duplicity.backends.ssh_pexpect_backend Succeeded > Import of duplicity.backends.swiftbackend Succeeded > Import of duplicity.backends.sxbackend Succeeded > Import of duplicity.backends.tahoebackend Succeeded > Import of duplicity.backends.webdavbackend Succeeded > Using WebDAV protocol http > Using WebDAV host REDACTED port None > Using WebDAV directory /webdav/backup/ > Main action: inc > Acquiring lockfile > b'/home/username/.cache/duplicity/74043f3f63750b8654c846cb69e2833f/lockfile' > > ================================================================================ > duplicity $version ($reldate) > Args: /usr/bin/duplicity incremental --asynchronous-upload > --full-if-older-than 1M -v 9 --exclude=./Documents/google_drive/** > --include=./src/** --exclude=** . webdavs://RED:ACT@ED/webdav/backup > Linux zenbook-k 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC > 2019 x86_64 x86_64 > /usr/bin/python3 3.7.5 (default, Nov 20 2019, 09:21:52) > [GCC 9.2.1 20191008] > > ================================================================================ > Using temporary directory /tmp/duplicity-7ypg8z7d-tempdir > Registering (mkstemp) temporary file > /tmp/duplicity-7ypg8z7d-tempdir/mkstemp-v33ewch5-1 > Temp has 50636972032 available, backup will use approx 482344960. > WebDAV create connection on 'REDACTED' > WebDAV PROPFIND /remote.php/webdav/backup/ request with headers: > {'Connection': 'keep-alive', 'Depth': '1'} > WebDAV data length: 95 > WebDAV response status 401 with reason 'Unauthorized'. > Backtrace of previous error: Traceback (innermost last): > File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 371, > in inner_retry > return fn(self, *args) > File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 580, > in list > return [tobytes(x) for x in self.backend._list()] > File > "/usr/lib/python3/dist-packages/duplicity/backends/webdavbackend.py", line > 343, in _list > raise e > File > "/usr/lib/python3/dist-packages/duplicity/backends/webdavbackend.py", line > 317, in _list > response = self.request(u"PROPFIND", self.directory, self.listbody) > File > "/usr/lib/python3/dist-packages/duplicity/backends/webdavbackend.py", line > 240, in request > self.headers[u'Authorization'] = self.get_authorization(response, > quoted_path) > File > "/usr/lib/python3/dist-packages/duplicity/backends/webdavbackend.py", line > 271, in get_authorization > return self.get_basic_authorization() > File > "/usr/lib/python3/dist-packages/duplicity/backends/webdavbackend.py", line > 291, in get_basic_authorization > return u'Basic %s' % base64.encodestring(auth_string).strip() > File "/usr/lib/python3.7/base64.py", line 540, in encodestring > return encodebytes(s) > File "/usr/lib/python3.7/base64.py", line 527, in encodebytes > _input_type_check(s) > File "/usr/lib/python3.7/base64.py", line 513, in _input_type_check > raise TypeError(msg) from err > TypeError: expected bytes-like object, not str > > Attempt 1 failed. TypeError: expected bytes-like object, not str > ^CReleasing lockfile > b'/home/username/.cache/duplicity/74043f3f63750b8654c846cb69e2833f/lockfile' > Removing still remembered temporary file > /tmp/duplicity-7ypg8z7d-tempdir/mkstemp-v33ewch5-1 > INT intercepted...exiting. > Releasing lockfile > b'/home/username/.cache/duplicity/74043f3f63750b8654c846cb69e2833f/lockfile' > Releasing lockfile > b'/home/username/.cache/duplicity/74043f3f63750b8654c846cb69e2833f/lockfile' > > ProblemType: Bug > DistroRelease: Ubuntu 19.10 > Package: duplicity 0.8.04-2ubuntu1 > ProcVersionSignature: Ubuntu 5.3.0-24.26-generic 5.3.10 > Uname: Linux 5.3.0-24-generic x86_64 > NonfreeKernelModules: nvidia_modeset nvidia > ApportVersion: 2.20.11-0ubuntu8.2 > Architecture: amd64 > CurrentDesktop: i3 > Date: Thu Jan 2 08:52:42 2020 > InstallationDate: Installed on 2018-05-26 (585 days ago) > InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 > (20180426) > SourcePackage: duplicity > UpgradeStatus: Upgraded to eoan on 2019-10-24 (69 days ago) > > To manage notifications about this bug go to: > https://bugs.launchpad.net/duplicity/+bug/1858072/+subscriptions > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1858072 Title: Webdav is not python3 compatible To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/1858072/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
