quait / madcow

Automatically exported from code.google.com/p/madcow
GNU General Public License v3.0
0 stars 0 forks source link

AIM protocol nonfunctional #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable the AIM protocol
2. Add username and password to [AIM] section in madcow.ini
3. Start madcow

What is the expected output? What do you see instead?

Not sure...but not an error.  Problem occurs with or without a profile in the 
[AIM] section set.

What version of the product are you using? On what operating system?

Same problem occurs on Mac OS X 10.5.6 (Python 2.5.1) and Ubuntu 8.0.4 (Python 
2.5.2).

Please provide any additional information below.

Here's the debug log and traceback:

[01/06/09 12:42:35] INFO: Ignoring nicks: 
[01/06/09 12:42:35] INFO: reading modules from /madcow-1.5.1/modules
[01/06/09 12:42:35] DEBUG: skipping __init__: disabled
[01/06/09 12:42:35] DEBUG: loaded module: alias
[01/06/09 12:42:35] DEBUG: loaded module: area
[01/06/09 12:42:35] DEBUG: skipping artfart: disabled
[01/06/09 12:42:35] DEBUG: loaded module: babel
[01/06/09 12:42:35] DEBUG: skipping bash: disabled
[01/06/09 12:42:35] DEBUG: loaded module: bbcnews
[01/06/09 12:42:35] DEBUG: skipping bible: disabled
[01/06/09 12:42:35] DEBUG: loaded module: calc
[01/06/09 12:42:35] DEBUG: skipping care: disabled
[01/06/09 12:42:35] DEBUG: skipping chp: disabled
[01/06/09 12:42:35] DEBUG: skipping conservapedia: disabled
[01/06/09 12:42:35] DEBUG: skipping delicious: disabled
[01/06/09 12:42:35] DEBUG: loaded module: dictionary
[01/06/09 12:42:35] WARNING: failure loading election2008: 'ProtocolHandler' 
object has no 
attribute 'colorlib'
[01/06/09 12:42:35] DEBUG: skipping factoids: disabled
[01/06/09 12:42:35] DEBUG: skipping figlet: disabled
[01/06/09 12:42:35] DEBUG: loaded module: google
[01/06/09 12:42:35] DEBUG: skipping grufti: disabled
[01/06/09 12:42:35] DEBUG: skipping hugs: disabled
[01/06/09 12:42:35] DEBUG: skipping jinx: disabled
[01/06/09 12:42:35] DEBUG: skipping joke: disabled
[01/06/09 12:42:35] DEBUG: loaded module: karma
[01/06/09 12:42:35] DEBUG: loaded module: learn
[01/06/09 12:42:35] DEBUG: skipping livejournal: disabled
[01/06/09 12:42:35] DEBUG: skipping lyrics: disabled
[01/06/09 12:42:35] DEBUG: skipping megahal: disabled
[01/06/09 12:42:35] DEBUG: skipping memebot: disabled
[01/06/09 12:42:35] DEBUG: loaded module: movie
[01/06/09 12:42:35] DEBUG: loaded module: nslookup
[01/06/09 12:42:35] DEBUG: no help for module: obama
[01/06/09 12:42:35] DEBUG: loaded module: obama
[01/06/09 12:42:35] DEBUG: skipping roll: disabled
[01/06/09 12:42:35] DEBUG: loaded module: seen
[01/06/09 12:42:35] DEBUG: skipping slut: disabled
[01/06/09 12:42:35] DEBUG: loaded module: spellcheck
[01/06/09 12:42:35] DEBUG: skipped loading steam: disabled
[01/06/09 12:42:35] WARNING: failure loading stockquote: 'ProtocolHandler' 
object has no 
attribute 'colorlib'
[01/06/09 12:42:35] DEBUG: loaded module: summon
[01/06/09 12:42:35] DEBUG: skipping template: disabled
[01/06/09 12:42:35] DEBUG: skipping traffic: disabled
[01/06/09 12:42:35] WARNING: couldn't load module urban: No module named SOAPpy
[01/06/09 12:42:35] DEBUG: skipping war: disabled
[01/06/09 12:42:35] DEBUG: skipping wardb: disabled
[01/06/09 12:42:35] WARNING: failure loading weather: 'ProtocolHandler' object 
has no attribute 
'colorlib'
[01/06/09 12:42:35] DEBUG: skipping webtender: disabled
[01/06/09 12:42:35] DEBUG: loaded module: wikipedia
[01/06/09 12:42:35] DEBUG: loaded module: wikiquotes
[01/06/09 12:42:35] DEBUG: skipping woot: disabled
[01/06/09 12:42:35] DEBUG: alias        : pri=  0 thread=False stop=False
[01/06/09 12:42:35] DEBUG: seen         : pri=  1 thread=False stop=False
[01/06/09 12:42:35] DEBUG: wikiquotes   : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: google       : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: spellcheck   : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: dictionary   : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: area         : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: babel        : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: wikipedia    : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: bbcnews      : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: summon       : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: karma        : pri= 50 thread=False stop=True
[01/06/09 12:42:35] DEBUG: learn        : pri= 50 thread=False stop=True
[01/06/09 12:42:35] DEBUG: nslookup     : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: calc         : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: movie        : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] DEBUG: obama        : pri= 50 thread=True  stop=True
[01/06/09 12:42:35] INFO: reading modules from /Users/myktra/Downloads/madcow-
1.5.1/periodic
[01/06/09 12:42:35] DEBUG: skipping __init__: disabled
[01/06/09 12:42:35] DEBUG: skipped loading ircops: disabled
[01/06/09 12:42:35] DEBUG: skipping template: disabled
[01/06/09 12:42:35] WARNING: couldn't load module tweetprinter: No module named 
simplejson
[01/06/09 12:42:35] INFO: starting service: GatewayService
[01/06/09 12:42:35] INFO: starting service: PeriodicEvents
[01/06/09 12:42:35] DEBUG: Starting Thread: ModuleWorker1
[01/06/09 12:42:35] DEBUG: Starting Thread: ModuleWorker2
[01/06/09 12:42:35] DEBUG: Starting Thread: ModuleWorker3
[01/06/09 12:42:35] DEBUG: Starting Thread: ModuleWorker4
[01/06/09 12:42:35] DEBUG: Starting Thread: ModuleWorker5
[01/06/09 12:42:35] INFO: [AIM] Logging into aol.com
[01/06/09 12:42:36] INFO: [AIM] Connected to service
[01/06/09 12:42:36] ERROR: fatal error in bot, shutting down
[01/06/09 12:42:36] ERROR: 'OSCARAuth' object has no attribute 'proto'
Traceback (most recent call last):
  File "madcow.py", line 1051, in main
    bot.start()
  File "/madcow-1.5.1/madcow.py", line 153, in start
    self.run()
  File "/madcow-1.5.1/protocols/aim.py", line 42, in run
    while auth.proto.connected:
