Which server are you using? (don't set ServerUser in 0.3 unless you're using jabberd2)
The CVS version _IS_ the preferred version to be running - don't you love that xml config file format instead of the ini file? Can you post the debug log from when you login with the CVS version. On 7/6/06, Boris Granveaud <[EMAIL PROTECTED]> wrote: > Hi, > > I can't get PyYIMt to work. I've tried version 0.3 and the cvs version. > > 0.3 gives me this error: > > DEBUG: dispatcher warn Registering protocol "error" as > xmpp.protocol.Protocol(http://etherx.jabber.org/streams) > DEBUG: socket sent <?xml version='1.0'?> > <stream:stream > xmlns="http://jabberd.jabberstudio.org/ns/component/1.0" to="127.0.0.1" > version="1.0" xmlns:stream="http://etherx.jabber.org/streams" > > DEBUG: bind start Plugging <xmpp.auth.ComponentBind instance at > 0xb7cfbeec> into <xmpp.client.Component instance at 0xb7cf4ecc> > DEBUG: dispatcher info Registering handler <bound method > ComponentBind.FeaturesHandler of <xmpp.auth.ComponentBind instance at > 0xb7cfbeec>> for "features" type-> ns->(http://etherx.jabber.org/streams) > DEBUG: dispatcher warn Registering protocol "features" as > xmpp.protocol.Protocol(http://etherx.jabber.org/streams) > DEBUG: socket got <?xml version='1.0'?> > <stream:stream xmlns:stream='http://etherx.jabber.org/streams' > xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' > from='127.0.0.1' version='1.0' > id='6olzt6u61q6bnogkzgbpp0xldwfhq2cwrywk4qq6'> > DEBUG: socket got <stream:features > xmlns:stream='http://etherx.jabber.org/streams'/> > DEBUG: dispatcher ok Got http://etherx.jabber.org/streams/features > stanza > DEBUG: dispatcher ok Dispatching features stanza with type-> > props->[] id->None > DEBUG: bind error Server does not requested binding. > DEBUG: socket sent <bind name="devlinux3" id="1" /> > DEBUG: dispatcher wait Waiting for ID:1 with timeout 25... > DEBUG: socket got <bind > xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' error='409' > id='1'/> > DEBUG: dispatcher warn Unknown namespace: > http://jabberd.jabberstudio.org/ns/component/1.0 > DEBUG: dispatcher warn Unknown stanza: bind > DEBUG: dispatcher ok Dispatching unknown stanza with type-> > props->[] id->1 > DEBUG: dispatcher ok Expected stanza arrived! > DEBUG: bind error Binding failed: 409. > DEBUG: bind stop Plugging <xmpp.auth.ComponentBind instance at > 0xb7cfbeec> out of <xmpp.client.Component instance at 0xb7cf4ecc>. > Could not connect to server, or password mismatch! > > and the cvs version seems to work except that all my Yahoo contacts are > offline. > > B. > > _______________________________________________ > py-transports mailing list > [email protected] > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports > -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/ From [EMAIL PROTECTED] Thu Jul 6 14:49:31 2006 From: [EMAIL PROTECTED] (Shane Bishop) Date: Thu Jul 6 14:49:44 2006 Subject: [py-transports] howto for pyIRCt and pyYIMt In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Stellar, that worked quite well. I'm using .3 and the yahoo transport registers, but it never sends a 'success' message to the client, so you have a dead dialog box sitting there. Not really an issue for me, but I know a lot of our users will be confused. Is this fixed in CVS? Also, I got pyirct up and running too, but am a bit confused as to how it works. What client do you use for that? Thanks again, Shane Norman Rasmussen wrote: > You've got an old version of the xmpp.py libraries installed on your > system. You'll need to install the new ones to get the transports to > work. > > On 7/6/06, Shane Bishop <[EMAIL PROTECTED]> wrote: >> Is there any place with a basic config guide? I've set some stuff in >> transport.ini, but i'm getting errors that make it seem like I ought to >> be doing more: >> >> pyIRCt: >> Traceback (most recent call last): >> File "./irc.py", line 1762, in ? >> connection = >> xmpp.client.Component(hostname,port,component=component) >> TypeError: __init__() got an unexpected keyword argument 'component' >> >> pyYIMt: >> Traceback (most recent call last): >> File "./yahoo.py", line 1166, in ? >> connection = >> client.Component(hostname,port,component=component,domains=[hostname,chathostname]) >> >> >> TypeError: __init__() got an unexpected keyword argument 'domains' >> >> Any help would be greatly appreciated. >> -- >> Shane Bishop >> System Administrator >> Trinity Bible College >> _______________________________________________ >> py-transports mailing list >> [email protected] >> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports >> > > -- Shane Bishop System Administrator Trinity Bible College From [EMAIL PROTECTED] Fri Jul 7 09:41:09 2006 From: [EMAIL PROTECTED] (Norman Rasmussen) Date: Fri Jul 7 09:41:15 2006 Subject: [py-transports] PyMSNt errors In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Here's a new one (rev 186): [2006-07-06 17:57:26] Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 53, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 38, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/lib/python2.3/site-packages/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/lib/python2.3/site-packages/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/lib/python2.3/site-packages/twisted/internet/pollreactor.py", line 160, in _doReadOrWrite why = selectable.doRead() File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 349, in doRead return self.protocol.dataReceived(data) File "/home/norman/src/svn/PyMSNt/src/ft.py", line 331, in dataReceived self.factory.consumer.write(buf) File "/home/norman/src/svn/PyMSNt/src/tlib/throttle.py", line 18, in write raise ValueError, "I/O operation on closed 'file'" exceptions.ValueError: I/O operation on closed 'file' -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/ From [EMAIL PROTECTED] Fri Jul 7 10:11:31 2006 From: [EMAIL PROTECTED] (Norman Rasmussen) Date: Fri Jul 7 10:11:37 2006 Subject: [py-transports] howto for pyIRCt and pyYIMt In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> On 7/6/06, Shane Bishop <[EMAIL PROTECTED]> wrote: > Stellar, that worked quite well. cool > I'm using .3 and the yahoo transport > registers, but it never sends a 'success' message to the client, so you > have a dead dialog box sitting there. Not really an issue for me, but I > know a lot of our users will be confused. Is this fixed in CVS? Hrm, not sure. It should send you a subscription event, which > Also, I got pyirct up and running too, but am a bit confused as to how > it works. What client do you use for that? I'm using Psi. To use the irc transport you can just join a conference room on the transport. For the room name use: #channel%irc.server You can also 'register' with the irc transport - which makes it auto-login to irc networks, and allows you to add nicks as contacts. It'll then try and keep track of when those people come online/go offline, and send you presence for them. -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/ From [EMAIL PROTECTED] Fri Jul 7 11:24:32 2006 From: [EMAIL PROTECTED] (David E Freitas) Date: Fri Jul 7 11:24:36 2006 Subject: [py-transports] pymsnt 0.11 disabling avatars Message-ID: <[EMAIL PROTECTED]> Hi, I thought I'd suggest a config flag to disable avatar handling. Some servers might not want to do avatar handling. As it's unnecessary data transfer if not being used by the client. I put the necessary code changes below. Just compare the current code, and the changes are pretty logical. James, can you please check that I've covered all the proper places? ## comments are the added/edited parts CONFIG.XML ---------- <!-- Added boolean to enable or disable avatar sending/receiving; Comment out to disable. --> <!-- <allowAvatars/> --> CONFIG.PY ---------- ... allowAvatars = False ## ADD THIS DEFAULT ... MAIN.PY ------- ... if config.allowAvatars: ##ADDDED THIS CHECK self.iqAvatarFactor = misciq.IqAvatarFactory(self) ... MSN.PY ------- # ADD: pyMSN imports import config ## ADD IMPORT .... def handle_ILN(self, params): .... if config.allowAvatars: ## ADDED this check: if len(params) > 5: self.handleAvatarHelper(msnContact, params[5]) else: self.handleAvatarGoneHelper (msnContact) self.gotContactStatus(params[2], params[1], unquote(params[3])) ... def handle_NLN(self, params): ... if config.allowAvatars: ## ADDED this check if len(params) > 4: self.handleAvatarHelper(msnContact, params[4]) else: self.handleAvatarGoneHelper(msnContact) self.contactStatusChanged(params[1], params[0], unquote(params[2])) SESSION.PY ---------- def doVCardUpdate(self): def vCardReceived(el): if not self.alive: return LogEvent(INFO, self.jabberID) vCard = None for e in el.elements(): if e.name == "vCard" and e.uri == disco.VCARDTEMP: vCard = e break else: if config.allowAvatars: ## ADDED THIS CHECK self.legacycon.updateAvatar() # Default avatar return avatarSet = False name = "" for e in vCard.elements(): if e.name == "NICKNAME" and e.__str__(): name = e.__str__() if not name and e.name == "FN" and e.__str__(): # Give priority to nickname name = e.__str__() if e.name == "PHOTO" and config.allowAvatars: ## ADDED and TO THIS CHECK imageData = avatar.parsePhotoEl (e) if not imageData: errback() # Possibly it wasn't in a supported format? self.avatar = self.pytrans.avatarCache.setAvatar(imageData) self.legacycon.updateAvatar(self.avatar) avatarSet = True if name: self.updateNickname(name) if not avatarSet and config.allowAvatars: ## ADDED and TO THIS CHECK self.legacycon.updateAvatar() # Default avatar def errback(args=None): LogEvent(INFO, self.jabberID, "Error fetching avatar.") if self.alive and config.allowAvatars: ## ADDED and TO THIS CHECK self.legacycon.updateAvatar() ------------------------- Thanks. David From [EMAIL PROTECTED] Fri Jul 7 11:26:23 2006 From: [EMAIL PROTECTED] (James Bunton) Date: Fri Jul 7 11:26:35 2006 Subject: [py-transports] PyMSNt errors In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> On 04/07/2006, at 1:09 AM, Norman Rasmussen wrote: > Here's an odd one - I think it went in this order (svn 177 iirc): > > - No previous messages were exchanged > - A contact sent me a file larger than 5mb (the server max) > - The server rejected the ft - good. > - Messages from the contact came from [EMAIL PROTECTED]/msn/msn > > Not sure what caused the double resource, but besides the contact's > resource 'looking offline', everything worked fine. > > -- > - Norman Rasmussen > - Email: [EMAIL PROTECTED] > - Home page: http://norman.rasmussen.co.za/ Thanks. Should be fixed in the latest revision :) --- James
