On 18.07.2006 02:48 CE(S)T, James Bunton wrote:
> What happens if you manually specify a reactor in your config.xml file.
> 
> Try <reactor>poll</reactor>
> Or <reactor>select</reactor>
> Or <reactor>default</reactor>

The same. I already had the "select" option set for PyICQt (because
"epoll" made some trouble) and nothing for PyMSNt. Setting "select" for
PyMSNt resulted in the following warning at startup but the result
(debug log and operation) is the same:

Unknown reactor:  select . Using select(), reactor.

-- 
Yves Goergen "LonelyPixel" <[EMAIL PROTECTED]>
http://beta.unclassified.de ? My web laboratory.
From [EMAIL PROTECTED]  Tue Jul 18 09:15:03 2006
From: [EMAIL PROTECTED] (Norman Rasmussen)
Date: Tue Jul 18 09:15:10 2006
Subject: [py-transports] MSN will soon allow to add yahoo! contacts
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On 6/6/06, Arnaud Ab?lard <[EMAIL PROTECTED]> wrote:
> It looks like the MSN/Yahoo! deal to make their respective networks
> compatible is on a good track:

This was launched last week, I'm getting the following headline event
when I connect:

<message from="msn.jabber.local" type="headline" to="[EMAIL PROTECTED]" >
<body>Pour ajouter des contacts Yahoo! ? votre liste de contacts,
installez la derni?re version de Windows Live? Messenger.
</body>
<x xmlns="jabber:x:oob">
<desc>More information on this notice.</desc>
<url>5meen_za/177&amp;notification_id=2&amp;message_id=2&amp;agent=messenger</url>
</x>
<x xmlns="jabber:x:oob">
<desc>Manage subscriptions to alerts.</desc>
<url>5meen_za/177&amp;notification_id=2&amp;message_id=2&amp;agent=messenger</url>
</x>
</message>

Odd - the body is French and not English, perhaps the MSN message has
multiple languages? If so: they should all be included and marked with
xml:lang.  Also the url's don't have a base url, so they don't load
correctly.

I assume that 'upgrading' the version announced to MSN would get rid
of this message?  How are MSN handling yahoo contacts I wonder.....

-- 
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Tue Jul 18 09:41:38 2006
From: [EMAIL PROTECTED] (David E Freitas)
Date: Tue Jul 18 09:41:42 2006
Subject: [py-transports] Re: MSN will soon allow to add yahoo! contacts
Message-ID: <[EMAIL PROTECTED]>

And it's being tested now...
http://www.microsoft.com/presspass/press/2006/jul06/07-12IMInteropPR.mspx


So, are we gona see PyMSNt/PyYIMt implement the new commands sometime? :)


> >
 From: Arnaud Ab?lard <arnaud.abelard <at> univ-nantes.fr>
Subject: MSN will soon allow to add yahoo! contacts
Newsgroups: gmane.network.jabber.py-transports
Date: 2006-06-06 09:41:52 GMT (5 weeks, 6 days, 23 hours and 39 minutes ago)

It looks like the MSN/Yahoo! deal to make their respective networks
compatible is on a good track:

http://spaces.msn.com/messengersays/Blog/cns!5B410F7FD930829E!16754.entry

I wonder they will just make their MSN client connect to yahoo!'s
network or make a kind of transport between MSN and Yahoo!

I really hope (but i doubt it will be) that it's the 2nd option.. that
would make the python MSN transport compatible with yahoo ;)

Cross your fingers!

Arnaud
-- 
Arnaud Ab?lard (jabber: arnaud.abelard <at> univ-nantes.fr)
Administrateur Syst?me
Centre de Ressources Informatiques
Universit? de Nantes
From [EMAIL PROTECTED]  Tue Jul 18 15:10:55 2006
From: [EMAIL PROTECTED] (David E Freitas)
Date: Tue Jul 18 15:11:00 2006
Subject: [py-transports] AttributeError exception in 0.9.5
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

Hi,

PyMSNt 0.11
Twisted 1.3
Python 2.4

Still get this exception a lot:

