Bugs item #2901369, was opened at 2009-11-20 14:58 Message generated for change (Tracker Item Submitted) 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: Open Resolution: None 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)]
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2901369...