Bugs item #2310437, was opened at 2008-11-18 20:06 Message generated for change (Settings changed) made by silvonen You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2310437...
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: General Group: None Status: Closed
Resolution: Duplicate
Priority: 5 Private: No Submitted By: Mikko Silvonen (silvonen) Assigned to: Nobody/Anonymous (nobody) Summary: NameError in wikipedia.py: useCookie not defined
Initial Comment: I got this error in the middle of an autonomous interwiki run.
Updating links on page [[ar:gbl ky 2]]. Changes to be made: a'dafth: [[ku:K2]] + [[ku:K2]]
NOTE: Performing a recursive query first to save time.... NOTE: Nothing left to do 2 NOTE: Updating live wiki... Sleeping for 19.0 seconds, 2008-11-18 19:20:15 Changing page [[ar:gbl ky 2]] Dump et (wikipedia) saved Traceback (most recent call last): File "interwiki.py", line 1766, in <module> bot.run() File "interwiki.py", line 1515, in run self.queryStep() File "interwiki.py", line 1494, in queryStep subj.finish(self) File "interwiki.py", line 1090, in finish if self.replaceLinks(page, new, bot): File "interwiki.py", line 1233, in replaceLinks status, reason, data = page.put(newtext, comment = wikipedia.translate(page.site().lang, msg)[0] + mods) File "c:\svn\pywikipedia\wikipedia.py", line 1376, in put newPage, self.site().getToken(sysop = sysop), sysop = sysop) File "c:\svn\pywikipedia\wikipedia.py", line 1468, in _putPage response, data = self.site().postForm(address, predata, sysop) File "c:\svn\pywikipedia\wikipedia.py", line 4430, in postForm cookies=self.cookies(sysop = sysop)) File "c:\svn\pywikipedia\wikipedia.py", line 4481, in postData return self.postData(address, data, contentType, sysop, useCookie, compress, cookie) NameError: global name 'useCookie' is not defined
python version.py
Pywikipedia [http] trunk/pywikipedia (r6103, Nov 16 2008, 11:53:14) Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen) Date: 2008-11-18 21:01
Message: This artifact has been marked as a duplicate of artifact 2091292 with reason: Same error, same method
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen) Date: 2008-11-18 21:00
Message: Oops, this is a duplicate of 2091292 (although in my case the bot exited and didn't continue the run).
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2310437...