Bugs item #1641431, was opened at 2007-01-22 09:54
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1641431&group_…
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: interwiki
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: crash on warnfile.py
Initial Comment:
splitwarning.py
<all generated ok>
warnfile.py -lang:ca
Checked for running processes. 1 processes currently running, including the curr
ent process.
Parsing warnfile...
Fixing... 22 pages
Getting page [[Categoria:1250]]
Traceback (most recent call last):
File "warnfile.py", line 121, in
?
main()
File "warnfile.py", line 117, in
main
bot.run()
File "warnfile.py", line 94, in
run
mods, removing = interwiki.compareLanguages(old, new, insite = page.site())
ValueError: too many values to unpack
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2008-07-26 02:20
Message:
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2008-07-11 21:05
Message:
Logged In: YES
user_id=855050
Originator: NO
Does this report still need attention? Please update or the bug will be
closed automatically after 30 days.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1641431&group_…
Revision: 5754
Author: nicdumz
Date: 2008-07-24 18:06:40 +0000 (Thu, 24 Jul 2008)
Log Message:
-----------
nah, the sleep(1) trick was not working, moving the cache deletions at the end of _flush
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-07-24 17:38:01 UTC (rev 5753)
+++ trunk/pywikipedia/wikipedia.py 2008-07-24 18:06:40 UTC (rev 5754)
@@ -6393,16 +6393,6 @@
when it has stopped doing so. After a bot has run stopme() it will
not slow down other bots any more.
"""
- if config.use_diskcache:
- for site in _sites.itervalues():
- if site._mediawiki_messages:
- try:
- while(_putthread.isAlive()):
- time.sleep(1)
- site._mediawiki_messages.delete()
- except OSError:
- # stopme has been called several times...
- pass
get_throttle.drop()
def _flush():
@@ -6440,6 +6430,13 @@
get_throttle.drop()
except NameError:
pass
+ if config.use_diskcache:
+ for site in _sites.itervalues():
+ if site._mediawiki_messages:
+ try:
+ site._mediawiki_messages.delete()
+ except OSError:
+ pass
import atexit
atexit.register(_flush)
Bugs item #2026525, was opened at 2008-07-24 10:26
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2026525&group_…
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: NicDumZ Nicolas Dumazet (nicdumz)
Assigned to: Nobody/Anonymous (nobody)
Summary: diskcache fails with an IOError[22] in welcome.py
Initial Comment:
Traceback (most recent call last):
File "pywikipedia/welcome.py", line 967, in <module>
for number_user in main(settingsBot):
File "pywikipedia/welcome.py", line 704, in main
contrib = string.capitalize(wsite.mediawiki_message('contribslink'))
File "/home/filnik/pywikipedia/wikipedia.py", line 4678, in mediawiki_message
value = self._mediawiki_messages[key]
File "/home/filnik/pywikipedia/diskcache.py", line 94, in __getitem__
self.cache_file.seek(self.lookup[i])
IOError: [Errno 22] Invalid argument
Does that mean that some lookup values are still -1 even after the initialization ?
----------------------------------------------------------------------
>Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-07-24 19:40
Message:
Logged In: YES
user_id=1963242
Originator: YES
mmm... Running a custom script in another system, I got a much more
user-friendly message than "Invalid argument" : it complained about the
cache file not being found. I believe that this is caused by our deferred
put thread, which might still be running when stopme() is called.
I attempted, in r5753, to address this issue. Waiting a bit more before
closing this issue.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2026525&group_…