this still happens in rev 186:

---------- Forwarded message ----------
From: Norman Rasmussen <[EMAIL PROTECTED]>
Date: Jun 19, 2006 10:30 AM
Subject: Re: [py-transports] PyMSNt errors
To: PyAIM-t/PyICQ-t/PyMSN-t Discussion <py-transports@blathersource.org>


rev 175:

        --- <exception caught here> ---
          File 
"/usr/lib/python2.3/site-packages/twisted/internet/pollreactor.py",
line 160, in _doReadOrWrite
            why = selectable.doRead()
          File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py",
line 349, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py",
line 232, in dataReceived
            why = self.lineReceived(line)
          File "/home/norman/src/svn/PyMSNt/src/tlib/msn/msn.py", line
806, in lineReceived
            if self.currentMessage.readPos ==
self.currentMessage.length: self.rawDataReceived("") # :(
          File "/home/norman/src/svn/PyMSNt/src/tlib/msn/msn.py", line
850, in rawDataReceived
            if not self.checkMessage(m):
          File "/home/norman/src/svn/PyMSNt/src/tlib/msn/msn.py", line
2183, in checkMessage
            if self._checkTyping(message, cTypes): return 0
          File "/home/norman/src/svn/PyMSNt/src/tlib/msn/msn.py", line
2106, in _checkTyping
            self.gotContactTyping(message)
          File "/home/norman/src/svn/PyMSNt/src/tlib/msn/msnw.py",
line 756, in gotContactTyping
            self.msncon.gotContactTyping(message.userHandle)
          File "/home/norman/src/svn/PyMSNt/src/legacy/glue.py", line
441, in gotContactTyping
            self.session.sendTypingNotification(self.jabberID,
msn2jid(contact, True), True)
        exceptions.AttributeError: 'NoneType' object has no attribute
'sendTypingNotification'


-- 
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Wed Jul 12 12:58:39 2006
From: [EMAIL PROTECTED] (David E Freitas)
Date: Wed Jul 12 12:58:47 2006
Subject: [py-transports] REM'oving contact - causes logging off -&
        twisted.internet.tcp.Connector instance at 0x01391F30> will
        retry in 3 seconds
Message-ID: <[EMAIL PROTECTED]>

Hi,

I got this a few times:

I delete a msn contact via a PyMSNt connection.
Then, this "retry in X seconds" message is in the log, and I get logged off msn.
Can you think of reason this would happen?

