Bugs item #3470514, was opened at 2012-01-06 16:10
Message generated for change (Tracker Item Submitted) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=347051…
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: General
Group: None
Status: Open
Resolution: None
Priority: 3
Private: No
Submitted By: Merlijn S. van Deen (valhallasw)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wrong language with a one-site family can yield confusing er
Initial Comment:
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9820, 2011/12/29, 12:08:55)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
valhallasw@dorthonion:~/src/pywikipedia/trunk$ cat user-config.py
mylang='de'
site='botwiki'
usernames['botwiki']['de'] = u'valhallasw'
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python generate_family_file.py
http://botwiki.sno.cc/wiki/Main_Page botwiki
Generating family file from
http://botwiki.sno.cc/wiki/Main_Page
==================================
api url:
http://botwiki.sno.cc/w/api.php
MediaWiki version: 1.17.0
==================================
Determining other languages...
Loading wikis...
* en... in cache
Retrieving namespaces... en
Writing families/botwiki_family.py...
families/botwiki_family.py already exists. Overwrite? (y/n)y
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python login.py
Traceback (most recent call last):
File "login.py", line 436, in <module>
main()
File "login.py", line 431, in main
loginMan = LoginManager(password, sysop = sysop, verbose=verbose)
File "login.py", line 106, in __init__
raise pywikibot.NoUsername(u'ERROR: Username for %s:%s is undefined.\nIf you have
an account for that site, please add such a line to
user-config.py:\n\nusernames[\'%s\'][\'%s\'] = \'myUsername\''
% (self.site.family.name, self.site.lang, self.site.family.name, self.site.lang))
pywikibot.exceptions.NoUsername: ERROR: Username for botwiki:botwiki is undefined.
If you have an account for that site, please add such a line to user-config.py:
usernames['botwiki']['botwiki'] = 'myUsername'
however, the correct error message would be
valhallasw@dorthonion:~/src/pywikipedia/trunk$ python login.py
Traceback (most recent call last):
File "login.py", line 436, in <module>
main()
File "login.py", line 431, in main
loginMan = LoginManager(password, sysop = sysop, verbose=verbose)
File "login.py", line 106, in __init__
raise pywikibot.NoUsername(u'ERROR: Username for %s:%s is undefined.\nIf you have
an account for that site, please add such a line to
user-config.py:\n\nusernames[\'%s\'][\'%s\'] = \'myUsername\''
% (self.site.family.name, self.site.lang, self.site.family.name, self.site.lang))
pywikibot.exceptions.NoUsername: ERROR: Username for botwiki:botwiki is undefined.
If you have an account for that site, please add such a line to user-config.py:
usernames['botwiki']['en'] = 'myUsername'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=347051…