no problem, it works after those two small changes.  let us know when
it's stable again :-)

On 10/23/05, James Bunton <[EMAIL PROTECTED]> wrote:
> I meant to mail the list.
>
> I'm in the process of moving PyMSNt to use the Twisted Application
> infrastructure.
> You can run the transport without logging by doing python main.py
> inside the src/ directory.
>
> ---
>
> James
>
>
> On 23/10/2005, at 8:41 AM, Norman Rasmussen wrote:
>
> > James: I just ran a svn update last night, and PyMSNt failed to
> > restart cleanly:
> >
> > In main.py:
> >    I had to move the SIGHUP code into __main__ (i.e. below the handler)
> > In legacy/glue.py, legacy/legacylist.py:
> >    I had to remove 'src/' from the open calls, because current working
> > folder is already src. (or in an installed copy /usr/share/pymsnt 'is'
> > the src directory)
> >
> > --
> > - Norman Rasmussen
> >  - Email: [EMAIL PROTECTED]
> >  - Home page: http://norman.rasmussen.co.za/
> > _______________________________________________
> > py-transports mailing list
> > py-transports@blathersource.org
> > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >
>
> _______________________________________________
> py-transports mailing list
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>


--
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Sun Oct 23 02:19:33 2005
From: [EMAIL PROTECTED] (Daniel Henninger)
Date: Sun Oct 23 02:19:43 2005
Subject: [py-transports] pyicqt/pyaimt/pymsnt exception
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

Just FYI, PyAIM and PyICQ were tested with Twisted2.  =)

Daniel

On Oct 22, 2005, at 4:37 PM, Norman Rasmussen wrote:

> You seem to be using twisted2, my guess would be to try twisted1.
>
> As-far-as-I-know only PyMSNt has been tested to work on twisted2 (this
> could be wrong).
>
> On 10/22/05, Marcus Crestani <[EMAIL PROTECTED]>  
> wrote:
>
>> Hi,
>> I try to setup pyicqt (current SVN) on my suse linux 9.3 box, with  
>> current
>> jabberd2 and current Twisted framework.
>> Running it results in immediately after startup:
>>
>> # ./PyICQt
>> /usr/lib/python2.4/site-packages/twisted/web/proxy.py:22:
>> DeprecationWarning: twisted.protocols.http has moved to  
>> twisted.web.http.
>> See http://twistedmatrix.com/projects/web.
>>   from twisted.protocols import http
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.4/site-packages/twisted/internet/ 
>> selectreactor.py",
>> line 133, in doSelect
>>     _logrun(selectable, _drdw, selectable, method, dict)
>>   File "/usr/lib/python2.4/site-packages/twisted/python/log.py",  
>> line 56, in
>> callWithLogger
>>     return callWithContext({"system": lp}, func, *args, **kw)
>>   File "/usr/lib/python2.4/site-packages/twisted/python/log.py",  
>> line 41, in
>> callWithContext
>>     return context.call({ILogContext: newCtx}, func, *args, **kw)
>>   File "/usr/lib/python2.4/site-packages/twisted/python/ 
>> context.py", line
>> 31, in callWithContext
>>     return func(*args,**kw)
>> --- <exception caught here> ---
>>   File "/usr/lib/python2.4/site-packages/twisted/internet/ 
>> selectreactor.py",
>> line 139, in _doReadOrWrite
>>     why = getattr(selectable, method)()
>>   File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py",  
>> line 351,
>> in doRead
>>     return self.protocol.dataReceived(data)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> xmlstream.py",
>> line 72, in dataReceived
>>     self.stream.parse(buf)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> domish.py", line
>> 524, in parse
>>     self.parser.Parse(buffer)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> domish.py", line
>> 564, in _onEndElement
>>     self.ElementEvent(self.currElem)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> xmlstream.py",
>> line 104, in onElement
>>     self.dispatch(element)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> utility.py",
>> line 233, in dispatch
>>     callbacklist.callback(object)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> utility.py",
>> line 37, in callback
>>     methodwrapper(*args, **kwargs)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> utility.py",
>> line 21, in __call__
>>     self.method(*nargs, **nkwargs)
>>   File
>> "/usr/lib/python2.4/site-packages/twisted/words/protocols/jabber/ 
>> component.py",
>> line 52, in _handshakeEvent
>>     self.xmlstream.dispatch(self.xmlstream,  
>> xmlstream.STREAM_AUTHD_EVENT)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> utility.py",
>> line 227, in dispatch
>>     self._eventObservers[(priority, event)].callback(object)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> utility.py",
>> line 37, in callback
>>     methodwrapper(*args, **kwargs)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> utility.py",
>> line 21, in __call__
>>     self.method(*nargs, **nkwargs)
>>   File
>> "/usr/lib/python2.4/site-packages/twisted/words/protocols/jabber/ 
>> component.py",
>> line 135, in _authd
>>     self.xmlstream.send(p)
>>   File "/usr/lib/python2.4/site-packages/twisted/words/xish/ 
>> xmlstream.py",
>> line 146, in send
>>     self.transport.write(obj)
>>   File "/usr/lib/python2.4/site-packages/twisted/internet/ 
>> abstract.py", line
>> 172, in write
>>     self._tempDataLen += len(data)
>> exceptions.TypeError: len() of unsized object
>>
>> I get the same with pymsnt and pyaimt.
>>
>> Any help would be appreciated!
>> --
>> Marcus
>> _______________________________________________
>> py-transports mailing list
>> py-transports@blathersource.org
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>>
>
>
> --
> - Norman Rasmussen
>  - Email: [EMAIL PROTECTED]
>  - Home page: http://norman.rasmussen.co.za/
> _______________________________________________
> py-transports mailing list
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
>
>

Reply via email to