Last modified: 2011-04-30 01:20:55 UTC
Previous known good configuration with pywikipediabot 2009-11 SVN version of pywikipediabot now throws following error with recent pywikipediabot SVN checkout upon attempted login: Error downloading data: No JSON object could be decoded Request en:/scriptpath/api.php?action=query&format=json&meta=userinfo&uiprop=blockinfo Retrying in 1 minutes... Dump output: ApiGetDataParse__en__Tue_Mar__9_07-26-38_2010.dump:{"error":{"code":"readapidenied","info":"You need read permission to use this module"}} I am running this on a local installation and I get the same error on clones of the system running on Ubuntu 9.04 (Python 2.6.2), Ubuntu 8.04 (Python 2.5.2) and Mac OS 10.6.2 (Python 2.5.2). This error was also present in MW 1.15.1. Older versions of pywikipediabot work - I'm really glad I saved previous checkouts! With a rolling development model, there's no way (that I can find) to get an older known good snapshot....
This is not a bug in the API. The wiki you're querying does not allow anonymous users to read pages, so you can't use the parse module when not logged in. pywikipedia bot needs to log in in order to use this module. If older versions of pywikipedia bot do work against the same wiki with the same configuration, this is a regression in pywikipediabot, not MediaWiki.