(connectionLost :: glue.LegacyConnection :: {'reason':
<twisted.python.failure.Failure
twisted.internet.error.ConnectionDone>, )

----------------------
> [2006-07-12 14:20:31] INFO :: [EMAIL PROTECTED] :: Parsed presence packet :: 
> onPresence :: Session :: {'status': None, 'priority': None, 'froj': 
> <twisted.words.protocols.jabber.jid.JID instance at 0x01369D78>, 'show': 
> None, 'self': 'instance', 'fro': u'[EMAIL PROTECTED]/clockspeed', 
> 'avatarHash': '', 'ptype': u'unavailable', 'toj': 
> <twisted.words.protocols.jabber.jid.JID instance at 0x0137E5D0>, 'to': 
> u'[EMAIL PROTECTED]', 'el': <twisted.words.xish.domish.Element object at 
> 0x013CF590>, 'nickname': ''}
> [2006-07-12 14:20:31] INFO :: [EMAIL PROTECTED] :: Parsed subscription 
> presence packet :: onPresence :: Session :: {'el': 
> <twisted.words.xish.domish.Element object at 0x013CF590>, 'froj': 
> <twisted.words.protocols.jabber.jid.JID instance at 0x01394F30>, 'self': 
> 'instance', 'fro': u'[EMAIL PROTECTED]', 'ptype': u'unsubscribe', 'toj': 
> <twisted.words.protocols.jabber.jid.JID instance at 0x0137E5D0>, 'to': 
> u'[EMAIL PROTECTED]'}
> [2006-07-12 14:20:31] INFO :: [EMAIL PROTECTED] :: Passing subscription to 
> legacy service. :: subscriptionReceived :: Session :: {'subtype': 
> u'unsubscribe', 'self': 'instance', 'fro': u'[EMAIL PROTECTED]', 'to': 
> u'[EMAIL PROTECTED]'}
> [2006-07-12 14:20:31] INFO :: [EMAIL PROTECTED] ::  :: removeContact :: 
> glue.LegacyList :: {'jid': '[EMAIL PROTECTED]', 'self': 'instance'}
> [2006-07-12 14:20:31] << REM 25 FL
> [2006-07-12 14:20:31] INFO :: [EMAIL PROTECTED] :: Parsed subscription 
> presence packet :: onPresence :: Session :: {'el': 
> <twisted.words.xish.domish.Element object at 0x013CF590>, 'froj': 
> <twisted.words.protocols.jabber.jid.JID instance at 0x01394F30>, 'self': 
> 'instance', 'fro': u'[EMAIL PROTECTED]', 'ptype': u'unsubscribed', 'toj': 
> <twisted.words.protocols.jabber.jid.JID instance at 0x0137E5D0>, 'to': 
> u'[EMAIL PROTECTED]'}
> [2006-07-12 14:20:31] INFO :: [EMAIL PROTECTED] :: Passing subscription to 
> legacy service. :: subscriptionReceived :: Session :: {'subtype': 
> u'unsubscribed', 'self': 'instance', 'fro': u'[EMAIL PROTECTED]', 'to': 
> u'[EMAIL PROTECTED]'}
> [2006-07-12 14:20:31] INFO :: [EMAIL PROTECTED] ::  :: deauthContact :: 
> glue.LegacyList :: {'jid': '[EMAIL PROTECTED]', 'self': 'instance'}
> [2006-07-12 14:20:31] << REM 26 AL [EMAIL PROTECTED]
> [2006-07-12 14:20:31] << ADC 28 BL [EMAIL PROTECTED]
> [2006-07-12 14:20:32] <twisted.internet.tcp.Connector instance at 0x01391F30> 
> will retry in 2 seconds
> [2006-07-12 14:20:32] Stopping factory <tlib.msn.msn.NotificationFactory 
> instance at 0x01394A58>
> [2006-07-12 14:20:32] INFO :: [EMAIL PROTECTED] ::  :: wait :: 
> msn.msnw.NotificationClient :: {'self': 'instance', 'reason': 
> <twisted.python.failure.Failure twisted.internet.error.ConnectionDone>}
> [2006-07-12 14:20:32] INFO :: [EMAIL PROTECTED] ::  :: connectionLost :: 
> glue.LegacyConnection :: {'reason': <twisted.python.failure.Failure 
> twisted.internet.error.ConnectionDone>, 'self': 'instance'}
> [2006-07-12 14:20:32] INFO :: [EMAIL PROTECTED] ::  :: removeMe :: Session :: 
> {'self': 'instance'}
> [2006-07-12 14:20:32] INFO :: [EMAIL PROTECTED] ::  :: sendPresence :: 
> Session :: {'status': None, 'show': None, 'self': 'instance', 'fro': 
> 'msn.jabberdomain.com', 'avatarHash': None, 'ptype': 'unavailable', 
> 'priority': None, 'to': u'[EMAIL PROTECTED]', 'nickname': None, 'payload': []}
> [2006-07-12 14:20:32] INFO :: [EMAIL PROTECTED] ::  :: removeMe :: 
> glue.LegacyConnection :: {'self': 'instance'}
> [2006-07-12 14:20:32] << OUT
> [2006-07-12 14:20:32] INFO :: [EMAIL PROTECTED] ::  :: logOut :: 
> glue.LegacyConnection :: {'sbs': <tlib.msn.msnw.OneSwitchboardSession 
> instance at 0x013CCDF0>, 'c': <twisted.internet.tcp.Connector instance at 
> 0x01391F30>, 'self': 'instance'}
> [2006-07-12 14:20:32] INFO :: [EMAIL PROTECTED] ::  :: removeMe :: 
> ContactList :: {'self': 'instance'}
> [2006-07-12 14:20:32] INFO :: [EMAIL PROTECTED] ::  :: sendPresence :: 
> Session :: {'status': '', 'show': '', 'self': 'instance', 'fro': '[EMAIL 
> PROTECTED]/msn', 'avatarHash': '9a9daf48824e2da088a085ae512a2e0377367e18', 
> 'ptype': 'unavailable', 'priority': None, 'to': u'[EMAIL PROTECTED]', 
> 'nickname': u'Fairie', 'payload': [<twisted.words.xish.domish.Element object 
> at 0x01392F10>]}
> [2006-07-12 14:20:32] INFO :: [EMAIL PROTECTED] :: Removed! :: removeMe :: 
> Session :: {'self': 'instance'}
> [2006-07-12 14:20:32] >> FLN [EMAIL PROTECTED]
> [2006-07-12 14:20:32] INFO :: (u'[EMAIL PROTECTED]', '[EMAIL PROTECTED]') ::  
> :: connectionLost :: msn.msnw.OneSwitchboardSession :: {'reason': 
> <twisted.python.failure.Failure twisted.internet.error.ConnectionDone>, 
> 'self': 'instance'}
> [2006-07-12 14:20:32] Stopping factory 
> <twisted.internet.protocol.ClientFactory instance at 0x013CCE68>
> [2006-07-12 14:20:33] >> BYE [EMAIL PROTECTED]
----------------------


Thanks,


David
From [EMAIL PROTECTED]  Wed Jul 12 13:38:13 2006
From: [EMAIL PROTECTED] (David E Freitas)
Date: Wed Jul 12 13:38:18 2006
Subject: [py-transports] Invite Again - Unhandled error in Deferred:
Message-ID: <[EMAIL PROTECTED]>

Hello,

Exotic error here when 're-inviting' a contact:

> [2006-07-12 15:29:37] INFO :: [EMAIL PROTECTED] ::  :: addContact :: 
> glue.LegacyList :: {'jid': u'[EMAIL PROTECTED]', 'self': 'instance'}
> [2006-07-12 15:29:37] << ADC 30 FL [EMAIL PROTECTED]@msn.jabberdomain.com 
> [EMAIL PROTECTED]@msn.jabberdomain.com
> [2006-07-12 15:29:37] INFO :: [EMAIL PROTECTED] ::  :: authContact :: 
> glue.LegacyList :: {'jid': u'[EMAIL PROTECTED]', 'self': 'instance'}
> [2006-07-12 15:29:37] << ADC 33 AL [EMAIL PROTECTED]@msn.jabberdomain.com
> [2006-07-12 15:29:37] INFO :: [EMAIL PROTECTED] ::  :: sendPresence :: 
> Session :: {'status': None, 'show': None, 'self': 'instance', 'fro': u'[EMAIL 
> PROTECTED]/msn', 'avatarHash': None, 'ptype': 'subscribed', 'priority': None, 
> 'to': u'[EMAIL PROTECTED]', 'nickname': None, 'payload': []}
> [2006-07-12 15:29:38] INFO :: [EMAIL PROTECTED] ::  :: sendPresence :: 
> Session :: {'status': '', 'show': '', 'self': 'instance', 'fro': u'[EMAIL 
> PROTECTED]/msn', 'avatarHash': '', 'ptype': 'unavailable', 'priority': None, 
> 'to': u'[EMAIL PROTECTED]', 'nickname': '', 'payload': 
> [<twisted.words.xish.domish.Element object at 0x013C1F30>]}
> [2006-07-12 15:29:38] >> 201 30
> [2006-07-12 15:29:38] Unhandled error in Deferred:
> [2006-07-12 15:29:38] Traceback (most recent call last):
        Failure: <type 'int'>: 201
>       
> [2006-07-12 15:29:38] >> 201 33
> [2006-07-12 15:29:38] Unhandled error in Deferred:
> [2006-07-12 15:29:38] Traceback (most recent call last):
        Failure: <type 'int'>: 201


Cheers,

D
From [EMAIL PROTECTED]  Wed Jul  5 19:28:59 2006
From: [EMAIL PROTECTED] (Shane Bishop)
Date: Wed Jul 12 14:40:31 2006
Subject: [py-transports] howto for pyirct and pyyimt
Message-ID: <[EMAIL PROTECTED]>

Is there any place with a basic config guide? I've set some stuff in 
transport.ini, but i'm getting errors that make it seem like I ought to 
be doing more:

pyIRCt:
Traceback (most recent call last):
   File "./irc.py", line 1762, in ?
     connection = xmpp.client.Component(hostname,port,component=component)
TypeError: __init__() got an unexpected keyword argument 'component'

pyYIMt:
Traceback (most recent call last):
   File "./yahoo.py", line 1166, in ?
     connection = 
client.Component(hostname,port,component=component,domains=[hostname,chathostname])
TypeError: __init__() got an unexpected keyword argument 'domains'

Any help would be greatly appreciated.
-- 
Shane Bishop
System Administrator
Trinity Bible College
From [EMAIL PROTECTED]  Sun Jul  9 12:28:15 2006
From: [EMAIL PROTECTED] (David E Freitas)
Date: Wed Jul 12 14:40:34 2006
Subject: [py-transports] pymsnt 0.11 disabling avatars
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On 7/8/06, Lucas Nussbaum <[EMAIL PROTECTED]> wrote:
> On 07/07/06 at 13:24 +0200, David E Freitas wrote:
> > Hi,
> >
<snip>
>
> Hi,
>
> could you provide a patch for this, using 'svn diff' or directly 'diff' ?
>
> Thank you,
> --
> | Lucas Nussbaum
> | [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
> | jabber: [EMAIL PROTECTED]             GPG: 1024D/023B3F4F |
>


Hi Lucas,

I don't consider my changes as authoritive, so I do not want to
provide a patch.  I'd rather leave it for the main author to
incorporate the changes fully and as he sees best.

PyICQt and PyAIMt both have a <disableAvatars> config option.  I think
PyMSN should provide something similar too.

It's not that much that has to change, just a bunch of IF's have to be
scattered around. I thought I'd post some code to get the ball rolling
:)


Regards,

David

-----------------------------------------
www.defza.com
jabber: defza @ defza_com
From [EMAIL PROTECTED]  Wed Jul 12 14:52:57 2006
From: [EMAIL PROTECTED] (Daniel Henninger)
Date: Wed Jul 12 14:52:42 2006
Subject: [py-transports] Queue Cleanup
Message-ID: <[EMAIL PROTECTED]>

Hi folk,

You probably noticed a couple of older messages come up.  (might have  
already hit the list before)  Just went through and plowed through  
spam and released "held" messages for this list.

Daniel
From [EMAIL PROTECTED]  Thu Jul 13 08:02:09 2006
From: [EMAIL PROTECTED] (Lucas Nussbaum)
Date: Thu Jul 13 08:02:24 2006
Subject: [py-transports] Problems with current directory hashing method
Message-ID: <[EMAIL PROTECTED]>

Hi,

Currently, Pymsnt used a hashing based on the first two chars of the
JID. This causes two problems :

1) [EMAIL PROTECTED] is a valid JID. You can make pymsnt store foo's xml
file outside the msn.bar.com dir, getting something such as :

