I'm getting exceptions when trying to run the MSN transport. From STDOUT I see:
Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", line 58, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", line 43, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/local/lib/python2.4/site-packages/twisted/internet/selectreactor.py", line 139, in _doReadOrWrite why = getattr(selectable, method)() File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py", line 347, in doRead return self.protocol.dataReceived(data) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 72, in dataReceived self.stream.parse(buf) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/domish.py", line 524, in parse self.parser.Parse(buffer) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/domish.py", line 564, in _onEndElement self.ElementEvent(self.currElem) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 104, in onElement self.dispatch(element) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 233, in dispatch callbacklist.callback(object) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 37, in callback methodwrapper(*args, **kwargs) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 21, in __call__ self.method(*nargs, **nkwargs) File "/usr/local/src/pymsnt-0.10.2/src/disco.py", line 140, in onIq self.sendDiscoInfoResponse(to=fro, ID=ID, ulang=ulang, jid=to) File "/usr/local/src/pymsnt-0.10.2/src/disco.py", line 186, in sendDiscoInfoResponse self.pytrans.send(iq) File "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/jabber/compo nent.py", line 88, in send self.parent.send(obj) File "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/jabber/compo nent.py", line 155, in send self.xmlstream.send(obj) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 146, in send self.transport.write(obj) File "/usr/local/lib/python2.4/site-packages/twisted/internet/abstract.py", line 172, in write self._tempDataLen += len(data) exceptions.TypeError: len() of unsized object Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", line 58, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", line 43, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/local/lib/python2.4/site-packages/twisted/internet/selectreactor.py", line 139, in _doReadOrWrite why = getattr(selectable, method)() File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py", line 347, in doRead return self.protocol.dataReceived(data) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 72, in dataReceived self.stream.parse(buf) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/domish.py", line 524, in parse self.parser.Parse(buffer) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/domish.py", line 564, in _onEndElement self.ElementEvent(self.currElem) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 104, in onElement self.dispatch(element) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 233, in dispatch callbacklist.callback(object) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 37, in callback methodwrapper(*args, **kwargs) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 21, in __call__ self.method(*nargs, **nkwargs) File "/usr/local/src/pymsnt-0.10.2/src/disco.py", line 140, in onIq self.sendDiscoInfoResponse(to=fro, ID=ID, ulang=ulang, jid=to) File "/usr/local/src/pymsnt-0.10.2/src/disco.py", line 186, in sendDiscoInfoResponse self.pytrans.send(iq) File "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/jabber/compo nent.py", line 88, in send self.parent.send(obj) File "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/jabber/compo nent.py", line 155, in send self.xmlstream.send(obj) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 146, in send self.transport.write(obj) File "/usr/local/lib/python2.4/site-packages/twisted/internet/abstract.py", line 172, in write self._tempDataLen += len(data) exceptions.TypeError: len() of unsized object Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", line 58, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", line 43, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/local/lib/python2.4/site-packages/twisted/internet/selectreactor.py", line 139, in _doReadOrWrite why = getattr(selectable, method)() File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py", line 347, in doRead return self.protocol.dataReceived(data) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 72, in dataReceived self.stream.parse(buf) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/domish.py", line 524, in parse self.parser.Parse(buffer) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/domish.py", line 564, in _onEndElement self.ElementEvent(self.currElem) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 104, in onElement self.dispatch(element) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 233, in dispatch callbacklist.callback(object) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 37, in callback methodwrapper(*args, **kwargs) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/utility.py", line 21, in __call__ self.method(*nargs, **nkwargs) File "/usr/local/src/pymsnt-0.10.2/src/disco.py", line 140, in onIq self.sendDiscoInfoResponse(to=fro, ID=ID, ulang=ulang, jid=to) File "/usr/local/src/pymsnt-0.10.2/src/disco.py", line 186, in sendDiscoInfoResponse self.pytrans.send(iq) File "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/jabber/compo nent.py", line 88, in send self.parent.send(obj) File "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/jabber/compo nent.py", line 155, in send self.xmlstream.send(obj) File "/usr/local/lib/python2.4/site-packages/twisted/words/xish/xmlstream.py", line 146, in send self.transport.write(obj) File "/usr/local/lib/python2.4/site-packages/twisted/internet/abstract.py", line 172, in write self._tempDataLen += len(data) exceptions.TypeError: len() of unsized object In the Jabber Debug I see the transport authenticate and then go offline. ROUT: Thu Dec 8 11:41:03 2005 router.c:111 checking their hash a5764faf904b9e2ea2fb770e9b7609595b4f0fff against our hash a5764faf904b9e2ea2fb770e9b7609595b4f0fff SM : Thu Dec 8 11:41:00 2005 sm.c:76 read 170 bytes ROUT: Thu Dec 8 11:41:03 2005 router.c:114 handshake succeeded SM : Thu Dec 8 11:41:00 2005 sm.c:197 got a packet ROUT: Thu Dec 8 11:41:03 2005 router.c:508 want write SM : Thu Dec 8 11:41:00 2005 pkt.c:108 creating new packet ROUT: Thu Dec 8 11:41:03 2005 router.c:860 write action on fd 12 SM : Thu Dec 8 11:41:00 2005 mm.c:597 dispatching pkt-router chain ROUT: Thu Dec 8 11:41:03 2005 router.c:578 writing to 12 SM : Thu Dec 8 11:41:00 2005 mm.c:606 calling module session ROUT: Thu Dec 8 11:41:03 2005 router.c:582 44 bytes written SM : Thu Dec 8 11:41:00 2005 mod_session.c:293 component 'msn' went offline, checking for sessions held there Am I missing something silly???