I've found one more thing...
Inside of query.py there are lines for loading json or simplejson:
try: #For Python 2.6 newer import json except ImportError: import simplejson as json
I am not using 2.6, but 2.5.4, but I have module json.
However, there are two json.loads commands:
# This will also work, but all unicode strings will need to be converted from \u notation # decodedObj = eval( jsontext ) if back_response: return res, json.loads( jsontext ) else: return json.loads( jsontext )
... and simplejson has it, but json doesn't. So, I've fixed my pywikipediabot by commenting try-except at the beginning and leaving just "import simplejson as json".