spool/
spool/..foo%bar.com.xml
spool/msn.bar.com/
spool/msn.bar.com/notes_to_myself
spool/msn.bar.com/*b/

I would recommand replacing the non-[a-z0-9] chars with something such
as "_". This would also solve the problem of filenames with chars you
don't usually want (files starting with '-', containing '*', '?', ...) 

2) The current hashing method is quite inefficient. On my server, using:
for i in *; do [ -d $i ] && cd $i && echo "$i $(ls |wc -l)" && cd ..;
done | sort -k 2 -n

I get :
[...]
vi 81
an 82
le 83
be 84
ju 86
la 86
ro 89
th 94
ca 96
ni 97
pa 100
je 103
fr 104
da 107
al 114
mi 127
ch 129
ma 300

Maybe we should hash based on the 3 first chars ? However, it wouldn't
really solve the problem :
# ls | cut -c 1-3 | uniq -c | sort -n
      1 maa
      1 mab
      1 maf
      1 mao
      2 mae
      2 mah
      2 mau
      2 mav
      2 maz
      3 mak
      3 mam
      4 may
      8 mai
      9 mal
     10 mas
     11 mad
     14 mag
     20 max
     34 man
     39 mac
     45 mat
     86 mar

Lucas
From [EMAIL PROTECTED]  Thu Jul 13 09:25:57 2006
From: [EMAIL PROTECTED] (Jab User)
Date: Thu Jul 13 09:26:04 2006
Subject: [py-transports] Pymsnt Error <error code='405' type='wait'>
Message-ID: <[EMAIL PROTECTED]>

Hi,


I have setup jabberd-1.4.3 and pymnst 0.10.

>From the Jabber Client PSI when I connect I see the
transport listed and I am able to successfully
register with my MSN id. I have two contacts for my
MSN id. But these users did not appear after
registration. I added a contact and tried to send msg
and got the following error. BTW I am behind the
firewall.

--------------------------------
Mon Jul 10 17:05:04 2006  sessions.c:301
THREAD:SESSION:TO received data from
jab_user%hotmail.com at msn.dell1.cn.com!
Mon Jul 10 17:05:04 2006  modules.c:135 mapi_call 0
Mon Jul 10 17:05:04 2006  modules.c:175 mapi_call
returning unhandled
Mon Jul 10 17:05:04 2006  deliver.c:474 DELIVER 4:c2s
<route from='rajeswari at dell1.cn.com/85FBE40'
to='17 at c2s/86009D0'><message
to='rajeswari at dell1.cn.com/Psi'
from='jab_user%hotmail.com at msn.dell1.cn.com'
type='error'><error code='405'
type='wait'><not-allowed
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Sorry,
this message cannot be delivered yet. Please try again
when the transport has finished logging
in.</text></error><body>hi</body></message></route>
Mon Jul 10 17:05:04 2006  deliver.c:678 delivering to
instance 'c2s'
Mon Jul 10 17:05:04 2006  c2s [client.c:167]
rajeswari at dell1.cn.com/85FBE40 has an active session,
delivering packet
Mon Jul 10 17:05:04 2006  c2s [client.c:239] Writing
packet to MIO: <message
to='rajeswari at dell1.cn.com/Psi'
from='jab_user%hotmail.com at msn.dell1.cn.com'
type='error'><error code='405'
type='wait'><not-allowed
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Sorry,
this message cannot be delivered yet. Please try again
when the transport has finished logging
in.</text></error><body>hi</body></message>
Mon Jul 10 17:05:04 2006  mio.c:1274 mio_write called
on x: 860D038 buffer: (null)
Mon Jul 10 17:05:04 2006  mtq 85480F0 leaving to pth
Mon Jul 10 17:05:04 2006  mio.c:816 mio while loop top
Mon Jul 10 17:05:04 2006  mio.c:829 mio while loop,
working
Mon Jul 10 17:05:04 2006  mio.c:418 write_dump writing
data: <message to='rajeswari at dell1.cn.com/Psi'
from='jab_user%hotmail.com at msn.dell1.cn.com'
type='error'><error code='405'
type='wait'><not-allowed
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Sorry,
this message cannot be delivered yet. Please try again
when the transport has finished logging
in.</text></error><body>hi</body></message>
Mon Jul 10 17:05:04 2006  mio.c:816 mio while loop top
Mon Jul 10 17:05:15 2006  mio.c:829 mio while loop,
working
Mon Jul 10 17:05:15 2006  mio.c:977 MIO read from
socket 15:
Mon Jul 10 17:05:15 2006  mio.c:816 mio while loop top
Mon Jul 10 17:05:16 2006  jabberd.c:255 main load
check of 1.00 with 14 total threads
Mon Jul 10 17:05:23 2006  users.c:88 checking users
for host dell1.cn.com
Mon Jul 10 17:05:23 2006  usercount 2   total users
Mon Jul 10 17:05:35 2006  mio.c:829 mio while loop,
working
Mon Jul 10 17:05:35 2006  mio.c:977 MIO read from
socket 15:
Mon Jul 10 17:05:35 2006  mio.c:816 mio while loop top
Mon Jul 10 17:05:55 2006  mio.c:829 mio while loop,
working
--------------------------------------

Will Msnt work when I have it configured behind the
firewall?

Regards
Raj

_________________________________________________________________
Get an advanced look at the new version of MSN Messenger. 
http://messenger.msn.com.sg/Beta/Default.aspx

Reply via email to