Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 453069 - Incremental backups are broken with python 2.3
Summary: Incremental backups are broken with python 2.3
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: duplicity
Version: el4
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2008-06-27 02:47 UTC by Nathan G. Grennan
Modified: 2008-06-28 09:21 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-06-28 09:21:25 UTC

Attachments (Terms of Use)
Patch to fix python 2.3 incompatibility (deleted)
2008-06-27 03:14 UTC, Nathan G. Grennan
no flags Details

Description Nathan G. Grennan 2008-06-27 02:47:39 UTC
Description of problem:
Duplicity claims compatibility with python 2.3, but then uses a function in a
way that only works in python 2.4. This breaks incremental backups.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install duplicity on a system with python 2.3, like CentOS 4
2. Run /usr/bin/duplicity incremental / scp://user@host//path
Actual results:
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 463, in ?
  File "/usr/bin/duplicity", line 458, in with_tempdir
  File "/usr/bin/duplicity", line 393, in main
    last_full_time = col_stats.get_last_full_backup_time()
  File "/usr/lib/python2.3/site-packages/duplicity/", line 769, in
    return self.get_nth_last_full_backup_time(1)
  File "/usr/lib/python2.3/site-packages/duplicity/", line 774, in
    chain = self.get_nth_last_backup_chain(n)
  File "/usr/lib/python2.3/site-packages/duplicity/", line 800, in
    key = lambda chain: chain.get_first().time)
TypeError: sort() takes no keyword arguments

Expected results:

Additional info:
The url below includes a patch that is supposed to fix this issue.

Comment 1 Nathan G. Grennan 2008-06-27 03:14:22 UTC
Created attachment 310408 [details]
Patch to fix python 2.3 incompatibility

I had trouble applying the patch from the mailing list. So I pulled it down
from cvs, and compared files. This patch is the result.

Comment 2 Nathan G. Grennan 2008-06-27 03:20:15 UTC
I added the patch to the 0.4.11-1 src.rpm, and compiled it. I think tested it in
the same case above where it broke, and it works.

Comment 3 Robert Scheck 2008-06-27 11:24:27 UTC
Thanks for pointing that out, I'll include the patch now.

Comment 4 Robert Scheck 2008-06-28 09:21:25 UTC
39427 (duplicity): Build on target fedora-4-epel succeeded. Build logs may be 
found at

As long the package is not in EPEL 4 testing repository, you can grab it from
the URL above. It should reach EPEL 4 testing at least on Monday.

Note You need to log in before you can comment on or make changes to this bug.