File "/usr/local/pymsnt-20060717/src/tlib/domish.py", line 90, in serialize
            write(" %s:%s='%s'" % (self.getPrefix(k[0]), k[1], escapeToXml(v,
1)).encode("utf-8"))
        exceptions.AttributeError: 'tuple' object has no attribute 'encode'



[2006-07-18 16:49:03] Traceback (most recent call last):
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/kqreactor.py",
line 178, in doKEvent
            log.callWithLogger(selectable, _drdw, selectable, fd, filter)
          File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
line 65, in callWithLogger
            callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
line 52, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File 
"/usr/local/lib/python2.4/site-packages/twisted/python/context.py",
line 43, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/kqreactor.py",
line 183, in _doWriteOrRead
            why = selectable.doRead()
          File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 255, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/local/pymsnt-20060717/src/tlib/xmlstream.py", line 159,
in dataReceived
            self.stream.parse(buf)
          File "/usr/local/pymsnt-20060717/src/tlib/domish.py", line 598, in 
parse
            self.parser.Parse(buffer)
          File "/usr/local/pymsnt-20060717/src/tlib/domish.py", line 635, in
_onEndElement
            self.ElementEvent(self.currElem)
          File "/usr/local/pymsnt-20060717/src/tlib/xmlstream.py", line 180,
in onElement
            self.dispatch(element)
          File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py",
line 139, in dispatch
            callbacklist.callback(object)
          File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py",
line 50, in callback
            methodwrapper(*args, **kwargs)
          File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py",
line 34, in __call__
            self.method(*nargs, **nkwargs)
          File "/usr/local/pymsnt-20060717/src/disco.py", line 160, in onIq
            handler(el)
          File "/usr/local/pymsnt-20060717/src/register.py", line 70, in
incomingRegisterIq
            self.updateRegistration(incoming)
          File "/usr/local/pymsnt-20060717/src/register.py", line 170, in
updateRegistration
            self.badRequestReply(incoming)
          File "/usr/local/pymsnt-20060717/src/register.py", line 183, in
badRequestReply
            self.pytrans.send(reply)
          File "/usr/local/pymsnt-20060717/src/tlib/jabber/component.py",
line 96, in send
            self.parent.send(obj)
          File "/usr/local/pymsnt-20060717/src/tlib/jabber/component.py",
line 162, in send
            self.xmlstream.send(obj)
          File "/usr/local/pymsnt-20060717/src/tlib/xmlstream.py", line 193, in 
send
            obj = obj.toXml()
          File "/usr/local/pymsnt-20060717/src/tlib/domish.py", line 399, in 
toXml
            s.serialize(self, closeElement)
          File "/usr/local/pymsnt-20060717/src/tlib/domish.py", line 90, in 
serialize
            write(" %s:%s='%s'" % (self.getPrefix(k[0]), k[1], escapeToXml(v,
1)).encode("utf-8"))
        exceptions.AttributeError: 'tuple' object has no attribute 'encode'


On 6/29/06, David E Freitas <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> We too get this exception, frequently, with PyMSN 0.9.5:
> (Has it been fixed since that version?)
>
> <log>
> 06/29/06 - 08:32:58 - Discovery: Iq received
> "[EMAIL PROTECTED]/resource" "None". Looking
> for handler
> 06/29/06 - 08:32:58 - Discovery: Handler found "jabber:iq:register" "<bound
> method RegisterManager.incomingRegisterIq of
> <register.RegisterManager instance at 0x84cde4c>>"
> 06/29/06 - 08:32:58 - RegisterManager: In-band registration type "set"
> received
> 06/29/06 - 08:32:58 - RegisterManager: updateRegistration() for "
> [EMAIL PROTECTED]/resource" "None"
> 06/29/06 - 08:32:58 - RegisterManager: Invalid registration data was sent to
> us. Or the removal failed.
> 06/29/06 - 08:32:58 - Traceback (most recent call last):
> 06/29/06 - 08:32:58 -   File
> "/usr/local/lib/python2.4/site-packages/twisted/internet/kqreactor.py",
> line 178, in doKEvent
> 06/29/06 - 08:32:58 -     log.callWithLogger(selectable, _drdw, selectable,
> fd, filter)
> 06/29/06 - 08:32:58 -   File
> "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
> line 65, in callWithLogger
> 06/29/06 - 08:32:58 -     callWithContext({"system": lp}, func, *args, **kw)
> 06/29/06 - 08:32:58 -   File
> "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
> line 52, in callWithContext
> 06/29/06 - 08:32:58 -     return context.call({ILogContext: newCtx}, func,
> *args, **kw)
> 06/29/06 - 08:32:58 -   File
> "/usr/local/lib/python2.4/site-packages/twisted/python/context.py",
> line 43, in callWithContext
> 06/29/06 - 08:32:58 -     return func(*args,**kw)
> 06/29/06 - 08:32:58 - --- <exception caught here> ---
> 06/29/06 - 08:32:58 -   File
> "/usr/local/lib/python2.4/site-packages/twisted/internet/kqreactor.py",
> line 183, in _doWriteOrRead
> 06/29/06 - 08:32:58 -     why = selectable.doRead()
> 06/29/06 - 08:32:58 -   File
> "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py",
> line 255, in doRead
> 06/29/06 - 08:32:58 -     return self.protocol.dataReceived(data)
> 06/29/06 - 08:32:58 -   File
> "/usr/local/PyMSNt-0.9.5/src/tlib/xmlstream.py", line 159, in dataReceived
> 06/29/06 - 08:32:58 -     self.stream.parse (buf)
> 06/29/06 - 08:32:58 -   File "/usr/local/PyMSNt-0.9.5/src/tlib/domish.py",
> line 598, in parse
> 06/29/06 - 08:32:58 -     self.parser.Parse(buffer)
> 06/29/06 - 08:32:58 -   File "/usr/local/PyMSNt- 0.9.5/src/tlib/domish.py",
> line 635, in _onEndElement
> 06/29/06 - 08:32:58 -     self.ElementEvent(self.currElem)
> 06/29/06 - 08:32:58 -   File
> "/usr/local/PyMSNt-0.9.5/src/tlib/xmlstream.py", line 180, in onElement
> 06/29/06 - 08:32:58 -     self.dispatch(element)
> 06/29/06 - 08:32:58 -   File
> "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py",
> line 139, in dispatch
> 06/29/06 - 08:32:58 -     callbacklist.callback (object)
> 06/29/06 - 08:32:58 -   File
> "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py",
> line 50, in callback
> 06/29/06 - 08:32:58 -     methodwrapper(*args, **kwargs)
> 06/29/06 - 08:32:58 -   File
> "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py",
> line 34, in __call__
> 06/29/06 - 08:32:58 -     self.method(*nargs, **nkwargs)
> 06/29/06 - 08:32:58 -   File "/usr/local/PyMSNt-0.9.5/src/disco.py", line
> 92, in onIq
> 06/29/06 - 08:32:58 -     handler(el)
> 06/29/06 - 08:32:58 -   File "/usr/local/PyMSNt- 0.9.5/src/register.py",
> line 72, in incomingRegisterIq
> 06/29/06 - 08:32:58 -     self.updateRegistration(incoming)
> 06/29/06 - 08:32:58 -   File "/usr/local/PyMSNt-0.9.5/src/register.py", line
> 158, in updateRegistration
> 06/29/06 - 08:32:58 -     self.badRequestReply(incoming)
> 06/29/06 - 08:32:58 -   File "/usr/local/PyMSNt-0.9.5/src/register.py", line
> 170, in badRequestReply
> 06/29/06 - 08:32:58 -     self.pytrans.send (reply)
> 06/29/06 - 08:32:58 -   File
> "/usr/local/PyMSNt-0.9.5/src/tlib/jabber/component.py", line 96, in send
> 06/29/06 - 08:32:58 -     self.parent.send(obj)
> 06/29/06 - 08:32:58 -   File "/usr/local/PyMSNt-
> 0.9.5/src/tlib/jabber/component.py", line 162, in send
> 06/29/06 - 08:32:58 -     self.xmlstream.send(obj)
> 06/29/06 - 08:32:58 -   File
> "/usr/local/PyMSNt-0.9.5/src/tlib/xmlstream.py", line 193, in send
> 06/29/06 - 08:32:58 -     obj = obj.toXml()
> 06/29/06 - 08:32:58 -   File "/usr/local/PyMSNt-0.9.5/src/tlib/domish.py",
> line 399, in toXml
> 06/29/06 - 08:32:58 -     s.serialize(self, closeElement)
> 06/29/06 - 08:32:58 -   File "/usr/local/PyMSNt- 0.9.5/src/tlib/domish.py",
> line 90, in serialize
> 06/29/06 - 08:32:58 -     write(" %s:%s='%s'" % (self.getPrefix(k[0]), k[1],
> escapeToXml(v, 1)).encode("utf-8"))
> 06/29/06 - 08:32:58 - exceptions.AttributeError : 'tuple' object has no
> attribute 'encode'
> </log>
>
>
>
>
> -David
>
> > Looks like somebody sent some XML to PyMSNt that it didn't understand
> > very well.
> >
> >Thanks for the report. If you find out how to reproduce it I'd love to
> > know what XML caused this.
>
>
> >---
>
> >James
>
>
>
> On 09/09/2005, at 3:37 PM, Matthew Nourse wrote:
>
> > Hi,
> >
> > I found the error below on the terminal shortly after starting PyMSNt
> > 0.9.5.  I haven't been able to duplicate the problem yet.
> >
> >
> >
> > Exception occured! Check the log!
> > Traceback (most recent call last):
> >  File
> "/usr/lib/python2.3/site-packages/twisted/internet/default.py",
> > line 526, in doSelect
> >    _logrun(selectable, _drdw, selectable, method, dict)
> >  File
> "/usr/lib/python2.3/site-packages/twisted/python/log.py",
> line
> > 65, in callWithLogger
> >    callWithContext({"system": lp}, func, *args, **kw)
> >  File
> "/usr/lib/python2.3/site-packages/twisted/python/log.py",
> line
> > 52, in callWithContext
> >    return context.call({ILogContext: newCtx}, func, *args, **kw)
> >  File
> "/usr/lib/python2.3/site-packages/twisted/python/context.py",
> > line 43, in callWithContext
> >    return func(*args,**kw)
> > --- <exception caught here> ---
> >  File
> "/usr/lib/python2.3/site-packages/twisted/internet/default.py",
> > line 535, in _doReadOrWrite
> >    why = getattr(selectable, method)()
> >  File
> "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py",
> line
> > 255, in doRead
> >    return self.protocol.dataReceived(data)
> >  File
> "/opt/jabber-transports/PyMSNt/src/tlib/xmlstream.py", line
> 159,
> > in dataReceived
> >    self.stream.parse(buf)
> >  File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py",
> line 598, in
> > parse
> >    self.parser.Parse(buffer)
> >  File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py",
> line 635, in
> > _onEndElement
> >    self.ElementEvent(self.currElem)
> >  File
> "/opt/jabber-transports/PyMSNt/src/tlib/xmlstream.py", line
> 180,
> > in onElement
> >    self.dispatch(element)
> >  File
> "/usr/lib/python2.3/site-packages/twisted/xish/utility.py",
> line
> > 139, in dispatch
> >    callbacklist.callback(object)
> >  File
> "/usr/lib/python2.3/site-packages/twisted/xish/utility.py",
> line
> > 50, in callback
> >    methodwrapper(*args, **kwargs)
> >  File
> "/usr/lib/python2.3/site-packages/twisted/xish/utility.py",
> line
> > 34, in __call__
> >    self.method(*nargs, **nkwargs)
> >  File "/opt/jabber-transports/PyMSNt/src/disco.py", line
> 92, in onIq
> >    handler(el)
> >  File "/opt/jabber-transports/PyMSNt/src/register.py",
> line 72, in
> > incomingRegisterIq
> >    self.updateRegistration(incoming)
> >  File "/opt/jabber-transports/PyMSNt/src/register.py",
> line 158, in
> > updateRegistration
> >    self.badRequestReply(incoming)
> >  File "/opt/jabber-transports/PyMSNt/src/register.py",
> line 170, in
> > badRequestReply
> >    self.pytrans.send(reply)
> >  File
> "/opt/jabber-transports/PyMSNt/src/tlib/jabber/component.py",
> > line 96, in send
> >    self.parent.send(obj)
> >  File
> "/opt/jabber-transports/PyMSNt/src/tlib/jabber/component.py",
> > line 162, in send
> >    self.xmlstream.send(obj)
> >  File
> "/opt/jabber-transports/PyMSNt/src/tlib/xmlstream.py", line
> 193,
> > in send
> >    obj = obj.toXml()
> >  File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py",
> line 399, in
> > toXml
> >    s.serialize(self, closeElement)
> >  File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py",
> line 90, in
> > serialize
> >    write(" %s:%s='%s'" % (self.getPrefix(k[0]), k[1], escapeToXml(v,
> > 1)).encode("utf-8"))
> > exceptions.AttributeError: 'tuple' object has no attribute 'encode'
> >
> >
> > It looks to me like line 90 of domish.py is unchanged in the latest
> > source.  I don't speak Python well enough to contribute a patch, my
> > apologies.
> >
> > Best Regards,
> > Matt
> >
> >
> > _______________________________________________
> > py-transports mailing list
> > py-transports at blathersource.org
> >
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >
From [EMAIL PROTECTED]  Tue Jul 18 15:32:53 2006
From: [EMAIL PROTECTED] (David E Freitas)
Date: Tue Jul 18 15:33:06 2006
Subject: [py-transports] 'NoneType' object has no attribute 'cancel' &&
        'NoneType' object has no attribute 'loginFailed'
Message-ID: <[EMAIL PROTECTED]>

Hi,

Python 2.4
PyMSNt 0.11
Twisted 1.3

Two Tracebacks:

Quite frequent.

------
[2006-07-18 16:48:58] Traceback (most recent call last):
          File "/usr/local/pymsnt-20060717/src/tlib/msn/msn.py", line 920, in
handle_XFR
            self.gotNotificationReferral(host, int(port))
          File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 367,
in gotNotificationReferral
            d.callback((host, port))
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/defer.py",
line 252, in callback
            self._startRunCallbacks(result)
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/defer.py",
line 313, in _startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/defer.py",
line 338, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 69, in
_gotNotificationReferral
            self.timeout.cancel()
        exceptions.AttributeError: 'NoneType' object has no attribute 'cancel'


----------



[2006-07-18 16:48:33] Traceback (most recent call last):
          File "/usr/local/pymsnt-20060717/src/tlib/msn/msn.py", line 372, in
handleEndHeaders
            handler(info)
          File "/usr/local/pymsnt-20060717/src/tlib/msn/msn.py", line 385, in
login_failed
            self.deferred.callback((LOGIN_FAILURE, unquote(info['cbtxt'])))
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/defer.py",
line 252, in callback
            self._startRunCallbacks(result)
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/defer.py",
line 313, in _startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/defer.py",
line 338, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/usr/local/pymsnt-20060717/src/tlib/msn/msn.py", line 1132,
in _passportError
            self.loginFailure("Exception while authenticating: %s" % failure)
          File "/usr/local/pymsnt-20060717/src/tlib/msn/msnw.py", line 376,
