Support Requests item #3065711, was opened at 2010-09-14 04:14 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3065711...
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: xqt (xqt) Summary: replace.py appears to be broken with MW 1.15.5 on Ubuntu
Initial Comment: On Ubuntu 10.04 and 8.04, when I try to run replace.py from the 2010-09-13 version in SVN:
Traceback (most recent call last): File "/path/to/pywikipedia/pagegenerators.py", line 1225, in __iter__ for page in self.wrapped_gen: File "/path/to/pywikipedia/pagegenerators.py", line 1157, in DuplicateFilterPageGenerator for page in generator: File "path/to/pywikipedia/pagegenerators.py", line 617, in AllpagesPageGenerator includeredirects=includeredirects): File "/path/to/pywikipedia/wikipedia.py", line 6431, in allpages for p in data['query']['allpages']: KeyError: 'query' 'query'
Replace.py works on an identical installation on a Mac using the same versions of Apache, PHP, and MySQL. This problem showed up when I upgraded to MW 1.15.5 from 1.15.4 on Ubuntu - no problems whatsoever on the Mac after the upgrade.
I would prefer to go to 1.16, but I am using an extension (SMWHalo) that does not yet work with that version.
Any ideas? The problem arises no matter what I put in the command line, but works just fine on the Mac. I can edit locally and upload to the Ubuntu installations, but this is not a viable long-term solution.
Unfortunately, I don't have the time to learn Python to try to identify the error - but I do know that it pywikipediabot shouldn't completely break every time there is a minor upgrade to MediaWiki. It's great when it works, but when it doesn't, I find myself wishing for less fragile solution.
----------------------------------------------------------------------
Comment By: SourceForge Robot (sf-robot)
Date: 2010-09-29 19:34
Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-09-15 10:16
Message: btw. allpages() hasn't changed since r8350 http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/wikipedia.py?r...
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-09-15 10:14
Message: Try r8560 and check it with -verbose. It looks like an API error since 'query' is not in data object.
Maybe there is something wrong with json module? You have different Python versions.
----------------------------------------------------------------------
Comment By: https://www.google.com/accounts () Date: 2010-09-14 04:31
Message: Update: On further investigation, it looks like there was some sort of change introduced in pywikipediabot, NOT mediawiki.
Version string on the Mac:
Pywikipedia nightly:pywikipedia (r8350, 2010/07/09, 08:02:52) Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) [GCC 4.2.1 (Apple Inc. build 5646)] config-settings: use_api = True use_api_login = True
On one of the Ubuntu boxes:
Pywikipedia [http] trunk/pywikipedia (r8551, 2010/09/13, 15:49:35) Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] config-settings: use_api = True use_api_login = True
Any ideas?
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3065711...
pywikipedia-bugs@lists.wikimedia.org