I have the following problem with the new avatars transport To block a user form msn, i send a <presence to [EMAIL PROTECTED]" type="unsubscribed"/> packet, everithing works fine and in msn the jabber conctact apperas as disconected in xxx list, however to unblock the contact i send a <presence to [EMAIL PROTECTED]" type="subscribed"/> packet, but in msn list of xxx the jabber conctact keeps apearing as disconected, i have to logout end login again to the transport in order to make the change evident. the same thig happens when sending a subscribed packet in response to an invitation during a session. it worked fine with erlier versions (not avatars) of the transport. how can i fix this? or do i need to send another packet besides presence? to make the change effective? thanks Carlos Guzman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://modevia.com/pipermail/py-transports/attachments/20051018/aa32644c/attachment.htm From [EMAIL PROTECTED] Wed Oct 19 07:16:02 2005 From: [EMAIL PROTECTED] (James Bunton) Date: Wed Oct 19 07:16:15 2005 Subject: [py-transports] PyMSN Avatar error with 0.10 In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]>
Most likely a permissions problem. Search debug.log for IOError and see which files it is having trouble with. --- James On 15/10/2005, at 4:49 AM, Nathan Palmer wrote: > > I?m getting this error in my debug.log. > ? > - 10:55:19 - IqAvatarFactor: Retrieving avatar for user > "[EMAIL PROTECTED]" "sd165" > ?- 10:55:19 - AvatarCache: Avatar not found > "8181b0e039800e07872a845713f505aeb374963b" > ?- 10:55:19 - Traceback (most recent call last): > ?- 10:55:19 -?? File > "C:\Python24\lib\site-packages\twisted\python\log.py", line 56, in > callWithLogger > ?- 10:55:19 -???? return callWithContext({"system": lp}, func, *args, > **kw) > ?- 10:55:19 -?? File > "C:\Python24\lib\site-packages\twisted\python\log.py", line 41, in > callWithContext > ?- 10:55:19 -???? return context.call({ILogContext: newCtx}, func, > *args, **kw) > ?- 10:55:19 -?? File > "C:\Python24\lib\site-packages\twisted\python\context.py", line 52, in > callWithContext > ?- 10:55:19 -???? return self.currentContext().callWithContext(ctx, > func, *args, **kw) > ?- 10:55:19 -?? File > "C:\Python24\lib\site-packages\twisted\python\context.py", line 31, in > callWithContext > ?- 10:55:19 -???? return func(*args,**kw) > ?- 10:55:19 - --- <exception caught here> --- > ?- 10:55:19 -?? File > "C:\Python24\lib\site-packages\twisted\internet\selectreactor.py", > line 139, in _doReadOrWrite > ?- 10:55:19 -???? why = getattr(selectable, method)() > ?- 10:55:19 -?? File > "C:\Python24\lib\site-packages\twisted\internet\tcp.py", line 351, in > doRead > ?- 10:55:19 -???? return self.protocol.dataReceived(data) > ?- 10:55:19 -?? File > "C:\Python24\Lib\site-packages\twisted\xish\xmlstream.py", line 145, > in dataReceived > ?- 10:55:19 -???? self.stream.parse(buf) > ?- 10:55:19 -?? File > "C:\Python24\Lib\site-packages\twisted\xish\domish.py", line 600, in > parse > ?- 10:55:19 -???? self.parser.Parse(buffer) > ?- 10:55:19 -?? File > "C:\Python24\Lib\site-packages\twisted\xish\domish.py", line 638, in > _onEndElement > ?- 10:55:19 -?? ??self.ElementEvent(self.currElem) > ?- 10:55:19 -?? File > "C:\Python24\Lib\site-packages\twisted\xish\xmlstream.py", line 166, > in onElement > ?- 10:55:19 -???? self.dispatch(element) > ?- 10:55:19 -?? File > "C:\Python24\Lib\site-packages\twisted\xish\utility.py", line 233, in > dispatch > ?- 10:55:19 -???? callbacklist.callback(object) > ?- 10:55:19 -?? File > "C:\Python24\Lib\site-packages\twisted\xish\utility.py", line 37, in > callback > ?- 10:55:19 -???? methodwrapper(*args, **kwargs) > ?- 10:55:19 -?? File > "C:\Python24\Lib\site-packages\twisted\xish\utility.py", line 21, in > __call__ > ?- 10:55:19 -???? self.method(*nargs, **nkwargs) > ?- 10:55:19 -?? File "C:\Program Files\Jive > Messenger\transport\pymsn10\src\disco.py", line 135, in onIq > ?- 10:55:19 -???? handler(el) > ?- 10:55:19 -?? File "C:\Program Files\Jive > Messenger\transport\pymsn10\src\misciq.py", line 315, in incomingIq > ?- 10:55:19 -???? DATA = c.avatar.makeDataElement() > ?- 10:55:19 -?? File "C:\Program Files\Jive > Messenger\transport\pymsn10\src\avatar.py", line 66, in > makeDataElement > ?- 10:55:19 -???? > data.addContent(base64.encodestring(self.getImageData())) > ?- 10:55:19 -?? File "c:\Python24\lib\base64.py", line 309, in > encodestring > ?- 10:55:19 -???? for i in range(0, len(s), MAXBINSIZE): > ?- 10:55:19 - exceptions.TypeError: len() of unsized object > ? > Is this normal?? A problem? > ? > 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