How to fix «/usr/lib64/python2.7/site-packages/duplicity/ DeprecationWarning: BaseException.message has been deprecated as of Python 2.6» in Duplicity?


(Dmitry Fedyuk) #1

How to install Backupninja to CentOS?
(Dmitry Fedyuk) #2

I have replaced my /usr/lib64/python2.7/site-packages/duplicity/ with the latest version:, and then added the following method to it:

def ufn(filename):
    "Convert a (bytes) filename to unicode for printing"
    assert not isinstance(filename, unicode)
    return filename.decode(globals.fsencoding, 'replace')