Hey folks,
i tried to use rdiff-backup on the following PPC machine (rdiff-backup
and python from the ipkg repository at www.nslu2-linux.org):
[EMAIL PROTECTED]:~# python2.5 --version
Python 2.5.2
[EMAIL PROTECTED]:~# uname -a
Linux CubeStation 2.6.15 #462 Mon Apr 30 21:03:04 CST 2007 ppc GNU/Linux
[EMAIL PROTECTED]:~# rdiff-backup --version
rdiff-backup 1.2.0
(if you need more info here, just ask ;)
First, the following happened:
[EMAIL PROTECTED]:~# rdiff-backup-statistics
Traceback (most recent call last):
File "/opt/bin/rdiff-backup-statistics", line 446, in <module>
if __name__ == '__main__': Main()
File "/opt/bin/rdiff-backup-statistics", line 433, in Main
Time.setcurtime()
File "/opt/lib/python2.5/site-packages/rdiff_backup/time.py", line 42,
in setcurtime
t = curtime or time.time()
TypeError: 'module' object is not callable
I figured out to edit the import lines in Time.py from:
import time,types, re, sys, calendar
import Globals
to:
time = __import__('time')
import types, re, sys, calendar
import Globals
Then the command was successful:
[EMAIL PROTECTED]:~# rdiff-backup-statistics
Usage: /opt/bin/rdiff-backup-statistics [--begin-time <time>]
[--end-time <time>] [--minimum-ratio <float>] [--null-separator]
<backup-dir>
See the rdiff-backup-statistics man page for more information.
I don't know why this happens, can anyone explain this?
Regards,
Andreas
_______________________________________________
rdiff-backup-users mailing list at [email protected]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki