Mailinglist Archive: opensuse-bugs (3542 mails)

< Previous Next >
[Bug 715442] New: Python-httplib2 deprecation warnings and socket timeout errors
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 1 Sep 2011 10:22:03 +0000
  • Message-id: <>

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@xxxxxxxx
ReportedBy: oscar@xxxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---

User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101

The python module httplib2 has errors on importing and socket timeouts if using
python 2.6 (tested on opensuse 11.3):

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
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
DeprecationWarning: the sha module is deprecated; use the hashlib module
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/", line 58,
in request_get
return self.request(resource, "get", args, headers=headers)
File "/usr/lib/python2.6/site-packages/rest_client/", line 127,
in request
resp, content = self.h.request(u"%s://%s%s" % (self.scheme,,
u'/'.join(request_path)), method.upper(), body=body, headers=headers )
File "/usr/lib/python2.6/site-packages/rest_client/httplib2/",
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/",
line 854, in _request
(response, content) = self._conn_request(conn, request_uri, method, body,
File "/usr/lib/python2.6/site-packages/rest_client/httplib2/",
line 823, in _conn_request
conn.request(method, request_uri, body, headers)
File "/usr/lib/python2.6/", line 910, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.6/", line 947, in _send_request
File "/usr/lib/python2.6/", line 904, in endheaders
File "/usr/lib/python2.6/", line 776, in _send_output
File "/usr/lib/python2.6/", line 735, in send
File "/usr/lib/python2.6/site-packages/rest_client/httplib2/",
line 736, in connect
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:

It seems like if it would be a regression.


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:

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups