Well.  I'm using Pandion (www.pandion.be) as my client and I believe
that they use PNG files as the avatar.

Nathan Palmer
[EMAIL PROTECTED]
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel
Henninger
Sent: Monday, November 28, 2005 11:10 AM
To: PyAIM-t/PyICQ-t/PyMSN-t Discussion
Subject: Re: [py-transports] Errors with PyMSN & PyAIM

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
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports

_______________________________________________
py-transports mailing list
[email protected]
http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
From [EMAIL PROTECTED]  Mon Nov 28 19:45:50 2005
From: [EMAIL PROTECTED] (Daniel Henninger)
Date: Mon Nov 28 19:46:16 2005
Subject: [py-transports] Errors with PyMSN & PyAIM
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

That's odd, that's by far the biggest one that should -not- have  
problems!  =)

Daniel

On Nov 28, 2005, at 2:38 PM, Nathan Palmer wrote:

> Well.  I'm using Pandion (www.pandion.be) as my client and I believe
> that they use PNG files as the avatar.
>
> Nathan Palmer
> [EMAIL PROTECTED]
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
> Henninger
> Sent: Monday, November 28, 2005 11:10 AM
> To: PyAIM-t/PyICQ-t/PyMSN-t Discussion
> Subject: Re: [py-transports] Errors with PyMSN & PyAIM
>
> 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
>> [email protected]
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
>

Reply via email to