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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://modevia.com/pipermail/py-transports/attachments/20051213/72a15bfb/attachment.html
From [EMAIL PROTECTED]  Tue Dec 13 23:06:42 2005
From: [EMAIL PROTECTED] (James Bunton)
Date: Tue Dec 13 23:06:57 2005
Subject: [py-transports] Running PyMSNt Problems
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

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
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports

Reply via email to