Re: JAdmin Digest, Vol 77, Issue 5
"Leslie G. Seigneur" <[email protected]> Thu, 17 Jun 2010 20:26:31 +0000
| Newsgroups | gmane.network.jabber.admin |
|---|---|
| Message-ID | <[email protected]> |
Message: 1 Date: Wed, 16 Jun 2010 18:44:07 +0200 From: Norman Rasmussen <[email protected]> Subject: Re: [jadmin] PyYIMt cannot authenticate To: "Jabber/XMPP server administration list" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" On Wed, Jun 16, 2010 at 6:38 PM, Leslie G. Seigneur <[email protected]> wrote: > I have been using PyYIMt on my server for some time now but today I am > not able to successfully register with the transport. It will not accept my > yahoo user name and password even thought I have verified they are correct > by logging in with the Yahoo client. Is anyone else seeing this problem > with PyYIMt? > What version are you using? There were some changes a few weeks back to fix some login problem, and there's no new release yet (you have to use git version for it to work) ---------------------------------------- Below is a summary of the communications that took place on the [email protected] list that led to a resolution of this issue. I am using PyYIMt CVS 1.73. I checked out the git version using this command: git clone git://xmpppy.git.sourceforge.net/gitroot/xmpppy/yahoo-transport However, I was still seeing the traceback error below. Wed 16 Jun 2010 21:15:34 - unknown Traceback (most recent call last): File "./yahoo.py", line 1322, in ? rdsocketlist[each].Process() File "/usr/local/jabberd/PyYIMt/ylib.py", line 865, in Process challenge = self.ymsg_challenge(s,t) File "/usr/local/jabberd/PyYIMt/ylib.py", line 177, in ymsg_challenge bhash = base64.b64encode(mhash.digest()).translate(base64translate) AttributeError: 'module' object has no attribute 'b64encode' Norman said: What version of python are you running with. This will require at least 2.4. (2.4 also fixed many SSL bugs, that are impossible to work around in code) If you have to run with python 2.3, then change: base64.b64encode(mhash.digest()).translate(base64translate) into base64.encodestring(mhash.digest()).translate(base64translate).replace('\n', '') If you are running 2.3 and you can't upgrade easily, make it known, because more and more 2.4 and 2.6 features are useful and save time. I said: I am running Python version 2.3.4. I made the change to ylib.py that you suggested and it worked. PyYIMt is back online. Thanks Norman! _______________________________________________ JAdmin mailing list FAQ: http://www.jabber.org/discussion-lists/jadmin-faq Forum: http://www.jabberforum.org/forumdisplay.php?f=19 Info: http://mail.jabber.org/mailman/listinfo/jadmin Unsubscribe: [email protected] _______________________________________________