Bugs item #2926171, was opened at 2010-01-05 12:16 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926171...
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 Resolution: None Priority: 5 Private: No Submitted By: Yr Wyddfa (yrwyddfa)
Assigned to: xqt (xqt)
Summary: Errorkey: query
Initial Comment: Hi! I've got a problem activating pywikipediabot - scripts at our private wiki, and since today, the same error message while logging in. I'm using Linux ubuntu 9.04 and MediaWiki 1.14.0 Here is the terminal output: /pywikipedia$ python login.py Password for user weBot on Dairpedia:de: Logging in to Dairpedia:de as weBot Traceback (most recent call last): File "login.py", line 397, in <module> main() File "login.py", line 393, in main loginMan.login() File "login.py", line 282, in login cookiedata = self.getCookie(api) File "login.py", line 170, in getCookie response, data = self.site.postData(address, self.site.urlEncode(predata), sysop=self.sysop) File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5897, in postData self._getUserDataOld(text, sysop = sysop) File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 6168, in _getUserDataOld blocked = self._getBlock(sysop = sysop) File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5500, in _getBlock data = query.GetData(params, self)['query']['userinfo'] KeyError: 'query'
This KeyError also occured, when the login was successful and I tried to start any script. Please tell me if you need any additional data. Thanks a lot in advance!
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-01-05 18:51
Message: migth be a bug. Please try again with -verbose option to get more information about this. It seems the structure has been changed after mw 1.14
You also could try to run your bot with api disabled. Just put the following statements in your user-config.py:
use_api = False use_api_login = False
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926171...
pywikipedia-bugs@lists.wikimedia.org