[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
That more recent error (the one with Backup Statistics in its crash report) is bug 1286845. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
deja-dup_30.0-0ubuntu4 (trusty) duplicity_0.6.23-1ubuntu2 (trusty) Traceback (most recent call last): File /usr/bin/duplicity, line 1493, in module with_tempdir(main) File /usr/bin/duplicity, line 1487, in with_tempdir fn() File /usr/bin/duplicity, line 1336, in main do_backup(action) File /usr/bin/duplicity, line 1457, in do_backup full_backup(col_stats) File /usr/bin/duplicity, line 564, in full_backup print_statistics(diffdir.stats, bytes_written) File /usr/bin/duplicity, line 594, in print_statistics print diffdir.stats.get_stats_logstring(_(Backup Statistics)) UnicodeEncodeError: 'ascii' codec can't encode characters in position 16-25: ordinal not in range(128) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
** Changed in: duplicity Milestone: None = 0.6.23 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
** Changed in: duplicity Importance: Undecided = Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
Woops, I wrote my remarks in the middle of the log. The previous comment should have started with: When doing a different backup to an external drive, I got an error which was not present before: duplicity incremental ~/ -v Info --exclude ~/... [skipped] file:///run/media/milan/SOMETHING --allow-source-mismatch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
Utilisation du répertoire d’archive : /home/milan/.cache/duplicity/e5f4f9b85e256f59787be25a63b7fdbf Utilisation du nom de sauvegarde : e5f4f9b85e256f59787be25a63b7fdbf Import of duplicity.backends.cfbackend Succeeded Import of duplicity.backends.dpbxbackend Failed: No module named dropbox Import of duplicity.backends.botobackend Succeeded Import of duplicity.backends.ftpbackend Succeeded Import of duplicity.backends.hsibackend Succeeded Import of duplicity.backends.imapbackend Succeeded Import of duplicity.backends.localbackend Succeeded Import of duplicity.backends.rsyncbackend Succeeded Import of duplicity.backends.sshbackend Succeeded Import of duplicity.backends.tahoebackend Succeeded Import of duplicity.backends.webdavbackend Succeeded Import of duplicity.backends.ftpsbackend Succeeded Import of duplicity.backends.gdocsbackend Succeeded Import of duplicity.backends.megabackend Succeeded Import of duplicity.backends.swiftbackend Succeeded When doing a different backup to an external drive, I got an error which was not present before: duplicity incremental ~/ -v Info --exclude ~/... [skipped] file:///run/media/milan/SOMETHING --allow-source-mismatch Import of duplicity.backends.u1backend Succeeded Main action: inc duplicity $version ($reldate) Using temporary directory /tmp/duplicity-LmaRwW-tempdir Traceback (most recent call last): File /home/milan/Dev/duplicity-encoding/bin/duplicity, line 1470, in module with_tempdir(main) File /home/milan/Dev/duplicity-encoding/bin/duplicity, line 1463, in with_tempdir fn() File /home/milan/Dev/duplicity-encoding/bin/duplicity, line 1334, in main log_startup_parms(log.INFO) File /home/milan/Dev/duplicity-encoding/bin/duplicity, line 1223, in log_startup_parms log.Log(uArgs: %s % (' '.join(sys.argv),), verbosity) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 264: ordinal not in range(128) Cmmenting out the line was enough to fix the problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
...and when passing a path with spaces, like file:///run/media/milan/TOSHIBA\ EXT/, I get: Command line error : Expected 2 args, got 3 Looks like the path is split into two arguments. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
Great, now it works -- at least it fixes the crash I fixed with my quick patch (and most probably much better). (Sorry for missing the relevant gettext lines in the commit.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
Hey, thanks for working on this! ;-) Unfortunately, with your branch I get a crash directly on start (FWIW, I've only built duplicity in-tree, and not installed it). $ bin/duplicity --help Traceback (most recent call last): File bin/duplicity, line 1470, in module with_tempdir(main) File bin/duplicity, line 1463, in with_tempdir fn() File bin/duplicity, line 1316, in main action = commandline.ProcessCommandLine(sys.argv[1:]) File /home/milan/Dev/duplicity/duplicity/commandline.py, line 999, in ProcessCommandLine args = parse_cmdline_options(cmdline_list) File /home/milan/Dev/duplicity/duplicity/commandline.py, line 560, in parse_cmdline_options (options, args) = parser.parse_args() File /usr/lib64/python2.7/optparse.py, line 1399, in parse_args stop = self._process_args(largs, rargs, values) File /usr/lib64/python2.7/optparse.py, line 1439, in _process_args self._process_long_opt(rargs, values) File /usr/lib64/python2.7/optparse.py, line 1514, in _process_long_opt option.process(opt, value, values, self) File /usr/lib64/python2.7/optparse.py, line 788, in process self.action, self.dest, opt, value, values, parser) File /home/milan/Dev/duplicity/duplicity/commandline.py, line 171, in take_action self, action, dest, opt, value, values, parser) File /usr/lib64/python2.7/optparse.py, line 810, in take_action parser.print_help() File /home/milan/Dev/duplicity/duplicity/commandline.py, line 198, in print_help file.write(self.format_help().decode('utf-8').encode(encoding, replace)) File /usr/lib64/python2.7/encodings/utf_8.py, line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1997: ordinal not in range(128) I think you can replicate the problem by using the fr_FR.utf8 locale. with LC_ALL=C I don't get the problem at all. Have you considered the following change? I don't know anything about gettext with Python, but this guy seems to have strong feelings about it. http://www.wefearchange.org/2012/06/the-right-way-to-internationalize-your.html diff -u duplicity/__init__.py /usr/lib64/python2.7/site-packages/duplicity/__init__.py --- duplicity/__init__.py 2013-08-08 11:15:50.648693111 +0200 +++ /usr/lib64/python2.7/site-packages/duplicity/__init__.py2013-08-07 23:20:59.716631994 +0200 @@ -20,4 +20,4 @@ # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import gettext -gettext.install('duplicity', codeset='utf8') +gettext.install('duplicity', codeset='utf8', unicode=True, names='ngettext') -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
Milan, thanks for testing! I've updated the branch to fix that issue. Can you try again? You'll see that I do fix the gettext.install() line in duplicity/__init__.py, but slightly differently than you suggest (I avoid using the names= argument, because that only appeared in python 2.5; but I achieve the same result another way). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
For those experiencing the 'ascii code can't encode character' issue, I'm curious if lp:~mterry/duplicity/encoding solves the problem for you. Please report back. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
I think I have found a fix. The bug does not happen only with invalid UTF-8 filenames, you simply need UTF-8 filenames and a UTF-8 locale. For example, in collections.py:810, there is: log.Debug(_(File %s is not part of a known set; creating new set) % (filename,)) On my system, when this fails (see error below), the _() string is a str object encoded in UTF-8; filename is a unicode object. The error below happens while Python encodes filename into an ASCII str object. If the _() string is a unicode object too, no encoding into a str object happens at this stage, and everything works. This can be achieved by setting gettext up differently in __init__.py, by passing unicode=True to gettext.install(). This is the solution recommended by the author of gettext for Python: http://www.wefearchange.org/2012/06/the-right-way-to-internationalize-your.html This change requires a few modifications in other places so that only unicode strings are passed to the logger. I'm attaching a diff of quick and dirty changes I applied to demonstrate the idea. Any chance to get some attention for this bug? This makes duplicity completely unusable on my system for more than a year. This is with duplicity 0.6.21 on Fedora 19. Traceback (most recent call last): File /usr/bin/duplicity, line 1411, in module with_tempdir(main) File /usr/bin/duplicity, line 1404, in with_tempdir fn() File /usr/bin/duplicity, line 1257, in main action = commandline.ProcessCommandLine(sys.argv[1:]) File /usr/lib64/python2.7/site-packages/duplicity/commandline.py, line 981, in ProcessCommandLine args = parse_cmdline_options(cmdline_list) File /usr/lib64/python2.7/site-packages/duplicity/commandline.py, line 644, in parse_cmdline_options log.Info(_(Using archive dir: %s) % (globals.archive_dir.name,)) File /usr/lib64/python2.7/site-packages/duplicity/log.py, line 106, in Info Log(s, INFO, code, extra) File /usr/lib64/python2.7/site-packages/duplicity/log.py, line 74, in Log _logger.log(DupToLoggerLevel(verb_level), s.decode(utf8, ignore)) File /usr/lib64/python2.7/encodings/utf_8.py, line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 16: ordinal not in range(128) ** Patch added: duplicity.patch https://bugs.launchpad.net/ubuntu/+source/duplicity/+bug/989496/+attachment/3764630/+files/duplicity.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
I also get this error doing a backup to webdav Filenames have not strange characters in names (although my LOCALE is es_ES.UTF-8) Traceback (most recent call last): File /usr/bin/duplicity, line 1411, in module with_tempdir(main) File /usr/bin/duplicity, line 1404, in with_tempdir fn() File /usr/bin/duplicity, line 1374, in main full_backup(col_stats) File /usr/bin/duplicity, line 521, in full_backup col_stats.set_values(sig_chain_warning=None) File /usr/lib/python2.7/dist-packages/duplicity/collections.py, line 693, in set_values self.get_backup_chains(partials + backend_filename_list) File /usr/lib/python2.7/dist-packages/duplicity/collections.py, line 816, in get_backup_chains map(add_to_sets, filename_list) File /usr/lib/python2.7/dist-packages/duplicity/collections.py, line 815, in add_to_sets log.Debug(_(Ignoring file (rejected by backup set) '%s') % filename) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in range(128) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
I changed the line (/usr/lib/python2.7/dist- packages/duplicity/collections.py): log.Debug(_(Ignoring file (rejected by backup set) '%s') % filename) to this: print Ignoring file (rejected by backup set, filename and backups now work perfect! So It seems debugs is the only part affected (?) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
deja-dup 24.0 is still affected by this broblem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
0.6.20-2 is still affected by this problem, at least using the fr_CA.utf8 locale. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
i've dug into this a bit more deeply and found an explanation for the logging gotchas under certain locales: as per the python wiki (http://web.archive.org/web/20120425192131/http://wiki.python.org/moin/UnicodeEncodeError) when you run somestring.decode(whicheverencoding) python2 does weird encode-and-then-decode things if your somestring is already unicode. log.py uses s.decode('utf8',ignore) - which fails to ignore errors on some locales (apparently in the down-EN-coding step before the decode...). check out the attached test script, which contains an iso8859 string to log. if you run it (at least under python 2.6) with LC_CTYPE=anything utf8 or plain C/POSIX then it works fine. if your CTYPE is iso88591, then the first decode of x works but the second decode fails, and we get the ascii can't encode complaint. i've just changed the debian version (0.6.20-2) to do the decode in log.py conditionally: _logger.log(DupToLoggerLevel(verb_level), s if (isinstance(s,unicode)) else s.decode(utf8, ignore)) regards, az ** Attachment added: test script for the decode-ascii-issue https://bugs.launchpad.net/ubuntu/+source/duplicity/+bug/989496/+attachment/3483743/+files/dreck.py -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
I'm runnin ubuntu 12.04 with duplicity 0.6.20(but had same error with duplicity 0.6.18 and 0.6.19) and had same problem. I do backups on webdav. duplicity --include-globbing-filelist /etc/backup-files.txt / webdavs://login:p...@webdav.yandex.ru/Bakeups/nightserv/ Чтение подстановочного списка файлов /etc/backup-files.txt Локальные и удалённые метаданные синхронизированы, синхронизация не требуется. Время последней полной резервной копии: нету Сигнатуры не найдены, переключение на полную резервную копию. Traceback (most recent call last): File /usr/bin/duplicity, line 1403, in module with_tempdir(main) File /usr/bin/duplicity, line 1396, in with_tempdir fn() File /usr/bin/duplicity, line 1371, in main full_backup(col_stats) File /usr/bin/duplicity, line 513, in full_backup col_stats.set_values(sig_chain_warning=None) File /usr/lib/python2.7/dist-packages/duplicity/collections.py, line 698, in set_values self.get_backup_chains(partials + backend_filename_list) File /usr/lib/python2.7/dist-packages/duplicity/collections.py, line 821, in get_backup_chains map(add_to_sets, filename_list) File /usr/lib/python2.7/dist-packages/duplicity/collections.py, line 815, in add_to_sets log.Debug(_(File %s is not part of a known set; creating new set) % (filename,)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 3: ordinal not in range(128) But with LANG=C it works pretty well: LANG=C duplicity --include-globbing-filelist /etc/backup-files.txt / webdavs://login:p...@webdav.yandex.ru/Bakeups/nightserv/ Reading globbing filelist /etc/backup-files.txt Local and Remote metadata are synchronized, no sync needed. Last full backup date: none No signatures found, switching to full backup. --[ Backup Statistics ]-- StartTime 1358088013.80 (Sun Jan 13 18:40:13 2013) EndTime 1358088057.13 (Sun Jan 13 18:40:57 2013) ElapsedTime 43.32 (43.32 seconds) SourceFiles 3127 SourceFileSize 58626935 (55.9 MB) NewFiles 3127 NewFileSize 58626935 (55.9 MB) DeletedFiles 0 ChangedFiles 0 ChangedFileSize 0 (0 bytes) ChangedDeltaSize 0 (0 bytes) DeltaEntries 3127 RawDeltaSize 57059559 (54.4 MB) TotalDestinationSizeChange 46463663 (44.3 MB) Errors 0 - My locales: locale LANG=ru_RU.UTF-8 LANGUAGE= LC_CTYPE=ru_RU.UTF-8 LC_NUMERIC=ru_RU.UTF-8 LC_TIME=ru_RU.UTF-8 LC_COLLATE=ru_RU.UTF-8 LC_MONETARY=ru_RU.UTF-8 LC_MESSAGES=ru_RU.UTF-8 LC_PAPER=ru_RU.UTF-8 LC_NAME=ru_RU.UTF-8 LC_ADDRESS=ru_RU.UTF-8 LC_TELEPHONE=ru_RU.UTF-8 LC_MEASUREMENT=ru_RU.UTF-8 LC_IDENTIFICATION=ru_RU.UTF-8 LC_ALL= So, bug still here, at least in 0.6.20. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
Oleg, you may be talking about bug 1080423. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
Michael, there is a difference, I use webdav instead ubuntu one. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
For those of you using Ubuntu One and still experiencing this error, see bug 1080423. It's a bug in duplicity's Ubuntu One backend where it returns unicode instead of utf8. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
** Changed in: hundredpapercuts Status: Triaged = Fix Released ** Changed in: duplicity Status: Fix Committed = Fix Released ** Changed in: duplicity (Ubuntu) Status: Triaged = Fix Released ** Changed in: hundredpapercuts Milestone: raring-misc = None -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
According to comment #30 this bug is fixed. The remaining issues are being tracked in bug #1050509 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
How about inform the offending filename in the error message until a suitable fix is written? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
** Changed in: hundredpapercuts Status: Fix Released = Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
Hello, this is still not working for me after upgrading to 12.10 and Deja-dup 24.0. I got the same error message as with the previous versions : Traceback (most recent call last): File /usr/bin/duplicity, line 1404, in module with_tempdir(main) File /usr/bin/duplicity, line 1397, in with_tempdir fn() File /usr/bin/duplicity, line 1277, in main globals.archive_dir).set_values() File /usr/lib/python2.7/dist-packages/duplicity/collections.py, line 691, in set_values self.get_backup_chains(partials + backend_filename_list) File /usr/lib/python2.7/dist-packages/duplicity/collections.py, line 814, in get_backup_chains map(add_to_sets, filename_list) File /usr/lib/python2.7/dist-packages/duplicity/collections.py, line 808, in add_to_sets log.Debug(_(File %s is not part of a known set; creating new set) % (filename,)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 23: ordinal not in range(128) Any help would be appreciated on this. Thanks, Vv -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
** Changed in: hundredpapercuts Milestone: None = raring-misc -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
Ok, I have been using Deja-dup and not duplicity directly, and my Ubuntu backup routine was working before this bug appeared, and was broken. I updated yesterday, and this is now fixed for me. My backup just finished successfully, and i'm happy. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
It looks like the fix is incomplete. Russian locale, UTF-8 causes basically the same error here: log.Notice(_(Copying %s to local cache.) % fn) fn is a unicode string while _(Copying %s to local cache.) returns a str with utf-8 contents. And the value of fn is a unicode string causing the failure. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
Roman, if a filename isn't in utf8, that's bug 1050509. Can you repeat your comment there, and explain how you got unicode filenames? Your filesystem locale is utf16? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 989496] Re: UnicodeDecodeError during backup due to non-utf8 translation
This is fixed now, so marking done for hundredpapercuts. ** Changed in: hundredpapercuts Status: Confirmed = Fix Released ** Changed in: duplicity (Ubuntu) Assignee: Michael Terry (mterry) = (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989496 Title: UnicodeDecodeError during backup due to non-utf8 translation To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs