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: <bug-715442-21960@http.bugzilla.novell.com/>

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

< Previous Next >
Follow Ups