On 11/28/05, Daniel Henninger <[EMAIL PROTECTED]> wrote: > What do you think about the password? Originally, I had a separate > config option for sasl username and password, but if I ask for a > separate password from the "secret", then "secret" is never used. So > I figured, why am I bothering with that? Why don't I just use > "secret" as the sasl password. What do you think about this? I > could change "useSASL" into a "saslUser" or something like that and > change the check to be "is it empty or not".
yes, this is exactly what I'm doing with the yahoo transport, (if username != blank, enable JD2 and use username to auth) > Hrm. Well ok. I'm used to a bazillion things showing up in disco > and so I didn't even think that it would be "prettier" if it were > tucked away. *ponder* :-) > > mmm, was the searching while offline bug, pretty easy to duplicate. > > The exception seems to cause the transport to disconnect and > > reconnect, but it seems to forget to re-auth, etc. > > I think, if it's not using the jabber 2 component protocol, that it > does reconnect properly after a crash like that. I must have missed > something. Either way, I'll look into it. if you want tcpflow dumps, it's easy to make them :-) > BTW, I find it amusing that I left "jabber2.vorpalcloud.org" in > main.py in the jabber component stuff. ;) Dooh. trying to 'lock down' access eh :-P -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/ From [EMAIL PROTECTED] Mon Nov 28 17:03:42 2005 From: [EMAIL PROTECTED] (Nathan Palmer) Date: Mon Nov 28 17:03:46 2005 Subject: [py-transports] Errors with PyMSN & PyAIM Message-ID: <[EMAIL PROTECTED]> I'm getting some errors with PyAIM and PyMSN. I actually don't know if they are related or not so you'll have to excuse me if they are not. I'm just guessing that they have something to do with avatars (possibly just on the msn side.) Maybe it has something to do with my installation? I'm using Python 2.4 on a Windows 2003 machine. Here is the PyMSN error. Traceback (most recent call last): File "C:\Python24\lib\site-packages\twisted\python\log.py", line 56, in callWi thLogger return callWithContext({"system": lp}, func, *args, **kw) File "C:\Python24\lib\site-packages\twisted\python\log.py", line 41, in callWi thContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "C:\Python24\lib\site-packages\twisted\python\context.py", line 52, in ca llWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "C:\Python24\lib\site-packages\twisted\python\context.py", line 31, in ca llWithContext return func(*args,**kw) --- <exception caught here> --- File "C:\Python24\lib\site-packages\twisted\internet\selectreactor.py", line 1 39, in _doReadOrWrite why = getattr(selectable, method)() File "C:\Python24\lib\site-packages\twisted\internet\tcp.py", line 351, in doR ead return self.protocol.dataReceived(data) File "C:\Python24\lib\site-packages\twisted\xish\xmlstream.py", line 145, in d ataReceived self.stream.parse(buf) File "C:\Python24\lib\site-packages\twisted\xish\domish.py", line 600, in pars e self.parser.Parse(buffer) File "C:\Python24\lib\site-packages\twisted\xish\domish.py", line 638, in _onE ndElement self.ElementEvent(self.currElem) File "C:\Python24\lib\site-packages\twisted\xish\xmlstream.py", line 166, in o nElement self.dispatch(element) File "C:\Python24\lib\site-packages\twisted\xish\utility.py", line 233, in dis patch callbacklist.callback(object) File "C:\Python24\lib\site-packages\twisted\xish\utility.py", line 37, in call back methodwrapper(*args, **kwargs) File "C:\Python24\lib\site-packages\twisted\xish\utility.py", line 21, in __ca ll__ self.method(*nargs, **nkwargs) File "C:\Program Files\Jive Messenger\transport\pymsnt102\src\disco.py", line 153, in onIq handler(el) File "C:\Program Files\Jive Messenger\transport\pymsnt102\src\misciq.py", line 271, in incomingIq PHOTO = c.avatar.makePhotoElement() File "C:\Program Files\Jive Messenger\transport\pymsnt102\src\avatar.py", line 59, in makePhotoElement binval.addContent(base64.encodestring(self.getImageData())) File "C:\Python24\lib\base64.py", line 309, in encodestring for i in range(0, len(s), MAXBINSIZE): exceptions.TypeError: len() of unsized object Here is the PyAIM Error src\tlib\domish.py:425: Depreca tionWarning: twisted.protocols.sux has moved to twisted.web.sux. See http://twis tedmatrix.com/projects/web. from twisted.protocols import sux Unhandled error in Deferred: Traceback (most recent call last): File "C:\Python24\lib\site-packages\twisted\xish\utility.py", line 21, in __ca ll__ self.method(*nargs, **nkwargs) File "C:\Program Files\Jive Messenger\transport\pyaim7\src\disco.py", line 98, in onIq self.deferredIqs[(fro, ID)].callback(el) File "C:\Python24\lib\site-packages\twisted\internet\defer.py", line 254, in c allback self._startRunCallbacks(result) File "C:\Python24\lib\site-packages\twisted\internet\defer.py", line 315, in _ startRunCallbacks self._runCallbacks() --- <exception caught here> --- File "C:\Python24\lib\site-packages\twisted\internet\defer.py", line 328, in _ runCallbacks self.result = callback(self.result, *args, **kw) File "C:\Program Files\Jive Messenger\transport\pyaim7\src\session.py", line 1 57, in errback self.legacycon.updateAvatar() File "C:\Program Files\Jive Messenger\transport\pyaim7\src\legacy\glue.py", li ne 295, in updateAvatar aimt.AIMConnection.changeAvatar(self, imageData) File "C:\Program Files\Jive Messenger\transport\pyaim7\src\legacy\aimt.py", li ne 762, in changeAvatar self.myavatar = utils.convertToJPG(imageData) File "C:\Program Files\Jive Messenger\transport\pyaim7\src\utils.py", line 176 , in convertToJPG img = Image.open(inbuff) File "C:\Python24\lib\site-packages\PIL\Image.py", line 1745, in open raise IOError("cannot identify image file") exceptions.IOError: cannot identify image file Nathan Palmer Senior Software Engineer Data Services Direct 801-208-1120 x115 [EMAIL PROTECTED] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://modevia.com/pipermail/py-transports/attachments/20051128/ddce8361/attachment-0001.html From [EMAIL PROTECTED] Mon Nov 28 18:10:15 2005 From: [EMAIL PROTECTED] (Daniel Henninger) Date: Mon Nov 28 18:10:31 2005 Subject: [py-transports] Errors with PyMSN & PyAIM In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Mine (PyAIM) is crashing because it does not recognize the image file you are sending. What image format are you using in your PHOTO vCard element? (or in general, what's the format of the buddy icon you are trying to set) Regardless, I should be checking for a failure there, but I'm curious as to what it is that the Python Imaging library is upset about. Daniel On Nov 28, 2005, at 12:03 PM, Nathan Palmer wrote: > I?m getting some errors with PyAIM and PyMSN. I actually don?t > know if they are related or not so you?ll have to excuse me if they > are not. I?m just guessing that they have something to do with > avatars (possibly just on the msn side.) Maybe it has something to > do with my installation? I?m using Python 2.4 on a Windows 2003 > machine. > > > > Here is the PyMSN error. > > > > Traceback (most recent call last): > > File "C:\Python24\lib\site-packages\twisted\python\log.py", line > 56, in callWi > > thLogger > > return callWithContext({"system": lp}, func, *args, **kw) > > File "C:\Python24\lib\site-packages\twisted\python\log.py", line > 41, in callWi > > thContext > > return context.call({ILogContext: newCtx}, func, *args, **kw) > > File "C:\Python24\lib\site-packages\twisted\python\context.py", > line 52, in ca > > llWithContext > > return self.currentContext().callWithContext(ctx, func, *args, > **kw) > > File "C:\Python24\lib\site-packages\twisted\python\context.py", > line 31, in ca > > llWithContext > > return func(*args,**kw) > > --- <exception caught here> --- > > File "C:\Python24\lib\site-packages\twisted\internet > \selectreactor.py", line 1 > > 39, in _doReadOrWrite > > why = getattr(selectable, method)() > > File "C:\Python24\lib\site-packages\twisted\internet\tcp.py", > line 351, in doR > > ead > > return self.protocol.dataReceived(data) > > File "C:\Python24\lib\site-packages\twisted\xish\xmlstream.py", > line 145, in d > > ataReceived > > self.stream.parse(buf) > > File "C:\Python24\lib\site-packages\twisted\xish\domish.py", line > 600, in pars > > e > > self.parser.Parse(buffer) > > File "C:\Python24\lib\site-packages\twisted\xish\domish.py", line > 638, in _onE > > ndElement > > self.ElementEvent(self.currElem) > > File "C:\Python24\lib\site-packages\twisted\xish\xmlstream.py", > line 166, in o > > nElement > > self.dispatch(element) > > File "C:\Python24\lib\site-packages\twisted\xish\utility.py", > line 233, in dis > > patch > > callbacklist.callback(object) > > File "C:\Python24\lib\site-packages\twisted\xish\utility.py", > line 37, in call > > back > > methodwrapper(*args, **kwargs) > > File "C:\Python24\lib\site-packages\twisted\xish\utility.py", > line 21, in __ca > > ll__ > > self.method(*nargs, **nkwargs) > > File "C:\Program Files\Jive Messenger\transport\pymsnt102\src > \disco.py", line > > 153, in onIq > > handler(el) > > File "C:\Program Files\Jive Messenger\transport\pymsnt102\src > \misciq.py", line > > 271, in incomingIq > > PHOTO = c.avatar.makePhotoElement() > > File "C:\Program Files\Jive Messenger\transport\pymsnt102\src > \avatar.py", line > > 59, in makePhotoElement > > binval.addContent(base64.encodestring(self.getImageData())) > > File "C:\Python24\lib\base64.py", line 309, in encodestring > > for i in range(0, len(s), MAXBINSIZE): > > exceptions.TypeError: len() of unsized object > > > > Here is the PyAIM Error > > > > src\tlib\domish.py:425: Depreca > > tionWarning: twisted.protocols.sux has moved to twisted.web.sux. > See http://twis > > tedmatrix.com/projects/web. > > from twisted.protocols import sux > > Unhandled error in Deferred: > > Traceback (most recent call last): > > File "C:\Python24\lib\site-packages\twisted\xish\utility.py", > line 21, in __ca > > ll__ > > self.method(*nargs, **nkwargs) > > File "C:\Program Files\Jive Messenger\transport\pyaim7\src > \disco.py", line 98, > > in onIq > > self.deferredIqs[(fro, ID)].callback(el) > > File "C:\Python24\lib\site-packages\twisted\internet\defer.py", > line 254, in c > > allback > > self._startRunCallbacks(result) > > File "C:\Python24\lib\site-packages\twisted\internet\defer.py", > line 315, in _ > > startRunCallbacks > > self._runCallbacks() > > --- <exception caught here> --- > > File "C:\Python24\lib\site-packages\twisted\internet\defer.py", > line 328, in _ > > runCallbacks > > self.result = callback(self.result, *args, **kw) > > File "C:\Program Files\Jive Messenger\transport\pyaim7\src > \session.py", line 1 > > 57, in errback > > self.legacycon.updateAvatar() > > File "C:\Program Files\Jive Messenger\transport\pyaim7\src\legacy > \glue.py", li > > ne 295, in updateAvatar > > aimt.AIMConnection.changeAvatar(self, imageData) > > File "C:\Program Files\Jive Messenger\transport\pyaim7\src\legacy > \aimt.py", li > > ne 762, in changeAvatar > > self.myavatar = utils.convertToJPG(imageData) > > File "C:\Program Files\Jive Messenger\transport\pyaim7\src > \utils.py", line 176 > > , in convertToJPG > > img = Image.open(inbuff) > > File "C:\Python24\lib\site-packages\PIL\Image.py", line 1745, in > open > > raise IOError("cannot identify image file") > > exceptions.IOError: cannot identify image file > > > > > > Nathan Palmer > > Senior Software Engineer > > Data Services Direct > > 801-208-1120 x115 > > [EMAIL PROTECTED] > > > > > > _______________________________________________ > py-transports mailing list > py-transports@blathersource.org > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports