[Pywikipedia-l] [ pywikipediabot-Bugs-2214050 ] checkimages.py - failed to load category on ko.wp
SourceForge.net
noreply at sourceforge.net
Mon Nov 3 06:45:29 UTC 2008
Bugs item #2214050, was opened at 2008-11-01 23:22
Message generated for change (Comment added) made by kwj2772
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: Woo-Jin Kim (kwj2772)
Date: 2008-11-03 15:45
Message:
I tried to changing line 508. Another problem raised:
C:\Python25\checkimage>checkimages.py -limit:250
Checked for running processes. 1 processes currently running, including
the curr
ent process.
Retrieving the latest 250 files for checking...
...Loading the licenses allowed...
Loading 분류:그림 저작권 틀...
NOTE: You have new messages on wikipedia:ko
WARNING: Your account on wikipedia:ko does not have a bot flag. Its edits
will b
e visible in the recent changes and it may get blocked.
>> No additional settings found! <<
WARNING: Your account on wikipedia:ko does not have a bot flag. Its edits
will b
e visible in the recent changes and it may get blocked.
WARNING: Your account on wikipedia:ko does not have a bot flag. Its edits
will b
e visible in the recent changes and it may get blocked.
Execution time: 7
Traceback (most recent call last):
File "C:\Python25\checkimage\checkimages.py", line 1707, in <module>
checkbot()
File "C:\Python25\checkimage\checkimages.py", line 1692, in checkbot
resultCheck = mainClass.checkStep()
File "C:\Python25\checkimage\checkimages.py", line 1412, in checkStep
(license_found, hiddenTemplateFound) = self.smartDetection()
File "C:\Python25\checkimage\checkimages.py", line 1154, in
smartDetection
self.licenses_found = self.image.getTemplates()
File "C:\Python25\checkimage\wikipedia.py", line 937, in getTemplates
pageid = data['query']['pages'].keys()[0]
KeyError: 'query'
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2008-11-03 05: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