I have a jabber 1.4 server (elitesecurity.org), running FreeBSD 5.3, Python 2.4 and Twisted 1.3.0. I just upgraded to py-aim 0.4, but registration form fetching causes problems. Here's the debug log:
/opt/jabber/pyaim-t-0.4 # setuidgid jabber ./PyAIMt 01/17/05 - 15:47:35 - Debug logging enabled. 01/17/05 - 15:47:35 - Debug logging enabled. 01/17/05 - 15:47:35 - Config: Created configuration entity 01/17/05 - 15:47:35 - Reading config option jid = pyaim.elitesecurity.org 01/17/05 - 15:47:35 - Reading config option spooldir = /opt/jabber/spool 01/17/05 - 15:47:35 - Reading config option pid = ../PyAIMt.pid 01/17/05 - 15:47:35 - Reading config option mainServer = 127.0.0.1 01/17/05 - 15:47:35 - Reading config option port = 5347 01/17/05 - 15:47:35 - Reading config option secret = ******** 01/17/05 - 15:47:35 - Reading config option lang = en 01/17/05 - 15:47:35 - Reading config option aimProtocol = oscar 01/17/05 - 15:47:35 - Reading config option crossChat = 01/17/05 - 15:47:35 - Starting up in OSCAR mode. 01/17/05 - 15:47:35 - PyTransport: Service starting up 01/17/05 - 15:47:35 - RegisterManager: Created 01/17/05 - 15:47:35 - Discovery: Created discovery manager 01/17/05 - 15:47:35 - Discovery: Adding feature support "http://jabber.org/protocol/disco" "None" 01/17/05 - 15:47:35 - Discovery: Adding feature support "jabber:iq:version" "<bound method Discovery.sendVersion of <disco.Discovery [EMAIL PROTECTED]>>" 01/17/05 - 15:47:35 - Discovery: Adding identity "gateway" "aim" "AIM Transport" 01/17/05 - 15:47:35 - Discovery: Adding feature support "jabber:iq:register" "<bound method RegisterManager.incomingRegisterIq of <register.RegisterManager [EMAIL PROTECTED]>>" 01/17/05 - 15:47:35 - Discovery: Adding feature support "jabber:iq:gateway" "<bound method GatewayTranslator.incomingIq of <misciq.GatewayTranslator [EMAIL PROTECTED]>>" 01/17/05 - 15:47:37 - PyTransport: Connected to main Jabberd server 01/17/05 - 15:47:42 - Discovery: Iq received "[EMAIL PROTECTED]/Psi - ku a" "ac30a". Looking for handler 01/17/05 - 15:47:42 - Discover: Child: query 01/17/05 - 15:47:42 - Discover: Matched query 01/17/05 - 15:47:42 - Discovery: Handler found "jabber:iq:register" "<bound method RegisterManager.incomingRegisterIq of <register.RegisterManager [EMAIL PROTECTED]>>" 01/17/05 - 15:47:42 - RegisterManager: In-band registration type "get" received 01/17/05 - 15:47:42 - RegisterManager: sendRegistrationFields() for "[EMAIL PROTECTED]/Psi - ku a" "ac30a" Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/twisted/internet/default.py", line 526, in doSelect _logrun(selectable, _drdw, selectable, method, dict) File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", line 65, in callWithLogger callWithContext({"system": lp}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", line 52, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", line 43, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/local/lib/python2.4/site-packages/twisted/internet/default.py", line 535, in _doReadOrWrite why = getattr(selectable, method)() File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py", line 255, in doRead return self.protocol.dataReceived(data) File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/tlib/xmlstream.py", line 159, in dataReceived self.stream.parse(buf) File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/tlib/domish.py", line 593, in parse self.parser.Parse(buffer) File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/tlib/domish.py", line 630, in _onEndElement self.ElementEvent(self.currElem) File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/tlib/xmlstream.py", line 180, in onElement self.dispatch(element) File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py", line 139, in dispatch callbacklist.callback(object) File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py", line 50, in callback methodwrapper(*args, **kwargs) File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py", line 34, in __call__ self.method(*nargs, **nkwargs) File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/disco.py", line 90, in onIq handler(el) File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/register.py", line 60, in incomingRegisterIq self.sendRegistrationFields(incoming) File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/register.py", line 68, in sendRegistrationFields reply.attributes["from"] = config.jid exceptions.NameError: global name 'config' is not defined 01/17/05 - 15:47:43 - PyTransport: Disconnected from main Jabberd server 01/17/05 - 15:47:48 - PyTransport: Connected to main Jabberd server From [EMAIL PROTECTED] Mon Jan 17 09:33:15 2005 From: [EMAIL PROTECTED] (Daniel Henninger) Date: Mon Jan 17 09:33:15 2005 Subject: [py-transports] pyaim 0.4 - can't fetch registration form In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> !!! Son of a! I forgot to import config! Arg! Ok, I'm in the process of releasing 0.4a to fix this. Please either grab that, or edit src/register.py and add "import config" under "import utils". That will accomplish exactly the same thing as updating (except you won't show as having version "0.4a" lol) Sorry about that. =/ Daniel -- "The most addictive drug in the world is music." - The Lost Boyz > I have a jabber 1.4 server (elitesecurity.org), running FreeBSD 5.3, > Python > 2.4 and Twisted 1.3.0. I just upgraded to py-aim 0.4, but registration > form > fetching causes problems. Here's the debug log: > > /opt/jabber/pyaim-t-0.4 # setuidgid jabber ./PyAIMt > 01/17/05 - 15:47:35 - Debug logging enabled. > 01/17/05 - 15:47:35 - Debug logging enabled. > 01/17/05 - 15:47:35 - Config: Created configuration entity > 01/17/05 - 15:47:35 - Reading config option jid = pyaim.elitesecurity.org > 01/17/05 - 15:47:35 - Reading config option spooldir = /opt/jabber/spool > 01/17/05 - 15:47:35 - Reading config option pid = ../PyAIMt.pid > 01/17/05 - 15:47:35 - Reading config option mainServer = 127.0.0.1 > 01/17/05 - 15:47:35 - Reading config option port = 5347 > 01/17/05 - 15:47:35 - Reading config option secret = ******** > 01/17/05 - 15:47:35 - Reading config option lang = en > 01/17/05 - 15:47:35 - Reading config option aimProtocol = oscar > 01/17/05 - 15:47:35 - Reading config option crossChat = > 01/17/05 - 15:47:35 - Starting up in OSCAR mode. > 01/17/05 - 15:47:35 - PyTransport: Service starting up > 01/17/05 - 15:47:35 - RegisterManager: Created > 01/17/05 - 15:47:35 - Discovery: Created discovery manager > 01/17/05 - 15:47:35 - Discovery: Adding feature support > "http://jabber.org/protocol/disco" "None" > 01/17/05 - 15:47:35 - Discovery: Adding feature support > "jabber:iq:version" > "<bound method Discovery.sendVersion of <disco.Discovery instance at > 0x851b60c>>" > 01/17/05 - 15:47:35 - Discovery: Adding identity "gateway" "aim" "AIM > Transport" > 01/17/05 - 15:47:35 - Discovery: Adding feature support > "jabber:iq:register" > "<bound method RegisterManager.incomingRegisterIq of > <register.RegisterManager > [EMAIL PROTECTED]>>" > 01/17/05 - 15:47:35 - Discovery: Adding feature support > "jabber:iq:gateway" > "<bound method GatewayTranslator.incomingIq of <misciq.GatewayTranslator > [EMAIL PROTECTED]>>" > 01/17/05 - 15:47:37 - PyTransport: Connected to main Jabberd server > 01/17/05 - 15:47:42 - Discovery: Iq received > "[EMAIL PROTECTED]/Psi - > ku a" "ac30a". Looking for handler > 01/17/05 - 15:47:42 - Discover: Child: query > 01/17/05 - 15:47:42 - Discover: Matched query > 01/17/05 - 15:47:42 - Discovery: Handler found "jabber:iq:register" > "<bound > method RegisterManager.incomingRegisterIq of <register.RegisterManager > [EMAIL PROTECTED]>>" > 01/17/05 - 15:47:42 - RegisterManager: In-band registration type "get" > received > 01/17/05 - 15:47:42 - RegisterManager: sendRegistrationFields() for > "[EMAIL PROTECTED]/Psi - ku a" "ac30a" > Traceback (most recent call last): > File > "/usr/local/lib/python2.4/site-packages/twisted/internet/default.py", > line 526, in doSelect > _logrun(selectable, _drdw, selectable, method, dict) > File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", > line > 65, in callWithLogger > callWithContext({"system": lp}, func, *args, **kw) > File "/usr/local/lib/python2.4/site-packages/twisted/python/log.py", > line > 52, in callWithContext > return context.call({ILogContext: newCtx}, func, *args, **kw) > File > "/usr/local/lib/python2.4/site-packages/twisted/python/context.py", > line 43, in callWithContext > return func(*args,**kw) > --- <exception caught here> --- > File > "/usr/local/lib/python2.4/site-packages/twisted/internet/default.py", > line 535, in _doReadOrWrite > why = getattr(selectable, method)() > File "/usr/local/lib/python2.4/site-packages/twisted/internet/tcp.py", > line > 255, in doRead > return self.protocol.dataReceived(data) > File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/tlib/xmlstream.py", line > 159, in > dataReceived > self.stream.parse(buf) > File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/tlib/domish.py", line 593, > in parse > self.parser.Parse(buffer) > File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/tlib/domish.py", line 630, > in > _onEndElement > self.ElementEvent(self.currElem) > File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/tlib/xmlstream.py", line > 180, in > onElement > self.dispatch(element) > File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py", > line > 139, in dispatch > callbacklist.callback(object) > File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py", > line > 50, in callback > methodwrapper(*args, **kwargs) > File "/usr/local/lib/python2.4/site-packages/twisted/xish/utility.py", > line > 34, in __call__ > self.method(*nargs, **nkwargs) > File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/disco.py", line 90, in onIq > handler(el) > File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/register.py", line 60, in > incomingRegisterIq > self.sendRegistrationFields(incoming) > File "/opt/jabberd-1.4.3.1/pyaim-t-0.4/src/register.py", line 68, in > sendRegistrationFields > reply.attributes["from"] = config.jid > exceptions.NameError: global name 'config' is not defined > 01/17/05 - 15:47:43 - PyTransport: Disconnected from main Jabberd server > 01/17/05 - 15:47:48 - PyTransport: Connected to main Jabberd server > _______________________________________________ > py-transports mailing list > [EMAIL PROTECTED] > http://mail.jabber.org/mailman/listinfo/py-transports >
