My bot's first test edits in my user space worked fine (http://en.wikipedia.org/wiki/Special:Contributions/PotatoBot), but all of a sudden it can't log in any more, nor can I manually log in using login.py. I get the error message "Login failed. Wrong password or CAPTCHA answer?". The password is fine, since I can log in on the Wikipedia site. Changing the password doesn't help, nor does deleting and re-creating user-config.py. I'm not aware that I changed any settings. Can someone help? Thanks, Anypodetos
This bug is fix : http://sourceforge.net/tracker/?func=detail&aid=2983182&group_id=931...
you must add
use_api_login = True
in user-config.py
Date: Thu, 8 Apr 2010 17:57:02 +0200 From: michael@apo-st-martin.at To: pywikipedia-l@lists.wikimedia.org Subject: [Pywikipedia-l] Bot can't log in
My bot's first test edits in my user space worked fine (http://en.wikipedia.org/wiki/Special:Contributions/PotatoBot), but all of a sudden it can't log in any more, nor can I manually log in using login.py. I get the error message "Login failed. Wrong password or CAPTCHA answer?". The password is fine, since I can log in on the Wikipedia site. Changing the password doesn't help, nor does deleting and re-creating user-config.py. I'm not aware that I changed any settings. Can someone help? Thanks, Anypodetos
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
_________________________________________________________________ Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, Blackberry, … http://www.messengersurvotremobile.com/?d=Hotmail
Le jeudi 08 avril 2010 à 18:18 +0200, Michael Weber a écrit :
Okay, now it says "Logging in to wikipedia:en as PotatoBot via API." and then stops doing anything.
Mediawiki's login action was changed yesterday (7/04/10) to prevent a CSRF vulnerability[1].
Pywikibot was updated soon after this to take these changes into account[2], are you sure you've updated you're copy since then ?
stanlekub
[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=23076 [2] http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/login.py?r1=80...
Hello List
I have the same problem. I put some print statements into the login.py and logged in with a dummy password. I use 56 __version__='$Id: login.py 8064 2010-04-08 11:15:40Z xqt $' What I get is the "NeedToken" over and over again, but it seems to me that I send the right lgtoken to the server. Still it gets stuck in this loop on line 169 of login.py here is some of my output, any idea what is happening?
$ python login.py Checking multiplicity: pid = False Found 1 wikipedia:de processes running, including this one. Checking multiplicity: pid = 1 Found 1 wikipedia:de processes running, including this one. Pywikipediabot [http] trunk/pywikipedia (r8064, 2010/04/08, 11:15:40) Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) [GCC 4.3.3] Password for user HRoestBot on wikipedia:de: Logging in to wikipedia:de as HRoestBot via API. sending {'action': 'login', 'lgname': u'HRoestBot', 'lgpassword': 'asf', 'format': 'xml'} False ==== API action:login ==== lgname: HRoestBot lgpassword: XXXXX ---------------- Requesting API query from wikipedia:de receiving {u'login': {u'cookieprefix': u'dewiki', u'token': u'b5eaeafe31cb70318895f2a17158190c', u'sessionid': u'4739abfcf70467c1f95e18a9b5d60d1d', u'result': u'NeedToken'}}
sending {'action': 'login', 'lgname': u'HRoestBot', 'lgtoken': u'b5eaeafe31cb70318895f2a17158190c', 'lgpassword': 'asf', 'format': 'xml'} False ==== API action:login ==== lgname: HRoestBot lgtoken: b5eaeafe31cb70318895f2a17158190c lgpassword: XXXXX ---------------- Requesting API query from wikipedia:de receiving {u'login': {u'cookieprefix': u'dewiki', u'token': u'c7654a8e644ab22a25854c93a9f0b5a1', u'sessionid': u'7a07eaf263d832a4d3333500db884ecd', u'result': u'NeedToken'}}
On 8 April 2010 18:41, stanlekub stanlekub@free.fr wrote:
Le jeudi 08 avril 2010 à 18:18 +0200, Michael Weber a écrit :
Okay, now it says "Logging in to wikipedia:en as PotatoBot via API." and then stops doing anything.
Mediawiki's login action was changed yesterday (7/04/10) to prevent a CSRF vulnerability[1].
Pywikibot was updated soon after this to take these changes into account[2], are you sure you've updated you're copy since then ?
stanlekub
[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=23076 [2] http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/login.py?r1=80...
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Now working, as Morten Wang noted in the thread "Eternal login loop solution". Thanks, all!
pywikipedia-l@lists.wikimedia.org