Comment 24 for bug 989496

Revision history for this message
Andreas Klust (andreas.klust-deactivatedaccount) wrote : Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd1 in position 117

Hello Mace,

to find the file causing the trouble in my case, I added a few lines to the duplicity source code. The error message tells you the python source file and line number where the error occurs:

File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 187, in Iterate
    log.Debug(_("Selecting %s") % subpath.name)

I added the following lines just before the call to log.debug (line 187 in this example. You will have to adapt it a little depending on the exact error message and arguments passed to log.debug.):

dbgFile = open("/tmp/debug.log", 'a')
dbgFile.write("%s\n" % subpath.name)
dbgFile.close()

The last filename written to the log file /tmp/debug.log after duplicity fails is the one causing the trouble.