Bugs item #2983182, was opened at 2010-04-07 12:11 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2983182...
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: Pending Resolution: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: xqt (xqt) Summary: login.py
Initial Comment: Since the change of the API (url) my bot (and some others, after discussion on IRC) can not connect and it's wrote on the consol the error message: "Login failed. Wrong password or CAPTCHA answer?" despite that the correct password is entered and that no captcha is answered on the browser!
----------------------------------------------------------------------
Comment By: https://www.google.com/accounts () Date: 2010-06-29 14:59
Message: Sorry, my mistake: Python 2.6.5:
python version.py Pywikipedia (r8335 (wikipedia.py), 2010/06/26, 10:07:01) Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] config-settings: use_api = True use_api_login = True
Login error is "No JSON object could be decoded"
On a LAMP system. Apache reports:
127.0.0.1 - - [29/Jun/2010:16:44:10 +0300] "POST /scriptpath/api.php HTTP/1.1" 302 244 "-" "PythonWikipediaBot/1.0"
Error from dumpfile (as viewed in vim) is:
Error reported: No JSON object could be decoded 127.0.0.1 /scriptpath/api.php?
<feff>{"login":{"result":"NeedToken","token":"[some md5-looking hash]"}}
See also https://sourceforge.net/tracker/?func=detail&aid=3019475&group_id=93...
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-06-22 11:25
Message: give me the results of your version.py please.
----------------------------------------------------------------------
Comment By: https://www.google.com/accounts () Date: 2010-06-22 09:22
Message: Does NOT work for me on Python 2.6.4. :(
----------------------------------------------------------------------
Comment By: Toto Azéro (toto-azero) Date: 2010-04-09 16:58
Message: OK thanks ! that work well in r8072 !
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-04-09 16:52
Message: Q&D-Fix in 8071 and use_api_login = True per default in config.py Sorry for this hack, but my time is over for now. Maybe a cleaner code is coming soom (asap)
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-04-09 16:34
Message: I have it! Fix coming soon...
----------------------------------------------------------------------
Comment By: Toto Azéro (toto-azero) Date: 2010-04-09 15:53
Message: Yes, my user-config.py contains that line :
use_api_login = True
I've checked that there is no file type <family> - <lang> - <user>-login.data in the "login-data" folder. And there isn't any file called "fr-ZéroBot-central-login.data" (<family>-<lang>-<user>-login.data).
I've use the -clean option and I've tried to log in again with the -v -v and -force options. I can observe that (I've replaced bot's password by ***) :
Pywikipediabot [http] trunk/pywikipedia (r8069, 2010/04/09, 11:13:53) Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) [GCC 4.0.1 (Apple Inc. build 5493)] WARNING: Using -v -v on login.py might leak private data. When sharing, please double check your password is not readable and log out your bots session. Password for user ZéroBot on wikipedia:fr: Logging in to wikipedia:fr as ZéroBot via API. ==== API action:login ==== lgname: ZéroBot lgpassword: *** ---------------- Requesting API query from wikipedia:fr ==== API action:login ==== lgname: ZéroBot lgtoken: 1cbee4b71ee3c03363e1d85b79dc5fba lgpassword: *** ---------------- Requesting API query from wikipedia:fr ==== API action:login ==== lgname: ZéroBot lgtoken: be0f42b9b6778203a80ab0171d5cc346 lgpassword: *** ---------------- Requesting API query from wikipedia:fr ==== API action:login ==== lgname: ZéroBot lgtoken: f45811161005473d48511a18a5bebe7d lgpassword: *** ---------------- Requesting API query from wikipedia:fr ==== API action:login ==== lgname: ZéroBot lgtoken: 409f6a00197bbeed539b33c23430f43f lgpassword: *** ---------------- Requesting API query from wikipedia:fr ==== API action:login ==== lgname: ZéroBot lgtoken: b129317b65966dd3477020e6949b691f lgpassword: *** ---------------- Requesting API query from wikipedia:fr ==== API action:login ==== lgname: ZéroBot lgtoken: 8d1d95b7b6f4f865829b3fd98bdfaf25 lgpassword: *** ---------------- Requesting API query from wikipedia:fr
This suite keeps repeating but each time, the value of lgtoken is different.
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-04-09 15:03
Message: Sorry, must be
use_api_login = True
I'll make it as default
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-04-09 14:46
Message: Please confirm that your user-config.py contains the following line:
use_api_login = False
use double verbose option -v -v for the next tries and give us the result. First use -clean option to ensure you are logged out and the cookies are deleted. Verify that the file <family>-<lang>-<user>-login.data does not exist, for example wikipedia-fr-ZéroBot-login.data Verify there is no remaining <family>-<user>-central-login.data Try again to login (with -force option): login.py -force -v -v
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2010-04-09 12:49
Message: Still doesn't work for my bot too. My bot doesn't want to connect any more on wikipedia even after updating pywikipedia.
python login.py Password for user ZéroBot on wikipedia:fr: Logging in to wikipedia:fr as ZéroBot Login failed. Wrong password or CAPTCHA answer?
Configuration : Mac OS X 10.6.3
python version.py Pywikipedia [http] trunk/pywikipedia (r8069, 2010/04/09, 11:13:53) Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) [GCC 4.0.1 (Apple Inc. build 5493)]
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16) Date: 2010-04-09 11:49
Message: still doesn't work for my bot and some others in ru.wiki
C:\pt>python login.py Password for user Rubinbot on wikipedia:ru: Logging in to wikipedia:ru as Rubinbot Login failed. Wrong password or CAPTCHA answer?
C:\pt>python version.py Pywikipedia [http] trunk/pywikipedia (r8069, 2010/04/09, 11:13:53) Python 2.6.3 (r263:75183, Oct 5 2009, 14:41:55) [MSC v.1500 32 bit (Intel)]
I've checked - the password is correct, I've tryed to create new user-config.py - it doesn't work. I think this bug shouldn't be marked as fixed yet
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya) Date: 2010-04-07 20:05
Message: Yes, it should be separate but only on my second comment I got sure of it :) anyway, I now get : Should be logged in now *** Your username is not listed on [[Wikipedia:Bots/Status]]. *** Please make sure you are allowed to use the robot before actually using it!
But my bot is listed there. Maybe the physical text has changed... Thanks
----------------------------------------------------------------------
Comment By: Russell Blau (russblau) Date: 2010-04-07 19:56
Message: That typo is really a separate bug, but it's fixed in r8062 [anyway, I think your bot is logged in even though you got the error message]
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya) Date: 2010-04-07 19:47
Message: It seems to be linked to xqt's changeset #8055 where the bot status page is changed to Wikipedia:Bot/Status. In en.wikipedia, this is (still) Wikipedia:Bots/Status (plural form). What's the fix?
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya) Date: 2010-04-07 19:41
Message: I was since I had problems with API login not working properly and requiring the bot to re-login (unsuccessfully) on every edit. I just retried API login but I get an exception while logging in to en.wikipedia (only en.wikipedia and not anywhere else so far):
Logging in to wikipedia:en as MalafayaBot via API. Should be logged in now Traceback (most recent call last): File "D:\Work\pywikipedia\login.py", line 413, in <module> main() File "D:\Work\pywikipedia\login.py", line 409, in main loginMan.login() File "D:\Work\pywikipedia\login.py", line 306, in login if not self.botAllowed(): File "D:\Work\pywikipedia\login.py", line 119, in botAllowed for linkedPage in botListPage.linkedPages(): File "D:\Work\pywikipedia\wikipedia.py", line 2194, in linkedPages thistxt = removeLanguageLinks(self.get(get_redirect=True), File "D:\Work\pywikipedia\wikipedia.py", line 618, in get self._contents = self._getEditPage(get_redirect = get_redirect, throttle = t hrottle, sysop = sysop) File "D:\Work\pywikipedia\wikipedia.py", line 688, in _getEditPage raise NoPage(self.site(), self.aslink(forceInterwiki = True),"Page does not exist. In rare cases, if you are certain the page does exist, look into overridi ng family.RversionTab" ) pywikibot.exceptions.NoPage: (wikipedia:en, u'[[en:Wikipedia:Bot/Status]]', 'Pag e does not exist. In rare cases, if you are certain the page does exist, look in to overriding family.RversionTab')
Version info: Pywikipedia [http] trunk/pywikipedia (r8061, 2010/04/07, 14:37:56) Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: Russell Blau (russblau) Date: 2010-04-07 17:19
Message: It should be fixed for everyone using API login (need the line use_api_login = True in user-config.py). If there is anyone out there not using API login, you need to change your user-config file.
----------------------------------------------------------------------
Comment By: Multichill (multichill) Date: 2010-04-07 16:51
Message: Looks like this was fixed in 8061 by russblau. I assigned the bug to him.
----------------------------------------------------------------------
Comment By: Micthev (micthev) Date: 2010-04-07 13:45
Message: bug reported on en.wikipedia : http://en.wikipedia.org/wiki/Wikipedia:Bot_owners%27_noticeboard#Bots_and_Lo...
----------------------------------------------------------------------
Comment By: Harri Vartiainen (harriv) Date: 2010-04-07 13:26
Message: This should be high priority, since no pywikipedia bot can login Wikipedia before this is resolved.
----------------------------------------------------------------------
Comment By: Micthev (micthev) Date: 2010-04-07 12:19
Message: For me too, the url of bugzilla is https://bugzilla.wikimedia.org/show_bug.cgi?id=23076
and in fact on browser the captcha is not requested
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2983182...
pywikipedia-bugs@lists.wikimedia.org