AttributeError: 'OSCARAuth' object has no attribute 'proto'
[01/06/09 12:42:36] INFO: removing pidfile
[01/06/09 12:42:36] INFO: madcow is shutting down

Original issue reported on code.google.com by myk...@gmail.com on 6 Jan 2009 at 5:59

GoogleCodeExporter commented 9 years ago
Oops.  I haven't checked if this worked in a long time.  Never figured someone 
would ever use it, I'll see what I 
can do.

Original comment by cjo...@gmail.com on 11 Jan 2009 at 6:15

GoogleCodeExporter commented 9 years ago
Thanks...appreciate that.  Hopefully it's simple.

Original comment by myk...@gmail.com on 11 Jan 2009 at 5:14

GoogleCodeExporter commented 9 years ago
Should be fixed in 1.5.2

Original comment by cjo...@gmail.com on 13 Jan 2009 at 12:19

GoogleCodeExporter commented 9 years ago

Original comment by cjo...@gmail.com on 13 Jan 2009 at 12:48

GoogleCodeExporter commented 9 years ago
Well done.  Seems to be working for a user-to-madcow chat.  However, if madcow 
is invited to a group chat, 
the madcow session will terminate.

Ideally madcow would be able to join a named chat group just like it can with 
an IRC channel, but this does not 
seem to be possible with the current configuration parameters.

Original comment by myk...@gmail.com on 13 Jan 2009 at 1:52

GoogleCodeExporter commented 9 years ago
The code is based off of Twisted's OSCAR implementation which I do not think 
supported chat rooms when I 
ported it.  AOL has since released the details of the SNAC packets, so perhaps 
I can implement this now without 
too much hassle or reverse engineering, I'll take a look when I get some time.

Original comment by cjo...@gmail.com on 13 Jan 2009 at 5:44

GoogleCodeExporter commented 9 years ago
OK, it should do chatrooms when invited (note: will require addressing, like in 
IRC) and handle unicode properly.  
Could you test if it works for you?  There's an SVN snapshot here 
http://gruntle.org/media/tmp/madcow-
aimtest.tar.bz2 if you don't have a subversion client.

Original comment by cjo...@gmail.com on 13 Jan 2009 at 12:42

GoogleCodeExporter commented 9 years ago
I can use SVN, so I did an SVN up, set Autojoin=yes in madcow.ini and group 
chat works great.  cjones++ !!!

Sorry you had to add all of the Twisted framework...hopefully though that makes 
things easier in the future.

Original comment by myk...@gmail.com on 13 Jan 2009 at 3:30

GoogleCodeExporter commented 9 years ago
It's just  small piece of Twisted, the whole thing is 20x the size.  Looks like 
it does jabber/msn/yahoo as well, so 
I might add support for that as well.

Original comment by cjo...@gmail.com on 13 Jan 2009 at 8:53