in loginFailure
            self.factory.msncon.loginFailed(message)
        exceptions.AttributeError: 'NoneType' object has no attribute 
'loginFailed'
From [EMAIL PROTECTED]  Tue Jul 18 15:39:04 2006
From: [EMAIL PROTECTED] (David E Freitas)
Date: Tue Jul 18 15:39:10 2006
Subject: [py-transports] Re: 'NoneType' object has no attribute 'getContact'
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

Hi,

Still get this exception with

Python 2.4
PyMSNt 0.11
Twisted 1.3

[2006-07-17 14:55:00] Traceback (most recent call last):
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/kqreactor.py",
line 178, in doKEvent
            log.callWithLogger(selectable, _drdw, selectable, fd, filter)
          File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
line 65, in callWithLogger
            callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
line 52, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File 
"/usr/local/lib/python2.4/site-packages/twisted/python/context.py",
line 43, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/kqreactor.py",
line 183, in _doWriteOrRead
            why = selectable.doRead()
          File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 255, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/local/pymsnt-20060717/src/tlib/xmlstream.py", line 159,
in dataReceived
            self.stream.parse(buf)
          File "/usr/local/pymsnt-20060717/src/tlib/domish.py", line 598, in 
parse
            self.parser.Parse(buffer)
          File "/usr/local/pymsnt-20060717/src/tlib/domish.py", line 635, in
