[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] [Bug] In Time.py, import right time module.
From: |
Andreas Neiser |
Subject: |
[rdiff-backup-users] [Bug] In Time.py, import right time module. |
Date: |
Fri, 05 Sep 2008 13:48:45 +0200 |
User-agent: |
Thunderbird (address@hidden) Mnenhy/0.7.5.666 |
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):
address@hidden:~# python2.5 --version
Python 2.5.2
address@hidden:~# uname -a
Linux CubeStation 2.6.15 #462 Mon Apr 30 21:03:04 CST 2007 ppc GNU/Linux
address@hidden:~# rdiff-backup --version
rdiff-backup 1.2.0
(if you need more info here, just ask ;)
First, the following happened:
address@hidden:~# 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:
address@hidden:~# 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