Hi Vjeko, I'm facing a similar issue. I recently upgraded twisted to 11.0 and found that an older (customized) version of nox crashes with the same error. Can you tell me to which class in '/usr/lib/python2.6/dist-packages/twisted/internet/base.py' should I add the _handleSigchld function?
Thanks, -- Nikhil On Fri, Aug 6, 2010 at 1:58 PM, Vjekoslav Brajkovic < bal...@cs.washington.edu> wrote: > Hi Tim! > > You are correct. After adding the following function definition to > '/usr/lib/python2.6/dist-packages/twisted/internet/base.py', the > problem seems to be gone. > > > -------------------------------------------------------------------------------- > def _handleSigchld(self, signum, frame, > _threadSupport=platform.supportsThreads()): > from twisted.internet.process import reapAllProcesses > if _threadSupport: > self.callFromThread(reapAllProcesses) > else: > self.callLater(0, reapAllProcesses) > > -------------------------------------------------------------------------------- > > Thanks a bunch! > Vjeko > > > On Fri, Aug 06, 2010 at 04:30:28PM -0400, tim.upthegr...@gatech.edu wrote: > > Hi Vjekoslav, > > > > I had this issue before after doing a fresh install on a Debian sid > machine using the openflow-1.0 branch. > > > > What I found is, the function _handleSigchld has been > moved-around/removed from more recent versions of TwistedPython. The fix I > found was to go grab Twisted 8.0 and install it. I haven't tested the > controller in a production setup yet, but the source compiles and I can run > a simple switch without getting any error messages. > > > > Give that a shot and see if it works. > > > > Best of luck, > > > > Tim Upthegrove > > Georgia Institute of Technology > > College of Computing > > (406)-437-1493 > > > > ----- "Vjekoslav Brajkovic" <bal...@cs.washington.edu> wrote: > > > > > Hello. > > > > > > After I upgraded my system, I've been having trouble starting NOX. > > > This is the error message: > > > > > > > -------------------------------------------------------------------------------- > > > 00002|nox|ERR:Cannot change the state of 'python' to INSTALLED: > > > 'python' ran into an error: > > > Unable to construct a Python component: > > > Traceback (most recent call last): > > > File "./nox/coreapps/pyrt/pyoxidereactor.py", line 364, in > > > instance > > > return pyoxidereactor(ctxt) > > > File "./nox/coreapps/pyrt/pyoxidereactor.py", line 133, in > > > __init__ > > > signal.signal(signal.SIGCHLD, self._handleSigchld) > > > AttributeError: 'pyoxidereactor' object has no attribute > > > '_handleSigchld' > > > > -------------------------------------------------------------------------------- > > > > > > Any clues to why this might be happening? > > > > > > Thanks! > > > Vjeko > > > > > > _______________________________________________ > > > nox-dev mailing list > > > nox-dev@noxrepo.org > > > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org > > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev