Page MenuHomePhabricator

Can't login to wikisource.org
Closed, InvalidPublic

Description

Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1572/
Reported by: Anonymous user
Created on: 2013-02-09 09:45:00
Subject: Can't login to wikisource.org
Original description:
I would like to be able to edit Wikisource with pywikipediabot; unlike all the other wikis, http://wikisource.org/ does not redirect to http://en.wikisource.org/ and thus I cannot login to wikisource.org without playing with each script.

The following was outputted when I tried
family = 'wikisource'
mylang = ''

Traceback \(most recent call last\):
File "C:\Python27\pywikipedia1\redirect.py", line 65, in <module>
import wikipedia as pywikibot
File "C:\Python27\pywikipedia1\wikipedia.py", line 8717, in <module>
getSite\(noLogin=True\)
File "C:\Python27\pywikipedia1\pywikibot\support.py", line 115, in wrapper
return method\(\*\_\_args, \*\*\_\_kw\)
File "C:\Python27\pywikipedia1\wikipedia.py", line 8471, in getSite
\_sites\[key\] = Site\(code=code, fam=fam, user=user\)
File "C:\Python27\pywikipedia1\pywikibot\support.py", line 115, in wrapper
return method\(\*\_\_args, \*\*\_\_kw\)
File "C:\Python27\pywikipedia1\wikipedia.py", line 5667, in \_\_init\_\_
% \(self.\_\_code, self.\_\_family.name\)\)
NoSuchSite: Language does not exist in family wikisource


Version: unspecified
Severity: normal
See Also:
https://sourceforge.net/p/pywikipediabot/bugs/1572

Details

Reference
bz55154

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:23 AM
bzimport set Reference to bz55154.
bzimport added a subscriber: Unknown Object (????).

Instead of mylang='', try using mylang='-' \(and also adapting your username config as such\).

Please try the suggested method before increading priority.

My mistake, I didn't see the suggested method.

Suggested method works, please close or possibly add a note somewhere in the code? \(so people like me can see that they need to do '-'\)