duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Duplicity-talk] Re: 0.6.07 -> TypeError: unsupported operand type(s) fo


From: Joel Carter
Subject: [Duplicity-talk] Re: 0.6.07 -> TypeError: unsupported operand type(s) for +:
Date: Mon, 15 Mar 2010 16:39:38 -0700

Hi there.

I'm getting something similar, shall I try the patch by Michael?

TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1236, in ?
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1229, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1115, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.4/site-packages/duplicity/commandline.py",
line 876, in ProcessCommandLine
    args = parse_cmdline_options(cmdline_list)
  File "/usr/lib/python2.4/site-packages/duplicity/commandline.py",
line 450, in parse_cmdline_options
    (options, args) = parser.parse_args()
  File "/var/tmp/python2.4-2.4-root/usr/lib/python2.4/optparse.py",
line 1275, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/var/tmp/python2.4-2.4-root/usr/lib/python2.4/optparse.py",
line 1315, in _process_args
    self._process_long_opt(rargs, values)
  File "/var/tmp/python2.4-2.4-root/usr/lib/python2.4/optparse.py",
line 1390, in _process_long_opt
    option.process(opt, value, values, self)
  File "/var/tmp/python2.4-2.4-root/usr/lib/python2.4/optparse.py",
line 702, in process
    value = self.convert_value(opt, value)
  File "/var/tmp/python2.4-2.4-root/usr/lib/python2.4/optparse.py",
line 694, in convert_value
    return self.check_value(opt, value)
  File "/var/tmp/python2.4-2.4-root/usr/lib/python2.4/optparse.py",
line 689, in check_value
    return checker(self, opt, value)
  File "/usr/lib/python2.4/site-packages/duplicity/commandline.py",
line 110, in check_time
    return dup_time.genstrtotime(value)
  File "/usr/lib/python2.4/site-packages/duplicity/dup_time.py", line
271, in genstrtotime
    return override_curtime - intstringtoseconds(timestr)

Here's my command-line:

duplicity --exclude-filelist /backup-excludes --full-if-older-than 1M
/ s3+http://duplicity.backups/server

Was working fine on 0.6.06 with this exact command-line. PASSPHRASE,
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY are all set appropriately.

Just removed the "--full-if-older-than 1M" and it seems to run fine so
there is definitely something in the date code that is causing the
problem.

Thanks for your help ahead of time!

Joel.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]