Support Requests item #3019475, was opened at 2010-06-22 08:59
Message generated for change (Comment added) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019475&group_…
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: Install Problem
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: No JSON object could be decoded
Initial Comment:
On Ubuntu 10.04, Karmic LAMP (PHP 5.2) Python 2.6.5, pywikipediabot from 2010-05-29 SVN, using identical server and bot configuration files as on a Mac setup (however, in this case, pywikipediabot reports an IP address, so I didn't need to hack httpd.conf), I get the following:
"Logging into FamilyName:en as UserName via API
Error downloading data: No JSON object could be decoded
Request en:/scriptpath/api.php?
Retrying in x seconds
I changed this to milliseconds to timely see the final error message, which is:
ERROR: ApiGetDataParse cause error No JSON object could be decoded
The program also creates a dump file containing the following:
Error reported: No JSON object could be decoded
127.0.0.1
/scriptpath/api.php?
<feff>{"login":{"result":"NeedToken","token":"[some md5-looking hash]"}}
Any ideas?
----------------------------------------------------------------------
>Comment By: https://www.google.com/accounts ()
Date: 2010-06-22 17:21
Message:
Thanks for the suggestions and thanks for taking a look.
I'm using the stock 3321-byte api.php from MediaWiki 1.15.4, downloaded
straight from mediawiki.org, dated 2009-05-05 (extracted from the tarball
via tar zxf). I am using a default (apt-get) install of python 2.6.4 on a
fresh install of Ubuntu 10.04, and I just checked out the latest
pywikipediabot from svn via svn co
http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia pywikipedia
several hours ago. I've disabled the confusing mess that is AppArmor, so
there should be no issues there. My terminal is set to UTF-8 encoding.
I get the same problem with python 2.5.4 (e.g., "python2.5 login.py"), but
only on this particular machine.
I have made no changes to urllib2, which is what login.py imports by
default, and I have made no changes to urllib, which is what a default
family file imports.
The family file I am using was created on a Mac in vim. As far as I know,
vim doesn't add UTF-16 BOMs unless explicitly asked to do so, and I have
not explicitly done that. Just in case, on the linux box, I created a new
file and copy-pasted the family file text into it, renamed the old one,
renamed the new one properly, deleted all .pyc files, and I still get this
error. I have changed urllib2 to urllib and vice versa in each, both, and
neither of login.py and the family file, all with the same result.
Here is some more error output, although I am not sure if it helps:
ERROR: ApiGetDataParse caused error No JSON object could be decoded
127.0.0.1
/scriptpath/api.php?. Dump
ApiGetDataParse_FamilyName_en__Tue_Jun_22_18-54-23_2010.dump created.
Traceback (most recent call last):
File "login.py", line 437, in <module>
main()
File "login.py", line 433, in main
loginMan.login()
File "login.py", line 320, in login
cookiedata = self.getCookie(api)
File "login.py", line 182, in getCookie
response, data = query.GetData(predata, self.site, sysop=self.sysop,
back_response = True)
File "/home/user/bots/pywikipedia/query.py", line 170, in GetData
raise lastError
ValueError: No JSON object could be decoded
It looks like BeautifulSoup.py (starting at 1828) should strip out any
<feff> BOMs and replace them with null characters, but it doesn't seem to
be doing that.
I'm using completely stock installs of everything, straight from svn,
repositories, and official websites. My family file is built straight from
the template, and it is identical to the one that works on the Mac and on
an Ubuntu 8.04 install of the same wiki.
I have tried
python login.py -v -clean
and I get the following when viewing the dumpfile via cat:
Error reported: No JSON object could be decoded
127.0.0.1
/hcrscript/api.php?action=logout&format=json
[]
and this, when viewing the dumpfile in vim:
Error reported: No JSON object could be decoded
127.0.0.1
/hcrscript/api.php?action=logout&format=json
<feff>[]
As for other potentially-relevant info, I am using short URLs via
httpd.conf aliases, but this should make no difference at all, as it works
on other systems running php 5.2 and apache 2.2.
alias /scriptpath /path/to/scriptpath
alias /wiki /path/to/scriptpath/index.php
I have /scriptpath set as as the scriptpath in my family file, and my
api.php call is to '%s/api.php' (I have also tried u'%s/api.php' to try to
get BeautifulSoup to convert any errant unicode - I still get the identical
errors).
My syslog and /var/log/messages show no errors, and apache reports "POST
/hcrscript/api.php HTTP/1.1" 200".
I've tried uncommenting the "raise NotImplementedError" line in my family
file and commenting out use_api_login = True in my user-config.py file (or
leaving it as-is), but this just returns:
API disabled because this site does not support.
Retrying by ordinary way...
Logging in to Wiki:en as UserName
Login failed. Wrong password or CAPTCHA answer?
I'm completely stumped.
Thanks for any suggestions/advice you may have....
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-06-22 09:59
Message:
The <feff> is a UTF-16 BOM. Either urllib was changed, or you made some
change to api.php, accidentally adding it. Could you double-check if your
api.php is unchanged from the original mediawiki files (in other words:
replace it with an orginal from SVN/release)?
----------------------------------------------------------------------
Comment By: https://www.google.com/accounts ()
Date: 2010-06-22 09:06
Message:
Looking at some earlier logs, I see that this problem first appeared when I
upgraded from Python 2.6.1 to 2.6.2 in May. I am surprised that I seem to
be the only person having this problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019475&group_…
Bugs item #2983182, was opened at 2010-04-07 14:11
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2983182&group_…
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: 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: xqt (xqt)
Date: 2010-06-22 13:25
Message:
give me the results of your version.py please.
----------------------------------------------------------------------
Comment By: https://www.google.com/accounts ()
Date: 2010-06-22 11:22
Message:
Does NOT work for me on Python 2.6.4. :(
----------------------------------------------------------------------
Comment By: Toto Azéro (toto-azero)
Date: 2010-04-09 18:58
Message:
OK thanks ! that work well in r8072 !
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-04-09 18: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 18:34
Message:
I have it!
Fix coming soon...
----------------------------------------------------------------------
Comment By: Toto Azéro (toto-azero)
Date: 2010-04-09 17: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 17:03
Message:
Sorry, must be
use_api_login = True
I'll make it as default
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-04-09 16: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 14: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 13: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 22: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 21: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 21: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 21: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 19: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 18: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 15:45
Message:
bug reported on en.wikipedia :
http://en.wikipedia.org/wiki/Wikipedia:Bot_owners%27_noticeboard#Bots_and_L…
----------------------------------------------------------------------
Comment By: Harri Vartiainen (harriv)
Date: 2010-04-07 15: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 14: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&group_…
Bugs item #3018780, was opened at 2010-06-20 20:14
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3018780&group_…
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: None
Group: None
>Status: Closed
Resolution: Duplicate
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: xqt (xqt)
Summary: redirect.py ignore -namespace
Initial Comment:
version.py:
Pywikipedia [http] trunk/pywikipedia (r8153, 2010/05/10, 06:52:26)
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
config-settings:
use_api = True
use_api_login = True
Trying to find double redirects with 'python redirect.py double -namespace:0' will also fix redirects in other namespace, like -namespace is ignored, also the same with ''python redirect.py -namespace:0 double'
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-21 08:35
Message:
-namespace is not a valid option for redirect.py. This request is also
done in feature request #1720428
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3018780&group_…
Support Requests item #3019475, was opened at 2010-06-22 10:59
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019475&group_…
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: Install Problem
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: No JSON object could be decoded
Initial Comment:
On Ubuntu 10.04, Karmic LAMP (PHP 5.2) Python 2.6.5, pywikipediabot from 2010-05-29 SVN, using identical server and bot configuration files as on a Mac setup (however, in this case, pywikipediabot reports an IP address, so I didn't need to hack httpd.conf), I get the following:
"Logging into FamilyName:en as UserName via API
Error downloading data: No JSON object could be decoded
Request en:/scriptpath/api.php?
Retrying in x seconds
I changed this to milliseconds to timely see the final error message, which is:
ERROR: ApiGetDataParse cause error No JSON object could be decoded
The program also creates a dump file containing the following:
Error reported: No JSON object could be decoded
127.0.0.1
/scriptpath/api.php?
<feff>{"login":{"result":"NeedToken","token":"[some md5-looking hash]"}}
Any ideas?
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-06-22 11:59
Message:
The <feff> is a UTF-16 BOM. Either urllib was changed, or you made some
change to api.php, accidentally adding it. Could you double-check if your
api.php is unchanged from the original mediawiki files (in other words:
replace it with an orginal from SVN/release)?
----------------------------------------------------------------------
Comment By: https://www.google.com/accounts ()
Date: 2010-06-22 11:06
Message:
Looking at some earlier logs, I see that this problem first appeared when I
upgraded from Python 2.6.1 to 2.6.2 in May. I am surprised that I seem to
be the only person having this problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019475&group_…
Support Requests item #3019471, was opened at 2010-06-22 10:45
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019471&group_…
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: Install Problem
Group: None
>Status: Closed
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Bot reports no IP address on localhost
Initial Comment:
I run a locked-down server that denies access to all but 127.0.0.1 via httpd.conf. Recently, I have not been able to login with the bot, whereas I was able to previously.
I removed the restriction (relying only on a firewall), and now I could login via the API, but I see the following in the logs:
::1 - - [22/Jun/2010:11:30:41 +0300] "POST /scriptpath/api.php HTTP/1.1" 200 91
whereas I would expect to see
127.0.0.1 - - [22/Jun/2010:11:30:41 +0300] "POST /scriptpath/api.php HTTP/1.1" 200 91
This appears to be new behavior, but I am not sure when it appeared, and due to the rolling nature of the bot's development, I am not sure whether it was a change to Python, the bot, or the way my OS handles Python that did this.
I was able to work around the issue by modifying my httpd.conf
My httpd.conf includes the following:
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
I added
Allow from ::1
This seems to work around the problem, but it seems a bit odd (to me, at least) that the bot reports no IP address on a local system when connecting to localhost.
For what it's worth, this is on Mac OS 10.6.3 with Python 2.6.1.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-06-22 11:53
Message:
First of all, the logs you post are from apache, not from pywikipediabot.
They do show a localhost IP address: ::1, the IPv6 localhost address, while
you were expecting 127.0.0.*, the IPv4 localhost address.
If you want to use IPv4, use '127.0.0.1' explicitly instead of
'localhost'.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019471&group_…
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&group_…
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: Closed
Resolution: Fixed
Priority: 9
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-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_L…
----------------------------------------------------------------------
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&group_…
Support Requests item #3019475, was opened at 2010-06-22 08:59
Message generated for change (Comment added) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019475&group_…
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: Install Problem
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: No JSON object could be decoded
Initial Comment:
On Ubuntu 10.04, Karmic LAMP (PHP 5.2) Python 2.6.5, pywikipediabot from 2010-05-29 SVN, using identical server and bot configuration files as on a Mac setup (however, in this case, pywikipediabot reports an IP address, so I didn't need to hack httpd.conf), I get the following:
"Logging into FamilyName:en as UserName via API
Error downloading data: No JSON object could be decoded
Request en:/scriptpath/api.php?
Retrying in x seconds
I changed this to milliseconds to timely see the final error message, which is:
ERROR: ApiGetDataParse cause error No JSON object could be decoded
The program also creates a dump file containing the following:
Error reported: No JSON object could be decoded
127.0.0.1
/scriptpath/api.php?
<feff>{"login":{"result":"NeedToken","token":"[some md5-looking hash]"}}
Any ideas?
----------------------------------------------------------------------
>Comment By: https://www.google.com/accounts ()
Date: 2010-06-22 09:06
Message:
Looking at some earlier logs, I see that this problem first appeared when I
upgraded from Python 2.6.1 to 2.6.2 in May. I am surprised that I seem to
be the only person having this problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019475&group_…
Support Requests item #3019475, was opened at 2010-06-22 08:59
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019475&group_…
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: Install Problem
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: No JSON object could be decoded
Initial Comment:
On Ubuntu 10.04, Karmic LAMP (PHP 5.2) Python 2.6.5, pywikipediabot from 2010-05-29 SVN, using identical server and bot configuration files as on a Mac setup (however, in this case, pywikipediabot reports an IP address, so I didn't need to hack httpd.conf), I get the following:
"Logging into FamilyName:en as UserName via API
Error downloading data: No JSON object could be decoded
Request en:/scriptpath/api.php?
Retrying in x seconds
I changed this to milliseconds to timely see the final error message, which is:
ERROR: ApiGetDataParse cause error No JSON object could be decoded
The program also creates a dump file containing the following:
Error reported: No JSON object could be decoded
127.0.0.1
/scriptpath/api.php?
<feff>{"login":{"result":"NeedToken","token":"[some md5-looking hash]"}}
Any ideas?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019475&group_…
Support Requests item #3019471, was opened at 2010-06-22 08:45
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019471&group_…
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: Install Problem
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Bot reports no IP address on localhost
Initial Comment:
I run a locked-down server that denies access to all but 127.0.0.1 via httpd.conf. Recently, I have not been able to login with the bot, whereas I was able to previously.
I removed the restriction (relying only on a firewall), and now I could login via the API, but I see the following in the logs:
::1 - - [22/Jun/2010:11:30:41 +0300] "POST /scriptpath/api.php HTTP/1.1" 200 91
whereas I would expect to see
127.0.0.1 - - [22/Jun/2010:11:30:41 +0300] "POST /scriptpath/api.php HTTP/1.1" 200 91
This appears to be new behavior, but I am not sure when it appeared, and due to the rolling nature of the bot's development, I am not sure whether it was a change to Python, the bot, or the way my OS handles Python that did this.
I was able to work around the issue by modifying my httpd.conf
My httpd.conf includes the following:
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
I added
Allow from ::1
This seems to work around the problem, but it seems a bit odd (to me, at least) that the bot reports no IP address on a local system when connecting to localhost.
For what it's worth, this is on Mac OS 10.6.3 with Python 2.6.1.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019471&group_…
Feature Requests item #1720428, was opened at 2007-05-17 02:30
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1720428&group_…
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: None
Group: None
Status: Open
>Priority: 6
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: redirect.py should allow processing only certain namespaces
Initial Comment:
It Would Be Nice(TM) if there was an option for redirect.py to only process certain namespaces (or all namespaces _except_ certain ones). That way, the bot could be configured to not waste time on editing, say, user subpages.
For background, see:
http://en.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard#Double…http://en.wikipedia.org/w/index.php?title=User_talk:Guettarda&diff=13048073…
--
Ilmari Karonen (nospam(a)vyznev.net)
http://en.wikipedia.org/wiki/User:Ilmari_Karonen
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-06-21 08:36
Message:
Also requested by #3018780
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1720428&group_…