[Pywikipedia-l] [ pywikipediabot-Bugs-2214050 ] checkimages.py - failed to load category on ko.wp
SourceForge.net
noreply at sourceforge.net
Sun Nov 2 20:29:34 UTC 2008
Bugs item #2214050, was opened at 2008-11-01 15:22
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2214050&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Woo-Jin Kim (kwj2772)
Assigned to: Nobody/Anonymous (nobody)
Summary: checkimages.py - failed to load category on ko.wp
Initial Comment:
revision:6048
On ko.wikipedia, I tried to run this bot, but the bot has failed to load category which including license tags.
Note:Korean Wikipedia does not use Latin alphabet.
Error message:
C:\Python25\checkimage>checkimages.py -limit:200
Checked for running processes. 1 processes currently running, including the curr
ent process.
Retrieving the latest 200 files for checking...
...Loading the licenses allowed...
Loading 분류:그림 저작권 틀...
Execution time: 1
Traceback (most recent call last):
File "C:\Python25\checkimage\checkimages.py", line 1707, in <module>
checkbot()
File "C:\Python25\checkimage\checkimages.py", line 1615, in checkbot
mainClass = main(site, sendemailActive = sendemailActive, duplicatesReport =
duplicatesReport)
File "C:\Python25\checkimage\checkimages.py", line 575, in __init__
self.list_licenses = self.load_licenses()
File "C:\Python25\checkimage\checkimages.py", line 1087, in load_licenses
list_licenses = categoryAllPageObjects(catName)
File "C:\Python25\checkimage\checkimages.py", line 537, in categoryAllPageObje
cts
for element in categoryAllElements(CatName):
File "C:\Python25\checkimage\checkimages.py", line 515, in categoryAllElements
members = data['query']['categorymembers']
KeyError: 'query'
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2008-11-02 21:29
Message:
The api raises an error:
{u'error': {u'info': u'cmlimit may not be over 500 (set to 5000) for
users', u'code': u'cmlimit'}}
As a workaround, you could try changing line 508:
'cmlimit' :'5000',
to:
'cmlimit' :'500',
But the code /should/ just use continuation which is supported in the
api...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2214050&group_id=93107
More information about the Pywikipedia-l
mailing list