You are not logged in Log in Join
You are here: Home » Members » infrae » DocmaServer » Twisted bug » View Document

Log in
Name

Password

 

Twisted bug

There is a bug in Twisted preventing Docma from running. If you encounter something like this:

    ... more traceback info ...
    19/02/2003 12:18 [*docma*]     err = error.ProcessDone()
    19/02/2003 12:18 [*docma*] exceptions.TypeError: __init__() takes exactly 2 arguments (1 given)

apply the following patch to your lib/site-packages/twisted/internet/win32eventreactor.py file:

  *** win32eventreactor.py.~1.14.~        Sat Nov 16 23:13:55 2002
  --- win32eventreactor.py        Wed Feb 19 10:22:54 2003
  ***************
  *** 367,373 ****
            self.reactor.removeEvent(self.hProcess)
            abstract.FileDescriptor.connectionLost(self, reason)
            if exitCode == 0:
  !             err = error.ProcessDone()
            else:
                err = error.ProcessTerminated(exitCode)
            self.protocol.processEnded(failure.Failure(err))
  --- 367,373 ----
            self.reactor.removeEvent(self.hProcess)
            abstract.FileDescriptor.connectionLost(self, reason)
            if exitCode == 0:
  !             err = error.ProcessDone(exitCode)
            else:
                err = error.ProcessTerminated(exitCode)
            self.protocol.processEnded(failure.Failure(err)) 

Or change this one line manually. This will be fixed in the next Twisted release.

Thanks to Itamar for this patch.