[Pywikipedia-l] [ pywikipediabot-Bugs-2310437 ] NameError in wikipedia.py: useCookie not defined

SourceForge.net noreply at sourceforge.net
Tue Nov 18 18:06:15 UTC 2008


Bugs item #2310437, was opened at 2008-11-18 20:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2310437&group_id=93107

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: Open
Resolution: None
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)]


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2310437&group_id=93107



More information about the Pywikipedia-l mailing list