[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime
From: |
Christian Skarby |
Subject: |
Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime) |
Date: |
Tue, 11 Mar 2003 09:30:08 +0100 (CET) |
>>>>> "BE" == Ben Escoto <address@hidden>
BE> Is that file
BE> /backup/test/interhost/ace/.maildir-sent/cur/rdiff-backup.tmp.1980
BE> still around? If so you may want to try this manually:
BE>
BE> $ python
BE> Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
BE> [GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
BE> Type "help", "copyright", "credits" or "license" for more information.
BE> >>> import os, time
BE> >>>
BE>os.utime("/backup/test/interhost/ace/.maildir-sent/cur/rdiff-backup.tmp.1980",
BE> >>> (time.time(), 1038064008))
BE>
BE> and see if it works.
Thank you for looking at this :)
Here is something, somewhat strange that happened:
-----BEGIN test-----
# python
Python 2.2.2 (#1, Dec 16 2002, 02:51:47)
[GCC 3.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os,time
>>> os.utime("/backup/test/interhost/ace/.maildir-sent/cur/rdiff-backup.tmp.1980",
... (time.time(), 1038064008));
Traceback (most recent call last):
File "<stdin>", line 2, in ?
TypeError: utime() arg 2 must be a tuple (atime, mtime)
>>> quit
'Use Ctrl-D (i.e. EOF) to exit.'
>>>
# ls -al /backup/test/interhost/ace/.maildir-sent/cur/rdiff-backup.tmp.1980
-rw------- 1 ace interhost 272911897 Mar 10 14:39
/backup/test/interhost/ace/.maildir-sent/cur/rdiff-backup.tmp.1980
# python
Python 2.2.2 (#1, Dec 16 2002, 02:51:47)
[GCC 3.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print time.time();
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'time' is not defined
>>> import os,time
>>> print time.time();
1047370469.82
>>> print time.time();
1047370473.24
>>> print time.time();
1047370474.33
>>> print time.time();
1047370475.08
>>> os.utime("/backup/test/interhost/ace/.maildir-sent/cur/rdiff-backup.tmp.1980",
... (time.time(), 1038064008));
>>>
# ls -al /backup/test/interhost/ace/.maildir-sent/cur/rdiff-backup.tmp.1980
-rw------- 1 ace interhost 272911897 Nov 23 16:06
/backup/test/interhost/ace/.maildir-sent/cur/rdiff-backup.tmp.1980
-----END test-----
I am not sure what we see here, whereas it failed the first time, it
succeeds later.
Christian
- [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Christian Skarby, 2003/03/06
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Ben Escoto, 2003/03/06
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Christian Skarby, 2003/03/10
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Ben Escoto, 2003/03/10
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime),
Christian Skarby <=
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Ben Escoto, 2003/03/11
- Re: [rdiff-backup-users] TypeError: utime() arg 2 must be a tuple (atime, mtime), Christian Skarby, 2003/03/13