AttributeError: 'NoneType' object has no attribute 'encode'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Invalid
|
Medium
|
Unassigned |
Bug Description
Hello,
following situation:
i'm doing a backup with
duplicity v0.7.07.1 (0.7.07.
ubuntu 14.04 @ amd64
and using an remote SFTP(key-
When i start it in a bash-session, thus, in a reqular terminal, everything works fine.
Backup runs through, without any complains.
But when i try to start it with cron i get following error (@ log level debug):
-------
...
Running 'sftp -oServerAliveIn
State = sftp, Before = '<email address hidden>'s'
Backtrace of previous error: Traceback (innermost last):
File "/usr/lib/
return fn(self, *args)
File "/usr/lib/
return [tobytes(x) for x in self.backend.
File "/usr/lib/
l = self.run_
File "/usr/lib/
child.
File "/usr/lib/
n = self.send(s)
File "/usr/lib/
s = self._coerce_
File "/usr/lib/
return s.encode('utf-8')
AttributeError: 'NoneType' object has no attribute 'encode'
-------
This message repeats 5 times with an interval of about 10 seconds or so and then duplicity quits.
@log-level info the main error part shown is:
" AttributeError: 'NoneType' object has no attribute 'encode'"
Please see the full backup.log attached.
Thanks!
Changed in duplicity: | |
milestone: | 0.7.08 → none |
This sounds like either an older version of pexpect. Please run "sudo pip install --update pexpect" and try this again.