pwsm / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

errors using httplib2 under Python 3.1 #195

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by b.e.lars...@gmail.com on 7 Dec 2011 at 6:23

GoogleCodeExporter commented 8 years ago
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.  

Original comment by b.e.lars...@gmail.com on 9 Dec 2011 at 12:43

GoogleCodeExporter commented 8 years ago

Original comment by joe.gregorio@gmail.com on 1 Mar 2012 at 3:48