Re: Daemon loses __file__ reference after a while

2012-07-24 Thread ivdn...@gmail.com
On Tuesday, July 24, 2012 2:29:19 PM UTC+2, Laszlo Nagy wrote: > On 2012-07-24 14:17, ivdn...@gmail.com wrote: > > Hello all, > > > > I have a deamon process that runs for some considerable time (weeks) > without any problems. At some point it starts throwing th

Re: Daemon loses __file__ reference after a while.

2012-07-24 Thread ivdn...@gmail.com
On Tuesday, July 24, 2012 2:24:31 PM UTC+2, Ervin Hegedüs wrote: > hello, > > On Tue, Jul 24, 2012 at 04:48:42AM -0700, ivdn...@gmail.com wrote: > > Hello, > > > > I have a daemon process that runs for a considerable amount of time > (weeks on end) without any p

Daemon loses __file__ reference after a while

2012-07-24 Thread ivdn...@gmail.com
Hello all, I have a deamon process that runs for some considerable time (weeks) without any problems. At some point it starts throwing the following exception: File "/some/path/scheduler.py", line 376, in applyrule result = execrule(rule_code) File "/some/path/scheduler.py", line 521, in

Daemon loses __file__ reference after a while.

2012-07-24 Thread ivdn...@gmail.com
Hello, I have a daemon process that runs for a considerable amount of time (weeks on end) without any problems. At some point I start getting the exception: Exception info: Traceback (most recent call last): File "scheduler.py", line 376, in applyrule result = execrule(rule_code) File "s

Re: unpickling derived LogRecord in python 2.7 from python2.6

2011-04-29 Thread ivdn...@gmail.com
On Apr 28, 9:22 am, Peter Otten <__pete...@web.de> wrote: > Vinay Sajip wrote: > > On Apr 27, 5:41 pm, Peter Otten <__pete...@web.de> wrote: > > >> The Problem is that as of Python 2.7logging.LogRecord has become a > >> newstyle class which is pickled/unpickled differently. I don't know if > >> the

unpickling derived LogRecord in python 2.7 from python2.6

2011-04-27 Thread ivdn...@gmail.com
Hello all, I have a service that runs in python 2.6.4. This service sends LogRecords to a log monitoring app on my workstation running python 2.7. The LogRecord class is derived: class LogRecord(logging.LogRecord): def __init__(self, name, level, fn, lno, user, hostname, msg, args, exc_info,