webdavbackend.py: expected bytes-like object, not str
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
A long running script now returns an error. It seems to be that webdavbackend.py does not conform to newest Python standards. I am using duplicity 8.04. My webdav user name is '<email address hidden>' - entering in Bash with double quotes worked until now, now I entered michael.
duplicity $version ($reldate)
Args: /usr/bin/duplicity --verbosity debug --volsize=100 /home/mhaelsig/
Linux Debian9 5.2.0-2-amd64 #1 SMP Debian 5.2.9-2 (2019-08-21) x86_64
/usr/bin/python3 3.7.4+ (default, Sep 4 2019, 08:03:05)
[GCC 9.2.1 20190827]
=======
Temporäres Verzeichnis /tmp/duplicity-
(mkstemp) temporäre Datei /tmp/duplicity-
9445765120 temporärer Speicherplatz ist verfügbar, die Sicherung wird ungefähr 136314880 nutzen.
WebDAV erzeugt eine Verbindung unter 'sd2dav.1und1.de'
WebDAV PROPFIND /Test/ Anfrage mit Headern: {'Connection': 'keep-alive', 'Depth': '1'}
WebDAV Datenlänge: 95
WebDAV Antwortstatus 401 mit dem Grund 'Unauthorized'.
Rückverfolgung des vorangegangenen Fehlers: Traceback (innermost last):
File "/usr/lib/
return fn(self, *args)
File "/usr/lib/
return [tobytes(x) for x in self.backend.
File "/usr/lib/
raise e
File "/usr/lib/
response = self.request(
File "/usr/lib/
self.
File "/usr/lib/
return self.get_
File "/usr/lib/
return u'Basic %s' % base64.
File "/usr/lib/
return encodebytes(s)
File "/usr/lib/
_input_
File "/usr/lib/
raise TypeError(msg) from err
TypeError: expected bytes-like object, not str
Changed in duplicity: | |
importance: | Undecided → Medium |
milestone: | none → 0.8.05 |
status: | New → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
As I'm currently also facing this problem while restoring my data could you update the official repositories to version 0.8.05 or higher?
In the mean time how do I update duplicity to a version that's not in the official repositories for Ubuntu?
Thanks for maintaing the project. Your help is greatly appreciated.