Bugs item #1770747, was opened at 2007-08-09 05:06 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1770747...
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: Closed Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: initialisation error
Initial Comment: My bot fails right at the first LOC
import pagegenerators, wikipedia
with
File "script.py", line 14, in ? import pagegenerators, wikipedia File "pagegenerators.py", line 85, in ? import wikipedia, date, catlib File "wikipedia.py", line 4217, in ? getSite() File "wikipedia.py", line 4128, in getSite _sites[key] = Site(code=code, fam=fam, user=user) File "wikipedia.py", line 3101, in __init__ if not language[0].upper() + language[1:] in self.namespaces(): IndexError: string index out of range
Used to work earlier.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2007-08-10 02:26
Message: Logged In: NO
Many thanks!
----------------------------------------------------------------------
Comment By: Misza13 (misza13) Date: 2007-08-09 09:15
Message: Logged In: YES user_id=1686644 Originator: NO
Fixed in r4020 - 'wikisource.org' will now use '-' as the language key.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2007-08-09 06:11
Message: Logged In: NO
my user-config.py:
mylang = 'en' family = 'wikisource' usernames['wikisource']['en'] = 'TalBot' sysopnames['wikisource']['en'] = 'TalBot' console_encoding = 'utf-8'
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2007-08-09 06:10
Message: Logged In: NO
I believe the change
--- trunk/pywikipedia/families/wikisource_family.py 2007/07/25 11:56:14 3896 +++ trunk/pywikipedia/families/wikisource_family.py 2007/08/07 19:44:17 3994 @@ -11,6 +11,7 @@ self.name = 'wikisource'
self.langs = { + '':'wikisource.org', 'dk':'da.wikisource.org', 'jp':'ja.wikisource.org', 'minnan':'zh-min-nan.wikisource.org',
from revision 3994 to wikisource_family.py is the culprit: the added language has the empty string as key.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw) Date: 2007-08-09 05:12
Message: Logged In: YES user_id=687283 Originator: NO
Please post your user-config.py
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1770747...