Unicode Encode Error

Bug #1319713 reported by SaGrLand
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Duplicity
Confirmed
Undecided
Unassigned
duplicity (Fedora)
Unknown
Unknown
duplicity (Gentoo Linux)
New
Undecided
Unassigned

Bug Description

Next encrypted full backup crashes (Fedora 20, duplicity-0.6.23-2.fc20.x86_64) with local de_DE.utf8:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1489, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1483, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1332, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1414, in do_backup
    globals.gpg_profile.passphrase = get_passphrase(1, action)
  File "/usr/bin/duplicity", line 168, in get_passphrase
    pass1 = getpass.getpass(_("GnuPG passphrase:")+" ")
  File "/usr/lib64/python2.7/getpass.py", line 83, in unix_getpass
    passwd = fallback_getpass(prompt, stream)
  File "/usr/lib64/python2.7/getpass.py", line 118, in fallback_getpass
    return _raw_input(prompt, stream)
  File "/usr/lib64/python2.7/getpass.py", line 128, in _raw_input
    prompt = str(prompt)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 10: ordinal not in range(128)

Revision history for this message
SaGrLand (sg-b) wrote :

After a downgrade to duplicity 0.6.21-1.fc20 everythink works fine.

Revision history for this message
chaoscommander (cc23) wrote :

This occurs on Gentoo Linux 3.10.17, too. As soon as the passphrase prompt appears, duplicity aborts with the above UnicodeEncodeError. Started happening after updating to duplicity 0.6.23-r1.

Changed in duplicity:
status: New → Confirmed
Revision history for this message
Vincent Rubiolo (vincent-libre) wrote :

Encountered the same issue on Fedora 20, with backups made using a French local (fr_FR.utf-8 probably). I confirm the downgrade fixed the issue for me.

Problematic versions:
deja-dup-30.0-1.fc20.x86_64
duplicity-0.6.24-2.fc20

downgraded to :
duplicity-0.6.21-1.fc20.x86_64
deja-dup-27.3.1-2.fc20.x86_64

Revision history for this message
Vincent Rubiolo (vincent-libre) wrote :

s/fixed the issue/allowed to work around the issue/

Attached capture of the backtrace I had in my case.

Revision history for this message
Tomáš Moravec (otoman100) wrote :

Please fix this bug...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.