Hi all. When giving out a subprocess call (with subprocess.check_call) in any event's callback function, nox gives out the following error.
00003|reactor|ERR:Unhandled Error Traceback (most recent call last): --- <exception caught here> --- File "./nox/coreapps/pyrt/pyoxidereactor.py", line 85, in __call__ self.func(*self.args, **self.kw); File "./nox/coreapps/examples/pyswitch.py", line 110, in timer_callback subprocess.check_call('uname', shell=True) File "/usr/lib/python2.6/subprocess.py", line 483, in check_call retcode = call(*popenargs, **kwargs) File "/usr/lib/python2.6/subprocess.py", line 470, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.6/subprocess.py", line 1182, in wait pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0) File "/usr/lib/python2.6/subprocess.py", line 455, in _eintr_retry_call return func(*args) exceptions.TypeError: <lambda>() takes no arguments (2 given) In the sample case I put a line <subprocess.check_call('uname', shell=True)> in pyswitches timer_callback function. If I do the same in some simple python application using twisted reactor, there are no errors. Could someone explain why the error occurs and what is the reason for it? I mean, I can ignore this error with a try-catch sentence and everything seems ok, but am I then doing something that should not be done for some good reason. Thanks, Tapio Partti
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev