AIM client code for Python?

Jean-Paul Calderone exarkun at
Tue Dec 16 19:17:53 CET 2008

On Tue, 16 Dec 2008 10:54:38 -0700, Joe Strout <joe at> wrote:
>I'd like to write an AIM bot in Python.  I found and tried
><>, but it doesn't work for me:
>Traceback (most recent call last):
>   File "", line 17, in <module>
>     bot.go()
>   File "/Users/jstrout/Documents/Python-Dev/AIMbot/", line 62,  in go
>     self.process_loop()
>   File "/Users/jstrout/Documents/Python-Dev/AIMbot/", line 156,  in 
>     event = self.recv_event()
>   File "/Users/jstrout/Documents/Python-Dev/AIMbot/", line 230,  in 
>     dtemp = self._socket.recv(buflen - len(data))
>socket.error: (54, 'Connection reset by peer')
>I wrote to the author a week ago, but never got a reply.  It could be  as 
>simple as changing the server addresses in, currently:
>TOC_SERV_AUTH = ("", 29999 )
>TOC_SERV = ( "", 9898 )
>...but I don't understand AIM well enough to know the correct values  (and 
>was rather hoping that I wouldn't have to).
>Does anyone know how to get Py-TOC to work, or have another Python TOC 
>implementation to suggest?

You need an OSCAR-based AIM library.  AOL discontinued TOC support several
years ago.  No TOC-based client can work on the AIM network.

Twisted includes a (somewhat crufty) OSCAR implementation.  There are
probably also other Python OSCAR implementations.


More information about the Python-list mailing list