Bugs item #1978787, was opened at 2008-05-30 06:43 Message generated for change (Comment added) made by nicdumz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1978787...
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: Fixed
Priority: 5 Private: No Submitted By: Melancholie (melancholie)
Assigned to: NicDumZ — Nicolas Dumazet (nicdumz)
Summary: diskcache.py sometimes requests missing attribute 'SEEK_CUR'
Initial Comment: At least using PCLinuxOS and SuSE; Python 2.5.2:
Updating links on page [[tr:Kuban Irmağı]]. Changes to be made: Ekleniyor: [[eo:Kuban]] + [[eo:Kuban]]
NOTE: Updating live wiki... Changing page [[tr:Kuban Irmağı]] Dump eo (wikipedia) saved Traceback (most recent call last): File "interwiki.py", line 1717, in ? bot.run() File "interwiki.py", line 1468, in run self.queryStep() File "interwiki.py", line 1447, in queryStep subj.finish(self) File "interwiki.py", line 1035, in finish if self.replaceLinks(page, new, bot): File "interwiki.py", line 1186, in replaceLinks status, reason, data = page.put(newtext, comment = wikipedia.translate(page.site().lang, msg)[0] + mods) File "/wikipedia.py", line 1270, in put newPage, self.site().getToken(sysop = sysop), sysop = sysop) File "/wikipedia.py", line 1370, in _putPage if self.site().has_mediawiki_message("spamprotectiontitle")\ File "/wikipedia.py", line 4528, in has_mediawiki_message v = self.mediawiki_message(key) File "/wikipedia.py", line 4520, in mediawiki_message if self._mediawiki_messages[key] is None: File "/diskcache.py", line 99, in __getitem__ self.cache_file.seek(length, os.SEEK_CUR) AttributeError: 'module' object has no attribute 'SEEK_CUR'
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-05-30 07:50
Message: Logged In: YES user_id=1963242 Originator: NO
That seems to depend on the OS. I could not reproduce that behavior on my debian...
However, I found a python-list thread about this behavior, http://mail.python.org/pipermail/python-list/2006-March/375280.html and added the fix in r5469
Thanks for your reports melancholie, they do help :)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1978787...
pywikipedia-l@lists.wikimedia.org