UnicodeEncode error from "Backup Statistics"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned | ||
duplicity (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
When duplicity tries to do an incremental backup today it crashes with the following Traceback:
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
incremental
File "/usr/bin/
print_
File "/usr/bin/
print diffdir.
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 27: ordinal not in range(128)
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: duplicity 0.6.23-1ubuntu2
ProcVersionSign
Uname: Linux 3.13.0-14-generic x86_64
NonfreeKernelMo
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Mar 2 17:40:44 2014
InstallationDate: Installed on 2013-04-30 (305 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: duplicity
UpgradeStatus: Upgraded to trusty on 2014-01-14 (46 days ago)
Related branches
- duplicity-team: Pending requested
-
Diff: 46 lines (+8/-6)2 files modifiedbin/duplicity (+4/-3)
duplicity/commandline.py (+4/-3)
Changed in duplicity (Ubuntu): | |
status: | Incomplete → Confirmed |
summary: |
- Duplicity crashes with UnicodeEncode error + UnicodeEncode error from "Backup Statistics" |
Changed in duplicity: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
milestone: | none → 0.6.24 |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
Interesting. I can get that error by inserting a str() -- i.e. making that line like the following: stats.get_ stats_logstring (_("Backup Statistics")))
print str(diffdir.
But normally, it works for me. Your environment is UTF-8, so print should be able to print the unicode. And xterm seems able to handle it in my testing (didn't show unicode characters right, but it didn't die).
Do you have any ideas why your shell may not be able to handle unicode output? How are you running duplicity?