Ok. I've made some fixes to SVN for this problem.
Can people please test this with Twisted 2.0 and 2.1?
svn co svn://delx.cjb.net/pymsnt/branches/0_10_x pymsnt-0.10.x
Thanks!
---
James
On 14/12/2005, at 10:06 AM, James Bunton wrote:
> PyMSNt doesn't supported Twisted 2.1 or Twisted Words 0.3 yet.
>
> A lot of people have been running into this problem so I'll be fixing
> it soon.
>
> ---
>
> James
>
>
>
> On 13/12/2005, at 6:43 PM, Bao Jianyi wrote:
>
>> Hi,
>>
>> When I start the PyMSNt program, it does not work nomally.
>>
>> The components are
>>
>> jabberd-2.0s10
>>
>> Python-2.4.2
>>
>> Twisted-2.1.0
>>
>> TwistedWeb-0.5.0
>>
>> TwistedWords-0.3.0
>>
>> TwistedXish-0.1.0
>>
>> ZopeInterface-3.0.1
>>
>> pyOpenSSL-0.6
>>
>> pymsnt-0.10.1
>>
>>
>>
>>
>>
>> Here are the logs when I start the PyMSNt.
>>
>> 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.p
>> y", 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 "/root/pymsnt-0.10.1/src/disco.py", line 140, in onIq
>>
>> self.sendDiscoInfoResponse(to=fro, ID=ID, ulang=ulang, jid=to)
>>
>> File "/root/pymsnt-0.10.1/src/disco.py", line 186, in
>> sendDiscoInfoResponse
>>
>> self.pytrans.send(iq)
>>
>> File
>> "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/
>> jabber/c
>> omponent.py", line 88, in send
>>
>> self.parent.send(obj)
>>
>> File
>> "/usr/local/lib/python2.4/site-packages/twisted/words/protocols/
>> jabber/c
>> omponent.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
>>
>>
>>
>> Any thoughts?
>>
>>
>>
>> Best Regards,
>>
>> Bao Jianyi
>>
>>
>>
>> _______________________________________________
>> py-transports mailing list
>> [email protected]
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>