Export to GitHub

httplib2 - issue #195

errors using httplib2 under Python 3.1


Posted on Dec 7, 2011 by Swift Bird

What steps will reproduce the problem? Trying to use httplib2 under python 3.1.4

What is the expected output? What do you see instead? response, content = self.http.request( url, headers= header ) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/httplib2-0.7.2-py3.1.egg/httplib2/init.py", line 1079, in request info = email.message_from_bytes(info) AttributeError: 'module' object has no attribute 'message_from_bytes'

What version of the product are you using? On what operating system? Httplib2 0.7.2 on OSX Lion and Python 3.1.4

Please provide any additional information below. httplib2 fails on the line init.py (1079) : info = email.message_from_bytes(info)

The function email.message_from_bytes was not added until Python 3.2.

Comment #1

Posted on Dec 9, 2011 by Swift Bird

Just noticed that this is a duplicate of issue 189 and that judging from the comments on that issue, httplib2 has no intention on supporting Python 3.0 and 3.1.

I still think this should be stated somewhere in the documentation since the documentation really gives the impression that all versions of Python >= 3 are supported.

Comment #2

Posted on Mar 1, 2012 by Massive Hippo

(No comment was entered for this change.)

Status: Closed

Labels:
Type-Defect Priority-Medium