_onEndElement
            self.ElementEvent(self.currElem)
          File "/usr/local/pymsnt-20060717/src/tlib/xmlstream.py", line 180,
in onElement
            self.dispatch(element)
          File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py",
line 139, in dispatch
            callbacklist.callback(object)
          File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py",
line 50, in callback
            methodwrapper(*args, **kwargs)
          File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py",
line 34, in __call__
            self.method(*nargs, **nkwargs)
          File "/usr/local/pymsnt-20060717/src/main.py", line 284, in onPresence
            s.onPresence(el)
          File "/usr/local/pymsnt-20060717/src/jabw.py", line 256, in onPresence
            self.subscriptionReceived(fro, toj.userhost(), ptype)
          File "/usr/local/pymsnt-20060717/src/session.py", line 346, in
subscriptionReceived
            self.contactList.jabberSubscriptionReceived(to, subtype)
          File "/usr/local/pymsnt-20060717/src/contact.py", line 243, in
jabberSubscriptionReceived
            self.getContact(jid).jabberSubscriptionReceived(subtype)
          File "/usr/local/pymsnt-20060717/src/contact.py", line 137, in
jabberSubscriptionReceived
            self.contactList.legacyList.addContact(self.jid)
          File "/usr/local/pymsnt-20060717/src/legacy/glue.py", line 584, in 
addContact
            msnContact = 
self.session.legacycon.getContacts().getContact(userHandle)
        exceptions.AttributeError: 'NoneType' object has no attribute 
'getContact'




