Bugs item #2908381, was opened at 2009-12-03 16:05 Message generated for change (Comment added) made by andreasjs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2908381...
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: Open Resolution: None Priority: 9 Private: No Submitted By: Mauro (mauro742) Assigned to: Nobody/Anonymous (nobody) Summary: Reopen #2901213: login.py fails (sound an API problem)
Initial Comment: Pywikipedia [http] trunk/pywikipedia (r7731, 2009/12/03, 18:28:57) Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32) [GCC 4.3.2]
When I try to edit a page I 've this error:
Updating page [[..page..]] via API Edit token has failed. Retrying. Getting a token. Sleeping for 9.0 seconds, 2009-12-03 21:33:35 Updating page [[..page..]] via API Password for user Bot on wikipedia:it: Traceback (most recent call last): File "myscript", line 430, in main() File "...", line 335, in main LP_database[timestamps[i]].MakeLogTable() File "script", line 533, in MakeLogTable page.put(pagetxt, action) File "wikipedia.py", line 1595, in put sysop = self._getActionUser(action = 'edit', restriction = self.editRestriction, sysop = sysop) File "wikipedia.py", line 1468, in _getActionUser self.site().forceLogin(sysop = sysop) File "wikipedia.py", line 5265, in forceLogin if loginMan.login(retry = True): File "login.py", line 272, in login self.password = wikipedia.input(u'Password for user %s on %s:' % (self.username, self.site), password = True) File "wikipedia.py", line 8188, in input data = ui.input(question, password) File "terminal_interface.py", line 238, in input text = getpass.getpass('') File "/usr/lib/python2.5/getpass.py", line 32, in unix_getpass old = termios.tcgetattr(fd) # a copy to save termios.error: (22, 'Invalid argument')
If I recall login.py:
Result: 411 Length Required Traceback (most recent call last): File "login.py", line 397, in <module> main() File "login.py", line 393, in main loginMan.login() File "login.py", line 282, in login cookiedata = self.getCookie(api) File "login.py", line 170, in getCookie response, data = self.site.postData(address, self.site.urlEncode(predata), sysop=self.sysop) File "/home/mauro742/MauroBot/wikipedia.py", line 5606, in postData f = MyURLopener.open(request) File "/usr/lib/python2.5/urllib2.py", line 387, in open response = meth(req, response) File "/usr/lib/python2.5/urllib2.py", line 498, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.5/urllib2.py", line 419, in error result = self._call_chain(*args) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "/home/mauro742/MauroBot/wikipedia.py", line 8421, in http_error_302 self, req, fp, code, msg, headers) File "/usr/lib/python2.5/urllib2.py", line 582, in http_error_302 return self.parent.open(new) File "/usr/lib/python2.5/urllib2.py", line 387, in open response = meth(req, response) File "/usr/lib/python2.5/urllib2.py", line 498, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.5/urllib2.py", line 425, in error return self._call_chain(*args) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 411: Length Required
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2009-12-03 19:26
Message: This error occurs with certain user names, and not with others. For example, in Greek Wikisource, the user:AndreasBot gets this error, but not user:AndreasJS. Changing the password makes no difference. I would send my password to a developer who wants to debug this.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2908381...
pywikipedia-bugs@lists.wikimedia.org