I was able to track the problem down to one file in my home directory with a character that is not conforming to UTF-8. I believe the basic problem is that Linux file names can be made up from arbitrary bytes. Python tries to decode the binary bytes depending on the local encoding. Consequently, you need the same files AND locale configuration to reproduce the error. In my case, the filename contained a hex code F1 which is not valid UTF-8. The file is very old and is likely from a time when I used a different character encoding than UTF-8.
The general problem is described in PEP 383: http://www.python.org/dev/peps/pep-0383/ . PEP 383 also proposes a solution for Python 3 but not for Python 2. See also http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html for further insight in the general 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: 'utf8' codec can't decode byte 0xd1 in position 117 To manage notifications about this bug go to: https://bugs.launchpad.net/duplicity/+bug/989496/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