On 7/11/06, David E Freitas <[EMAIL PROTECTED]> wrote:
> Hello people,
>
> I get the same exception (PyMSN 0.11), but in a different file:
>
> -----------------EXCEPTION-------------------
> > 006-07-11 09:49:27] << ADC 9 FL [EMAIL PROTECTED] [EMAIL PROTECTED]
> >[2006-07-11 09:49:27] Traceback (most recent call last):
> >         File "c:\Python24\lib\site-packages\twisted\python\log.py", line
> 53, in callWithLogger
>            return callWithContext({"system": lp}, func, *args, **kw)
> >         File "c:\Python24\lib\site-packages\twisted\python\log.py", line
> 38, in callWithContext
>            return context.call({ILogContext: newCtx}, func, *args, **kw)
> >         File "c:\Python24\lib\site-packages\twisted\python\context.py",
> line 59, in callWithContext
>            return self.currentContext().callWithContext(ctx, func, *args, 
> **kw)
> >         File "c:\Python24\lib\site-packages\twisted\python\context.py",
> line 37, in callWithContext
>            return func(*args,**kw)
>        --- <exception caught here> ---
> >         File 
> > "c:\Python24\lib\site-packages\twisted\internet\selectreactor.py",
> line 139, in _doReadOrWrite
>            why = getattr(selectable, method)()
> >         File "c:\Python24\lib\site-packages\twisted\internet\tcp.py", line
> 348, in doRead
>            return self.protocol.dataReceived(data)
> >         File 
> > "c:\Python24\lib\site-packages\twisted\words\xish\xmlstream.py",
> line 72, in dataReceived
>            self.stream.parse(data)
> >         File "c:\Python24\lib\site-packages\twisted\words\xish\domish.py",
> line 730, in parse
>            self.parser.Parse(buffer)
> >         File "c:\Python24\lib\site-packages\twisted\words\xish\domish.py",
> line 771, in _onEndElement
>            self.ElementEvent(self.currElem)
> >         File 
> > "c:\Python24\lib\site-packages\twisted\words\xish\xmlstream.py",
> line 104, in onElement
>            self.dispatch(element)
> >         File "c:\Python24\lib\site-packages\twisted\words\xish\utility.py",
> line 233, in dispatch
>            callbacklist.callback(object)
> >         File "c:\Python24\lib\site-packages\twisted\words\xish\utility.py",
> line 37, in callback
>            methodwrapper(*args, **kwargs)
> >         File "c:\Python24\lib\site-packages\twisted\words\xish\utility.py",
> line 21, in __call__
>            self.method(*nargs, **nkwargs)
> >         File "C:\Documents and Settings\freitasd\My
> Documents\pyMSN\PyMSNt-trunk 0.11 3Jul06\trunk\src\main.py", line 284,
> in onPresence
>            s.onPresence(el)
> >         File "C:\Documents and Settings\freitasd\My
> Documents\pyMSN\PyMSNt-trunk 0.11 3Jul06\trunk\src\jabw.py", line 256,
> in onPresence
>            self.subscriptionReceived(fro, toj.userhost(), ptype)
> >         File "C:\Documents and Settings\freitasd\My
> Documents\pyMSN\PyMSNt-trunk 0.11 3Jul06\trunk\src\session.py", line
> 346, in subscriptionReceived
>            self.contactList.jabberSubscriptionReceived(to, subtype)
> >         File "C:\Documents and Settings\freitasd\My
> Documents\pyMSN\PyMSNt-trunk 0.11 3Jul06\trunk\src\contact.py", line
> 243, in jabberSubscriptionReceived
>            self.getContact(jid).jabberSubscriptionReceived(subtype)
> >         File "C:\Documents and Settings\freitasd\My
> Documents\pyMSN\PyMSNt-trunk 0.11 3Jul06\trunk\src\contact.py", line
> 137, in jabberSubscriptionReceived
>            self.contactList.legacyList.addContact(self.jid)
> >         File "C:\Documents and Settings\freitasd\My
> Documents\pyMSN\PyMSNt-trunk 0.11 3Jul06\trunk\src\legacy\glue.py",
> line 584, in addContact
>            msnContact = 
> self.session.legacycon.getContacts().getContact(userHandle)
>        exceptions.AttributeError: 'NoneType' object has no attribute 
> 'getContact'
> ------------------------------------
>
>
> Regards,
>
> David
>
>
>
> Quoting:
> ===========
>
> Hi.
>
> I had one user saying that our MSN transport was down today, even though
> it was still up and 200+ users were connected and sending messages.
>
> In the logs, the only error I could find was this:
>
> > 02/02/06 - 10:05:11 - Traceback (most recent call last):
> > 02/02/06 - 10:05:11 -   File 
> > "/home/jabber/components/pymsnt/src/tlib/msn.py", line 1155, in handle_ADC
> > 02/02/06 - 10:05:11 -     if not self._fireCallback(id, 
> > listCodeToID[listType], userGuid, userHandle, screenName):
> > 02/02/06 - 10:05:11 -   File 
> > "/home/jabber/components/pymsnt/src/tlib/msn.py", line 611, in _fireCallback
> > 02/02/06 - 10:05:11 -     self.ids[id][0].callback(args)
> > 02/02/06 - 10:05:11 -   File 
> > "/usr/local/lib/python2.4/site-packages/twisted/internet/defer.py",
> line 254, in callback
> > 02/02/06 - 10:05:11 -     self._startRunCallbacks(result)
> > 02/02/06 - 10:05:11 -   File 
> > "/usr/local/lib/python2.4/site-packages/twisted/internet/defer.py",
> line 315, in _startRunCallbacks
> > 02/02/06 - 10:05:11 -     self._runCallbacks()
> > 02/02/06 - 10:05:11 - --- <exception caught here> ---
> > 02/02/06 - 10:05:11 -   File 
> > "/usr/local/lib/python2.4/site-packages/twisted/internet/defer.py",
> line 328, in _runCallbacks
> > 02/02/06 - 10:05:11 -     self.result = callback(self.result, *args, **kw)
> > 02/02/06 - 10:05:11 -   File 
> > "/home/jabber/components/pymsnt/src/tlib/msn.py", line 1712, in _cb
> > 02/02/06 - 10:05:11 -     c = self.factory.contacts.getContact(r[2])
> > 02/02/06 - 10:05:11 - exceptions.AttributeError: 'NoneType' object has no 
> > attribute 'getContact'
>
> I've reactively patched this on our server at line 1711 of msn.py so
> that if factory.contacts doesn't exist it doesn't call getContact, but
> this probably doesn't fix the underlying cause for it not existing in
> the first place.
>
> It looks like we're using PyMSNt 0.10, but I've looked at 0.10.3 and the
> line of code I patched looks the same in the later version anyway.
>
> Was an error like this fixed since 0.10?
>
> TX
> ==========
>
From [EMAIL PROTECTED]  Tue Jul 18 16:18:36 2006
From: [EMAIL PROTECTED] (David E Freitas)
Date: Tue Jul 18 16:18:40 2006
Subject: [py-transports] Re: pyMSNt exception - Connection reset by peer
Message-ID: <[EMAIL PROTECTED]>

