[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] duplicity broken after upgrade to v0.5.06
From: |
Kenneth Loafman |
Subject: |
Re: [Duplicity-talk] duplicity broken after upgrade to v0.5.06 |
Date: |
Fri, 30 Jan 2009 07:26:55 -0600 |
User-agent: |
Thunderbird 2.0.0.19 (X11/20090105) |
Stefan Hoth wrote:
> Hi again,
>
> Kennon Ballou wrote:
>> Someone already commented on this; apparently it's been fixed in the
>> source tree, and you can ignore it for now - apparently it has to do
>> with an older version of python.
>
> I'd love to ignore it but sadly a wrapper script called ftplicity which
> is relying on duplicity stopped working, too.
>
> ~#:ftplicity fullserver cleanup --force > /dev/null;
> Traceback (most recent call last):
> File "/usr/bin/duplicity", line 583, in ?
> with_tempdir(main)
> File "/usr/bin/duplicity", line 577, in with_tempdir
> fn()
> File "/usr/bin/duplicity", line 504, in main
> action = commandline.ProcessCommandLine(sys.argv[1:])
> File "/usr/lib/python2.4/site-packages/duplicity/commandline.py", line
> 519, in ProcessCommandLine
> globals.backend = backend.get_backend(args[0])
> File "/usr/lib/python2.4/site-packages/duplicity/backend.py", line 93,
> in get_backend
> return _backends[pu.scheme](pu)
> File
> "/usr/lib/python2.4/site-packages/duplicity/backends/ftpbackend.py",
> line 58, in __init__
> log.ErrorCode.ftp_ncftp_v320)
> AttributeError: class ErrorCode has no attribute 'ftp_ncftp_v320'
The error can be fixed with the attached patch, however, it will then
tell you that NcFTP 3.2.0 is not usable by duplicity. The ncftpput
command we use with both -f and -C options fails. All other versions
past 3.1.9 work correctly.
...Ken
Index: duplicity/log.py
===================================================================
RCS file: /sources/duplicity/duplicity/duplicity/log.py,v
retrieving revision 1.20
diff -u -r1.20 log.py
--- duplicity/log.py 27 Jan 2009 14:24:13 -0000 1.20
+++ duplicity/log.py 30 Jan 2009 13:17:11 -0000
@@ -156,7 +156,7 @@
boto_calling_format = 26
ftp_ncftp_missing = 27
ftp_ncftp_too_old = 28
- ftp_ncftp_ = 29
+ ftp_ncftp_v320 = 29
exception = 30
def FatalError(s, code, extra=None):
signature.asc
Description: OpenPGP digital signature