[Bug 715442] New: Python-httplib2 deprecation warnings and socket timeout errors
https://bugzilla.novell.com/show_bug.cgi?id=715442 https://bugzilla.novell.com/show_bug.cgi?id=715442#c0 Summary: Python-httplib2 deprecation warnings and socket timeout errors Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: i586 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@suse.com ReportedBy: oscar@naiandei.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0 The python module httplib2 has errors on importing and socket timeouts if using python 2.6 (tested on opensuse 11.3): Example: hedera:~ # python Python 2.6.5 (r265:79063, May 6 2011, 16:17:46) [GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import rest_client /usr/lib/python2.6/site-packages/rest_client/httplib2/__init__.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 /usr/lib/python2.6/site-packages/rest_client/httplib2/__init__.py:44: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha
And socket timeouts: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/site-packages/rest_client/restful_lib.py", line 58, in request_get return self.request(resource, "get", args, headers=headers) File "/usr/lib/python2.6/site-packages/rest_client/restful_lib.py", line 127, in request resp, content = self.h.request(u"%s://%s%s" % (self.scheme, self.host, u'/'.join(request_path)), method.upper(), body=body, headers=headers ) File "/usr/lib/python2.6/site-packages/rest_client/httplib2/__init__.py", line 1050, in request (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) File "/usr/lib/python2.6/site-packages/rest_client/httplib2/__init__.py", line 854, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File "/usr/lib/python2.6/site-packages/rest_client/httplib2/__init__.py", line 823, in _conn_request conn.request(method, request_uri, body, headers) File "/usr/lib/python2.6/httplib.py", line 910, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.6/httplib.py", line 947, in _send_request self.endheaders() File "/usr/lib/python2.6/httplib.py", line 904, in endheaders self._send_output() File "/usr/lib/python2.6/httplib.py", line 776, in _send_output self.send(msg) File "/usr/lib/python2.6/httplib.py", line 735, in send self.connect() File "/usr/lib/python2.6/site-packages/rest_client/httplib2/__init__.py", line 736, in connect sock.settimeout(self.timeout) File "<string>", line 1, in settimeout TypeError: a float is required Please, take a look at this issue, as this have already been fixed upstream: http://code.google.com/p/httplib2/issues/detail?id=39 It seems like if it would be a regression. Thanks, Reproducible: Always Steps to Reproduce: 1. Install python-httplib2 2. import httplib2 or any other module that uses it. 3. try to use it, under python 2.6 there's a socket error. Actual Results: errors -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=715442 https://bugzilla.novell.com/show_bug.cgi?id=715442#c Philipp Thomas <pth@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@suse.com AssignedTo|pth@suse.com |cstender@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=715442 https://bugzilla.novell.com/show_bug.cgi?id=715442#c Christopher Stender <cstender@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=715442 https://bugzilla.novell.com/show_bug.cgi?id=715442#c1 --- Comment #1 from Oscar Curero <oscar@naiandei.net> 2012-01-10 12:21:26 UTC --- I tested that on a fresh 12.1 install and I can still reproduce it. Thanks, -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=715442 https://bugzilla.novell.com/show_bug.cgi?id=715442#c2 Christopher Stender <cstender@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |WORKSFORME --- Comment #2 from Christopher Stender <cstender@suse.com> 2012-01-13 15:59:18 UTC --- Works fine for me using the packages which we provide in openSUSE 12.1: cstender@d130:~> python Python 2.7.2 (default, Aug 19 2011, 20:41:43) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import httplib2 h = httplib2.Http(".cache") resp, content = h.request("http://www.suse.com", "GET"); print(content) <!doctype html> <!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]--> <!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]--> <!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]--> <head> <title>Linux OS | SUSE Linux Enterprise</title> ..
Please reopen the upstream bug if there is a new issue with python2.6. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com