Hi,

Python 2.4
PyMSNt 0.11
Twisted 1.3

'Connection reset by peer'

This happens a lot, but works more or less OK.
Is it really our network that is so bad?
MSN doesn't throttle a single IP does it?


[2006-07-18 15:55:35] Traceback (most recent call last):
          File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
line 65, in callWithLogger
            callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py",
line 52, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File 
"/usr/local/lib/python2.4/site-packages/twisted/python/context.py",
line 43, in callWithContext
            return func(*args,**kw)
          File 
"/usr/local/lib/python2.4/site-packages/twisted/internet/kqreactor.py",
line 183, in _doWriteOrRead
            why = selectable.doRead()
        --- <exception caught here> ---
          File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 98, in doRead
            return Connection.doRead(self)
          File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 239, in doRead
            data = self.socket.recv(self.bufferSize)
        OpenSSL.SSL.SysCallError: (54, 'Connection reset by peer')



Cheers,

David
From [EMAIL PROTECTED]  Wed Jul 19 00:45:57 2006
From: [EMAIL PROTECTED] (Bradford R. Bowman)
Date: Wed Jul 19 00:32:13 2006
Subject: [py-transports] Who should own the Py{AIM,ICQ}t process
Message-ID: <[EMAIL PROTECTED]>

I am writing an init script for PyAIMt, and having a difficult time
getting it to run as user jabber.  The process is readily started when
owned by root, however.  Is there a preference?  Am I opening myself up
to trouble if I run that process as root?
-- 
Bradford R. Bowman
<[EMAIL PROTECTED]>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : 
http://modevia.com/pipermail/py-transports/attachments/20060718/7264b9f6/attachment.pgp
From [EMAIL PROTECTED]  Wed Jul 19 00:35:09 2006
From: [EMAIL PROTECTED] (Daniel Henninger)
Date: Wed Jul 19 00:35:19 2006
Subject: [py-transports] Who should own the Py{AIM,ICQ}t process
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

I would always recommend not running it as root.  You never know what  
kind of crap code I have in place somewhere that might open a  
security hole.  ;D  You shouldn't have problems running it as jabber  
so long as the spool directory is owned by jabber.  (and all of the  
files within)  What kinds of problems are you seeing?

Daniel

On Jul 18, 2006, at 8:45 PM, Bradford R. Bowman wrote:

> I am writing an init script for PyAIMt, and having a difficult time
> getting it to run as user jabber.  The process is readily started when
> owned by root, however.  Is there a preference?  Am I opening  
> myself up
> to trouble if I run that process as root?
> -- 
> Bradford R. Bowman
> <[EMAIL PROTECTED]>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports

Reply via email to