Last modified: 2014-01-26 19:43:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60818, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58818 - PYWP-10 Login needed for reading site, causing NoUsername exceptions
PYWP-10 Login needed for reading site, causing NoUsername exceptions
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized blocker
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-21 21:56 UTC by Bugzilla Bug Importer (valhallasw)
Modified: 2014-01-26 19:43 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bugzilla Bug Importer (valhallasw) 2013-12-21 21:56:12 UTC
This issue was converted from https://jira.toolserver.org/browse/PYWP-10.
Summary: Login needed for reading site, causing NoUsername exceptions
Issue type: Bug - A problem which impairs or prevents the functions of the product.
Priority: Blocker
Status: Open
Assignee: Merlijn van Deen <valhallasw@arctus.nl>

On Fri, 21 Jan 2011 22:18:49, Merlijn van Deen <valhallasw@arctus.nl> opened the following bug:
> (pwbde)valhallasw@dorthonion:~/src/pwbde/pwb-
> flat/branches/rewrite/scripts$ cat test.py from pywikibot import
> Page, Site print Page(Site('de', 'wikipedia'), 'test').site
> (pwbde)valhallasw@dorthonion:~/src/pwbde/pwb-
> flat/branches/rewrite/scripts$ python test.py Traceback (most recent
> call last):   File "test.py", line 2, in <module>     print
> Page(Site('de', 'wikipedia'), 'test').site   File
> "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/page.py", line 94, in site
> return self._link.site   File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/page.py", line 2358, in site
> self.parse()   File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/page.py", line 2341, in parse     if
> self._site.case() == 'first-letter':   File
> "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/site.py", line 970, in case
> return self.siteinfo['case']   File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/site.py", line 964, in siteinfo
> self._getsiteinfo()   File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/site.py", line 921, in _getsiteinfo
> sidata = sirequest.submit()   File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/data/api.py", line 219, in submit
> self.site.login(False)   File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/site.py", line 703, in login
> user=self._username[sysop])   File "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/__init__.py", line 124, in wrapper
> return method(*__args, **__kw)   File "/home/valhallasw/src/pwbde
> /pwb-flat/branches/rewrite/pywikibot/__init__.py", line 124, in
> wrapper     return method(*__args, **__kw)   File
> "/home/valhallasw/src/pwbde/pwb-
> flat/branches/rewrite/pywikibot/login.py", line 105, in __init__
> 'wiki_code': self.site.code}) pywikibot.exceptions.NoUsername:
> ERROR: Username for wikipedia:de is undefined. If you have an
> account for that site, please add a line to user-config.py:
> usernames['wikipedia']['de'] = 'myUsername'
Comment 1 pyfisch 2014-01-26 18:56:04 UTC
I can not reproduce this bug. Maybe it was fixed?
Comment 2 Merlijn van Deen (test) 2014-01-26 19:43:52 UTC
I think so -- this was an issue a long time ago, but at some point I fixed it.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links