[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] 0.5.04 & log error
From: |
Michael Terry |
Subject: |
Re: [Duplicity-talk] 0.5.04 & log error |
Date: |
Sun, 28 Dec 2008 12:10:36 -0500 |
So this is also probably my fault. :-/
I don't get this on my system (which also has python 2.5), but I
remember when rewriting log.py to use python's logging support, I had
to work around an error somewhat like this (except I was passing in
too *many* arguments for pythons less than 2.5).
According to the python documentation
(http://docs.python.org/library/logging.html#logging.LogRecord), in
python 2.5, a new argument was added to the LogRecord.__init__
function, but it is optional. Duplicity does not pass in that option,
since it targets 2.3+. So it seems like in your python, it's not
optional? That would be crazy. Something else must be going on.
What is the exact python version you use? What distro?
I assume this worked in duplicity 0.5.03? I don't believe that bit of
code changed between 03 and 04.
-mt
On Sun, Dec 28, 2008 at 9:56 AM, Edgar Soldin <address@hidden> wrote:
> now i am stuck here ..
>
> address@hidden:~> _apps/duplicity-0.5.04/bin/duplicity --no-encryption
> ~/duplicity-0.4.1 file:///tmp/testbkp
> Traceback (most recent call last):
> File "_apps/duplicity-0.5.04/bin/duplicity", line 590, in <module>
> log.ErrorCode.exception, e.__class__.__name__)
> File "/srv/www/jamoke.net/_apps/duplicity-0.5.04/duplicity/log.py",
> line 162, in FatalError
> Log(s, ERROR, code, extra)
> File "/srv/www/jamoke.net/_apps/duplicity-0.5.04/duplicity/log.py",
> line 64, in Log
> _logger.log(DupToLoggerLevel(verb_level), s)
> File "/usr/lib/python2.5/logging/__init__.py", line 1053, in log
> apply(self._log, (level, msg, args), kwargs)
> File "/usr/lib/python2.5/logging/__init__.py", line 1097, in _log
> record = self.makeRecord(self.name, level, fn, lno, msg, args,
> exc_info, func, extra)
> File "/srv/www/jamoke.net/_apps/duplicity-0.5.04/duplicity/log.py",
> line 179, in makeRecord
> return DupLogRecord(self.controlLine, name, lvl, fn, lno, msg, args,
> exc_info)
> File "/srv/www/jamoke.net/_apps/duplicity-0.5.04/duplicity/log.py",
> line 170, in __init__
> logging.LogRecord.__init__(self, *args, **kwargs)
> TypeError: __init__() takes exactly 9 arguments (8 given)
>
> help :) .. ede
>
>
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/duplicity-talk
>
Re: [Duplicity-talk] 0.5.04 & log error, Kenneth Loafman, 2008/12/29