Bugs item #1817623, was opened at 2007-10-22 08:40
Message generated for change (Comment added) made by a_engels
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=181762…
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: Fixed
Priority: 5
Private: No
Submitted By: AnMaster (anmaster)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py crash "Language aa does not exist..."
Initial Comment:
$ python -O interwiki.py -start:! -whenneeded
Checked for running processes. 1 processes currently running, including the current
process.
Missing main page name
NOTE: Number of pages queued is 0, trying to add 60 more.
Retrieving Allpages special page for gentoo:en from %21, namespace 0
Getting 60 pages from gentoo:en...
Sleeping for 27.1 seconds, 2007-10-22 08:37:17
NOTE: [[en:2005-08 Screenshots]] does not have any interwiki links
NOTE: [[en:2005-09 Screenshots]] does not have any interwiki links
NOTE: [[en:2005-10 Screenshots]] does not have any interwiki links
NOTE: [[en:2005-11 Screenshots]] does not have any interwiki links
<snip>
NOTE: [[en:Admin Support Systems]] does not have any interwiki links
NOTE: [[en:Advanced Emerge World]] does not have any interwiki links
NOTE: [[en:Ae-current-ebuilds]] does not have any interwiki links
======Post-processing [[en:Ae-current-ebuilds]]======
Updating links on page [[en:Ae-current-ebuilds]].
No changes needed
Dump en (gentoo) saved
Traceback (most recent call last):
File "interwiki.py", line 1580, in ?
bot.run()
File "interwiki.py", line 1357, in run
self.queryStep()
File "interwiki.py", line 1336, in queryStep
subj.finish(self)
File "interwiki.py", line 904, in finish
site = wikipedia.getSite(code = siteCode)
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 4922, in getSite
_sites[key] = Site(code=code, fam=fam, user=user, persistent_http=persistent_http)
File "/home/arvid/wikibots/gentoo-wiki/wikipedia.py", line 3566, in __init__
raise KeyError("Language %s does not exist in family
%s"%(self.lang,self.family.name))
KeyError: 'Language aa does not exist in family gentoo'
And indeed
gentoo-wiki.com does not have such a language.
----------------------------------------------------------------------
Comment By: Andre Engels (a_engels)
Date:
2007-10-24 17:40
Message:
Logged In: YES
user_id=843018
Originator: NO
Solved this in interwiki.py (revision 4478). The reason I did not get the
same bug was that I forgot to use the -whenneeded option. -whenneeded used
family.knownlanguages to go through the languages that are not in
family.languages_by_size; this has now been changed to family.langs.keys()
which is usually adapted to the local language set.
----------------------------------------------------------------------
Comment By: AnMaster (anmaster)
Date: 2007-10-24 09:26
Message:
Logged In: YES
user_id=1370979
Originator: YES
my user-config.py:
mylang = 'en'
family = 'gentoo'
usernames['gentoo']['en'] = u'AnMasterBot'
console_encoding = 'utf-8'
cosmetic_changes = True
minthrottle = 30
maxthrottle = 35
put_throttle = 60
----------------------------------------------------------------------
Comment By: AnMaster (anmaster)
Date: 2007-10-24 09:24
Message:
Logged In: YES
user_id=1370979
Originator: YES
I have current version (last svn), and I checked that there are no obvious
errors in user-conig.py. Not sure what to check user-conig.py for though.
----------------------------------------------------------------------
Comment By: Andre Engels (a_engels)
Date: 2007-10-22 12:16
Message:
Logged In: YES
user_id=843018
Originator: NO
Works correctly for me:
<snip>
NOTE: [[en:Ae-current-ebuilds]] does not have any interwiki links
=====Post-processing [[en:Ae-current-ebuilds]]=====
=====Post-processing [[en:Advanced Emerge World]]=====
=====Post-processing [[en:Admin Support Systems]]=====
<snip>
Please:
1. Ensure you have a current version, at least of interwiki.py and
wikipedia.py, but preferably of the whole framework
2. Check your user-conig.py
And send a reaction back if that does not solve the problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=181762…