Last modified: 2011-04-30 01:20:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24780, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22780 - Pywikipediabot stopped working on recent checkout
Pywikipediabot stopped working on recent checkout
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.15.x
All All
: Normal blocker (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-09 12:48 UTC by alex+mwbugzilla
Modified: 2011-04-30 01:20 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description alex+mwbugzilla 2010-03-09 12:48:59 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....
Comment 1 Roan Kattouw 2010-03-09 12:52:40 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links