Bugs item #2901369, was opened at 2009-11-20 14:58 Message generated for change (Comment added) made by djbarrett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2901369...
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: login Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Daniel Barrett (djbarrett) Assigned to: Nobody/Anonymous (nobody) Summary: login.py hangs without error message
Initial Comment: Login.py is hanging and no error message is being produced.
$ sudo python login.py -v -log Pywikipediabot [http] trunk/pywikipedia (r7672, 2009/11/20, 16:08:37) Python 2.4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] Password for user wikisysop2 on vistawiki:en: ********* Logging in to vistawiki:en as wikisysop2
At this point, login.py hangs for several minutes. I type ctrl-C and get:
Traceback (most recent call last): File "login.py", line 393, in ? main() File "login.py", line 389, in main loginMan.login() File "login.py", line 278, 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 "/usr/local/pywikipedia/wikipedia.py", line 5482, in postData f = MyURLopener.open(request) File "/usr/lib64/python2.4/urllib2.py", line 364, in open response = meth(req, response) File "/usr/lib64/python2.4/urllib2.py", line 471, in http_response response = self.parent.error( File "/usr/lib64/python2.4/urllib2.py", line 396, in error result = self._call_chain(*args) File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain result = func(*args) File "/usr/local/pywikipedia/wikipedia.py", line 8231, in http_error_302 result = urllib2.HTTPRedirectHandler.http_error_302( File "/usr/lib64/python2.4/urllib2.py", line 554, in http_error_302 return self.parent.open(new) File "/usr/lib64/python2.4/urllib2.py", line 358, in open response = self._open(req, data) File "/usr/lib64/python2.4/urllib2.py", line 376, in _open '_open', req) File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain result = func(*args) File "/usr/lib64/python2.4/urllib2.py", line 1032, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib64/python2.4/urllib2.py", line 1004, in do_open r = h.getresponse() KeyboardInterrupt
The log file contains nothing except the initial lines above (prior to the ctrl-C).
I have verified the password is correct.
Here's the version info:
$ python version.py Pywikipedia [http] trunk/pywikipedia (r7672, 2009/11/20, 16:08:37) Python 2.4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2010-04-02 14:24
Message: This seems to be fixed as of revision 8050.
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett) Date: 2009-11-30 11:34
Message: I deleted the contents of the login-data folder and ran "python login.py", but the command still hung.
I'm happy to provide more debugging info if you tell me what you want.
----------------------------------------------------------------------
Comment By: siebrand (siebrand) Date: 2009-11-30 10:54
Message: I haven't had this myself, but I have heard others speak about it. Could you try throwing away your login-data for the site you are trying to log in to? Of course this would only be possible if you had a previous login, but this may be a solution. From what I have heard, the cookies have been changed recently.
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett) Date: 2009-11-30 10:33
Message: Sorry, it's not fixed in r7718 nor r7719. Same hang.
----------------------------------------------------------------------
Comment By: siebrand (siebrand) Date: 2009-11-30 06:58
Message: This has probably been fixed. Feel free to reopen if not (based on r7718)
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett) Date: 2009-11-20 15:28
Message: The problem was introduced in -r7599. Versions before it work perfectly.
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett) Date: 2009-11-20 15:19
Message: svn -r7659 makes me suspicious, with the change in "wpDomain" logic, since we (Vistaprint) were the original reason for the wpDomain logic, to make pywikipedia work with Extension:LdapAuthentication.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2901369...