Bugs item #2895406, was opened at 2009-11-10 19:22 Message generated for change (Comment added) made by dmitrynikitin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2895406...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: login Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Dmitry Nikitin (dmitrynikitin) Assigned to: Nobody/Anonymous (nobody) Summary: login.py stops working
Initial Comment: Pywikipedia [http] trunk/pywikipedia (r7621, 2009/11/10, 13:50:05) Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] MediaWiki version: 1.15.1 ------------------
I can login as TestBot in browser. But when I use login.py and the same password I will get the 'login failed' message.
$python login.py Password for user TestBot on wiki:ru: Logging in to wiki:ru as TestBot Login failed. Wrong password or CAPTCHA answer?
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2009-11-12 14:15
Message: Index: login.py =================================================================== --- login.py (revision 7635) +++ login.py (working copy) @@ -270,7 +270,7 @@
wikipedia.output(u"Logging in to %s as %s" % (self.site, self.username)) try: - cookiedata = self.getCookie(api) + cookiedata = self.getCookie(self,api) except NotImplementedError: wikipedia.output('API disabled because this site does not support.\nRetrying by ordinary way...') api = False
this fix solved my problem and I can login.
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin) Date: 2009-11-11 16:03
Message: Yes, I'm sure. I've verified several times and I *can* login via browser.
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2009-11-11 15:45
Message: Are you shure the password is quiete right?
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin) Date: 2009-11-11 12:39
Message: python login.py -v -log Pywikipediabot [http] trunk/pywikipedia (r7628, 2009/11/11, 11:10:13) Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] Password for user TestBot on gerbowiki:ru: Logging in to gerbowiki:ru as TestBot Login failed. Wrong password or CAPTCHA answer?
=== login.log === Pywikipediabot [http] trunk/pywikipedia (r7628, 2009/11/11, 11:10:13) Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] Logging in to gerbowiki:ru as TestBot Login failed. Wrong password or CAPTCHA answer?
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2009-11-11 06:54
Message: login.py has been changes. New release is 7623. Please try again with -v -log for verbose and log option and give us the logfile login.log for analyzing this bug. Thanks.
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin) Date: 2009-11-10 19:28
Message: the problem appears in r7599
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2895406...
pywikipedia-bugs@lists.wikimedia.org