Package: duplicity
Version: 0.8.05-1
Followup-For: Bug #942593

The bug still exists in the new version, although in a slightly different form:
(during "duplicity full" command)
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 606, in 
_do_delete
    self.backend._delete(filename)
  File "/usr/lib/python3/dist-packages/duplicity/backends/b2backend.py", line 
138, in _delete
    log.Log(u"Delete: %s" % self.path + filename, log.INFO)
 TypeError: can only concatenate str (not "bytes") to str

In this case the problem is the use of filename in _delete.

>From my earlier investigation (which may be wrong, of course, as I am no 
>expert on either Python or this code),
I believe the following references also have to be "decoded", in addition to 
the changes already made:

In _get: the use of local_path.name
In _put: the use of source_path.name
In _delete: the two uses of filename
In _query: the two uses of filename

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_IE.utf8, LC_CTYPE=en_IE.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_IE.utf8), LANGUAGE=en_GB (charmap=UTF-8) (ignored: LC_ALL set to 
en_IE.utf8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages duplicity depends on:
ii  gnupg              2.2.17-3
ii  libc6              2.29-2
ii  librsync2          2.0.2-1
ii  python3            3.7.5-1
ii  python3-fasteners  0.12.0-5
ii  python3-future     0.16.0-1
ii  python3-lockfile   1:0.12.2-2

Versions of packages duplicity recommends:
ii  python3-oauthlib  2.1.0-2
ii  python3-paramiko  2.6.0-1
ii  python3-pexpect   4.6.0-1
ii  python3-urllib3   1.24.1-1
ii  rsync             3.1.3-8

Versions of packages duplicity suggests:
pn  lftp                 <none>
pn  ncftp                <none>
pn  par2                 <none>
pn  python3-boto         <none>
ii  python3-pip          18.1-5
pn  python3-swiftclient  <none>
pn  tahoe-lafs           <none>

-- no debconf information

Reply via email to