Last modified: 2013-11-16 21:01:32 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 T57154, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55154 - Can't login to wikisource.org
Can't login to wikisource.org
Status: RESOLVED INVALID
Product: Pywikibot
Classification: Unclassified
login.py (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:34 UTC by Kunal Mehta (Legoktm)
Modified: 2013-11-16 21:01 UTC (History)
1 user (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:34:19 UTC
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
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:34:21 UTC
Instead of mylang='', try using mylang='-' \(and also adapting your username config as such\).
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:34:23 UTC
- **priority**: 5 --> 7
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 04:34:25 UTC
Please try the suggested method before increading priority.
Comment 4 Kunal Mehta (Legoktm) 2013-10-05 04:34:26 UTC
- **priority**: 7 --> 5
Comment 5 Kunal Mehta (Legoktm) 2013-10-05 04:34:28 UTC
My mistake, I didn't see the suggested method.
Comment 6 Kunal Mehta (Legoktm) 2013-10-05 04:34:30 UTC
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 '-'\)
Comment 7 Mpaa 2013-11-16 21:01:32 UTC
closed per above

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


Navigation
Links