On Tue, Jan 03, 2006 at 05:50:29PM +0100, Maarten Fonville wrote:
> I tried the patch you supplied, but it didn't work for me to get S5B
> file transfers working :( (against someone with trillian 3.1, don't know
> about the official MSN client)

Did you set ftJabberPort in config.xml? If so, do you get any errors in
debug.log?

Best regards,
Lars
From [EMAIL PROTECTED]  Tue Jan  3 17:56:42 2006
From: [EMAIL PROTECTED] (Norman Rasmussen)
Date: Tue Jan  3 17:56:50 2006
Subject: [py-transports] PyMSNt file transfer
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

If I try and send a file to myself from Windows Messenger (both WM and
pymsnt are behind a firewall), I get the following:

2006/01/03 19:54 SAST [OneSwitchboardSession,client] Traceback (most
recent call last):
     File "/usr/lib/python2.3/site-packages/twisted/python/log.py",
line 56, in callWithLogger
       return callWithContext({"system": lp}, func, *args, **kw)
     File "/usr/lib/python2.3/site-packages/twisted/python/log.py",
line 41, in callWithContext
       return context.call({ILogContext: newCtx}, func, *args, **kw)
     File "/usr/lib/python2.3/site-packages/twisted/python/context.py",
line 52, in callWithContext
       return self.currentContext().callWithContext(ctx, func, *args, **kw)
     File "/usr/lib/python2.3/site-packages/twisted/python/context.py",
line 31, in callWithContext
       return func(*args,**kw)
   --- <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 351, in doRead
       return self.protocol.dataReceived(data)
     File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py",
line 232, in dataReceived
       return self.rawDataReceived(data)
     File "/home/norman/src/svn/PyMSNt.trunk/src/tlib/msn/msn.py",
line 837, in rawDataReceived
       if not self.checkMessage(m):
     File "/home/norman/src/svn/PyMSNt.trunk/src/tlib/msn/msn.py",
line 2167, in checkMessage
       if self._checkFileInvitation(message, info): return 0
     File "/home/norman/src/svn/PyMSNt.trunk/src/tlib/msn/msn.py",
line 2097, in _checkFileInvitation
       raise NotImplementedError
   exceptions.NotImplementedError:

2006/01/03 19:54 SAST [OneSwitchboardSession,client] Stopping factory
<twisted.internet.protocol.ClientFactory instance at 0xb77029ec>

It this because it's MSN 4.7, or because there's a double firewall?

On 1/2/06, James Bunton <[EMAIL PROTECTED]> wrote:
> Receiving files with socks5 bytestreams works in SVN trunk rev 86 :)
>
> All the other issues reported today should be fixed too.
> That means there's likely a whole bunch of others to find.
>
> Please test and let me know what bugs you find!
>
> File sending is next.
>
> svn co svn://delx.cjb.net/pymsnt/trunk pymsnt-trunk
>
> Enjoy!
>
> ---
>
> James
>
> _______________________________________________
> py-transports mailing list
> [email protected]
> 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]  Tue Jan  3 18:06:52 2006
From: [EMAIL PROTECTED] (Norman Rasmussen)
Date: Tue Jan  3 18:06:55 2006
Subject: [py-transports] Initial login error
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

this one happens when restarting the transport:

2006/01/03 20:05 SAST [OneSwitchboardSession,client] INFO ::
(u'[EMAIL PROTECTED]', '[EMAIL PROTECTED]') ::  ::
gotMessage :: msn.msnw.OneSwitchboardSession :: {'message':
<tlib.msn.msn.MSNMessage instance at 0xb769114c>, 'self': 'instance'}
2006/01/03 20:05 SAST [OneSwitchboardSession,client] Traceback (most
recent call last):
     File "/usr/lib/python2.3/site-packages/twisted/python/log.py",
line 56, in callWithLogger
       return callWithContext({"system": lp}, func, *args, **kw)
     File "/usr/lib/python2.3/site-packages/twisted/python/log.py",
line 41, in callWithContext
       return context.call({ILogContext: newCtx}, func, *args, **kw)
     File "/usr/lib/python2.3/site-packages/twisted/python/context.py",
line 52, in callWithContext
       return self.currentContext().callWithContext(ctx, func, *args, **kw)
     File "/usr/lib/python2.3/site-packages/twisted/python/context.py",
line 31, in callWithContext
       return func(*args,**kw)
   --- <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 351, in doRead
       return self.protocol.dataReceived(data)
     File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py",
line 232, in dataReceived
       return self.rawDataReceived(data)
     File "/home/norman/src/svn/PyMSNt.trunk/src/tlib/msn/msn.py",
line 840, in rawDataReceived
       self.gotMessage(m)
     File "/home/norman/src/svn/PyMSNt.trunk/src/tlib/msn/msnw.py",
line 697, in gotMessage
       self.msncon.gotMessage("A message was lost.")
   exceptions.TypeError: gotMessage() takes exactly 3 arguments (2 given)


On 1/2/06, Norman Rasmussen <[EMAIL PROTECTED]> wrote:
> I caught these we a new user logged into their old msn account for the
> first time via pymsnt:
>
> 2006/01/02 15:21 SAST [NotificationClient,client] INFO ::
> [EMAIL PROTECTED] :: Start. :: syncJabberLegacyLists :: glue.LegacyList
> :: {'self': 'instance'}
> 2006/01/02 15:21 SAST [NotificationClient,client] Unhandled error in Deferred:
> 2006/01/02 15:21 SAST [NotificationClient,client] Traceback (most
> recent call last):
>      File "/usr/lib/python2.3/site-packages/twisted/internet/base.py",
> line 533, in runUntilCurrent
>        call.func(*call.args, **call.kw)
>      File "/home/norman/src/svn/PyMSNt.trunk/src/tlib/msn/msnw.py",
> line 52, in timeout
>        if not d.called: d.errback()
>      File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py",
> line 276, in errback
>        self._startRunCallbacks(fail)
>      File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py",
> line 315, in _startRunCallbacks
>        self._runCallbacks()
>    --- <exception caught here> ---
>      File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py",
> line 328, in _runCallbacks
>        self.result = callback(self.result, *args, **kw)
>      File "/home/norman/src/svn/PyMSNt.trunk/src/legacy/glue.py", line
> 322, in connectionFailed
>        self.session.removeMe()
>      File "/home/norman/src/svn/PyMSNt.trunk/src/session.py", line 89,
> in removeMe
>        self.legacycon.removeMe()
>      File "/home/norman/src/svn/PyMSNt.trunk/src/legacy/glue.py", line
> 252, in removeMe
>        self.logOut()
>      File "/home/norman/src/svn/PyMSNt.trunk/src/tlib/msn/msnw.py",
> line 226, in logOut
>        if self.notificationFactory:
>    exceptions.AttributeError: LegacyConnection instance has no
> attribute 'notificationFactory'
>
>
> 2006/01/02 15:24 SAST [NotificationClient,client] Starting factory
> <twisted.internet.protocol.ClientFactory instance at 0xb76a580c>
> 2006/01/02 15:24 SAST [OneSwitchboardSession,client] Traceback (most
> recent call last):
>      File "/usr/lib/python2.3/site-packages/twisted/python/log.py",
> line 56, in callWithLogger
>        return callWithContext({"system": lp}, func, *args, **kw)
>      File "/usr/lib/python2.3/site-packages/twisted/python/log.py",
> line 41, in callWithContext
>        return context.call({ILogContext: newCtx}, func, *args, **kw)
>      File "/usr/lib/python2.3/site-packages/twisted/python/context.py",
> line 52, in callWithContext
>        return self.currentContext().callWithContext(ctx, func, *args, **kw)
>      File "/usr/lib/python2.3/site-packages/twisted/python/context.py",
> line 31, in callWithContext
>        return func(*args,**kw)
>    --- <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 351, in doRead
>        return self.protocol.dataReceived(data)
>      File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py",
> line 232, in dataReceived
>        return self.rawDataReceived(data)
>      File "/home/norman/src/svn/PyMSNt.trunk/src/tlib/msn/msn.py",
> line 823, in rawDataReceived
>        self.currentMessage.readPos += len(data)
>    exceptions.AttributeError: 'NoneType' object has no attribute 'readPos'
>
>
> --
> - Norman Rasmussen
>  - Email: [EMAIL PROTECTED]
>  - Home page: http://norman.rasmussen.co.za/
>


--
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Tue Jan  3 18:14:51 2006
From: [EMAIL PROTECTED] (Norman Rasmussen)
Date: Tue Jan  3 18:14:55 2006
Subject: [py-transports] PyMSNt file transfer
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

Patch works,

I just got lots of (during transfer):

2006/01/03 20:10 SAST [OneSwitchboardSession,client] Warning in
transfer: <tlib.msn.msn.SLPLink_FileReceive instance at 0xb773208c>
field9,2

I HAD to set:

<ip>dns.name.of.transport</ip>
(supposed to be ip, but my server is multihomed, so I have to use dns)

<ftJabberPort>8008</ftJabberPort>
(can be any free port)

On 1/3/06, Lars T. Mikkelsen <[EMAIL PROTECTED]> wrote:
> On Mon, Jan 02, 2006 at 03:20:01PM +0200, Norman Rasmussen wrote:
> > it still doesn't like me:
> >
> > 2006/01/02 15:17 SAST [XmlStream,client] INFO ::
> > (u'[EMAIL PROTECTED]/Psi-Home', '[EMAIL PROTECTED]')
> > :: [Failure instance: Traceback: exceptions.TypeError: discoFail()
> > takes exactly 1 argument (2 given)
> >    /usr/lib/python2.3/site-packages/twisted/xish/utility.py:21:__call__
> >    /home/norman/src/svn/PyMSNt.trunk/src/disco.py:121:onIq
> >    /usr/lib/python2.3/site-packages/twisted/internet/defer.py:254:callback
> >    
> > /usr/lib/python2.3/site-packages/twisted/internet/defer.py:315:_startRunCallbacks
> >    --- <exception caught here> ---
> >    
> > /usr/lib/python2.3/site-packages/twisted/internet/defer.py:328:_runCallbacks
> >    ] :: discoFail :: FTReceive :: {'self': 'instance', 'err':
> > <twisted.python.failure.Failure exceptions.TypeError>}
>
> I was also getting these exceptions. Apparently they occur because
> Twisted Xish 0.1 doesn't have the Element.getElement() function, which
> is used in DiscoRequest.discoResponse().
>
> To get iChat to accept the file transfer offers, I also had to rename
> the "profile" attribute of the file element to "xmlns". This change
> looks correct according to JEP-0096.
>
> The attached patch fixes both these issues. While file transfers work
> (both OOB and S5B) I'm getting a lot of these warnings in debug.log:
>
> 2006/01/02 22:52 CET [OneSwitchboardSession,client] wait_data
> 2006/01/02 22:52 CET [OneSwitchboardSession,client] Unpacked fields: 
> 0x3840E30L 0x3840E34L 0x1231CL 0x4320DL 0x4B2L 0x1000030L 0x3B6D4D3L 0x0L 
> 0x0L 0x2L
> 2006/01/02 22:52 CET [OneSwitchboardSession,client] Warning in transfer: 
> <tlib.msn.msn.SLPLink_FileReceive instance at 0xb758d18c> field9,2
>
> This is with Microsoft Messenger for Mac 5.0.0 sending the file.
>
> Best regards,
> Lars
>
>
> _______________________________________________
> py-transports mailing list
> [email protected]
> 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]  Tue Jan  3 19:14:06 2006
From: [EMAIL PROTECTED] (Maarten Fonville)
Date: Tue Jan  3 19:15:07 2006
Subject: [py-transports] Re: PyMSNt file transfer
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>     <[EMAIL PROTECTED]>     
<[EMAIL PROTECTED]>     <[EMAIL PROTECTED]>     <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lars T. Mikkelsen wrote:
> On Tue, Jan 03, 2006 at 05:50:29PM +0100, Maarten Fonville wrote:
>> I tried the patch you supplied, but it didn't work for me to get S5B
>> file transfers working :( (against someone with trillian 3.1, don't know
>> about the official MSN client)
> 
> Did you set ftJabberPort in config.xml? If so, do you get any errors in
> debug.log?
> 
> Best regards,
> Lars

ah, I didn't set ftJabberPort.
What does that port mean? The Socks port for the transfer on the jabber
side? Is there any preferred port for it?

Maarten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)

iD8DBQFDusz+XjGr8JbE19URAlH0AKCmEKHJRj6ZvAXyHK8vyhtp0QMSwwCfbPlj
1ZvTJMLaPLL21xAEiATESRs=
=8wtU
-----END PGP SIGNATURE-----

Reply via email to