https://bugzilla.wikimedia.org/show_bug.cgi?id=56042
Web browser: --- Bug ID: 56042 Summary: pagenotfound error while running replace,py with compat Product: Pywikibot Version: compat (1.0) Hardware: All OS: All Status: NEW Severity: major Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: basvb_wikipedia@live.nl Classification: Unclassified Mobile Platform: ---
When I'm running pywikibot with replace.py I do sometimes (like once every 6-7 pages replaced) get an error which stops the replace to run.
Traceback (most recent call last): File "replace.py", line 967, in <module> main() File "replace.py", line 956, in main bot.run() File "replace.py", line 542, in run page.put(new_text, self.editSummary) File "C:\compat\compat\wikipedia.py", line 2112, in put sysop = sysop, botflag=botflag, maxTries=maxTries) File "C:\compat\compat\wikipedia.py", line 2203, in _putPage response, data = query.GetData(params, self.site(), sysop=sysop, back_respon se = True) File "C:\compat\compat\pywikibot\support.py", line 121, in wrapper return method(*__args, **__kw) File "C:\compat\compat\query.py", line 135, in GetData res, jsontext = site.postForm(path, params, sysop, site.cookies(sysop = syso p) ) File "C:\compat\compat\wikipedia.py", line 6495, in postForm cookies=cookies) File "C:\compat\compat\wikipedia.py", line 6549, in postData raise PageNotFound(u'Page %s could not be retrieved. Check your family file ?' % url) pywikibot.exceptions.PageNotFound: Page https://commons.wikimedia.org/w/api.php could not be retrieved. Check your family file ?
The family is set as: family = 'commons' mylang = 'commons'
the command used is: python replace.py -namespace:6 -cat:RCE_suggested:_Centrum -summary:"Remove RCE-tag suggestion (this specific tag is not useful)" "{{RCE-subject|Centrum}}" ""
but the issue also occures on other commands and when entering a wrong password in the login.py (only at first attempt so far).
version information: Pywikibot: wikipedia.py (r-1 (unknown), ???????, 2013/10/23, 12:56:06, OUTDATED)
Release version: 1.0b1 Python: 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] config-settings: use_api = True use_api_login = True unicode test: ok