AttributeError: 'GPGError' object has no attribute 'decode'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
As of 0.7.15, I'm getting this traceback:
Traceback (innermost last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
check_
File "/usr/bin/
last_
File "/usr/lib/
remote_manifest = self.get_
File "/usr/lib/
(util.
File "/usr/lib/
return filename.
AttributeError: 'GPGError' object has no attribute 'decode'
I believe this is a regression caused by commit 1336, where a GPGError object is being passed to util.ufn.
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
I'm also experiencing this error.
My daily backup last succeeded yesterday with this environment:
Using installed duplicity version 0.7.14, python 2.7.12, gpg 1.4.20 (Home: ~/.gnupg), awk 'GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0)', grep 'grep (GNU grep) 2.25', bash '4.3.48(1)-release (x86_64- pc-linux- gnu)'.
My daily backup failed today with this environment:
Using installed duplicity version 0.7.15, python 2.7.12, gpg 1.4.20 (Home: ~/.gnupg), awk 'GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0)', grep 'grep (GNU grep) 2.25', bash '4.3.48(1)-release (x86_64- pc-linux- gnu)'.
I concur that this seems to be a regression introduced by something in 0.7.15.
Here is my traceback, which appears to match the original report:
Traceback (innermost last): duplicity" , line 1559, in <module> tempdir( main) duplicity" , line 1545, in with_tempdir duplicity" , line 1394, in main backup( action) duplicity" , line 1526, in do_backup last_manifest( col_stats) # not needed for full backup duplicity" , line 1228, in check_last_manifest backup_ set.check_ manifests( ) python2. 7/dist- packages/ duplicity/ collections. py", line 208, in check_manifests remote_ manifest( ) python2. 7/dist- packages/ duplicity/ collections. py", line 245, in get_remote_manifest ufn(self. remote_ manifest_ name), util.ufn(message))) python2. 7/dist- packages/ duplicity/ util.py" , line 63, in ufn decode( sys.getfilesyst emencoding( ), 'replace')
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
check_
File "/usr/bin/
last_
File "/usr/lib/
remote_manifest = self.get_
File "/usr/lib/
(util.
File "/usr/lib/
return filename.
AttributeError: 'GPGError' object has no attribute 'decode'
Thanks, everyone!