This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 2.7 regression in httplib.py: AttributeError: 'NoneType' object has no attribute 'makefile'
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: John.Doe, eric.araujo, giampaolo.rodola, kristjan.jonsson, orsenthil, r.david.murray, rcoyner, srid
Priority: normal Keywords:

Created on 2010-05-15 22:01 by srid, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg105831 - (view) Author: Sridhar Ratnakumar (srid) Date: 2010-05-15 22:01
On Linux, with Python 2.7 trunk (built on May 13th)

[...]
  File "/home/apy/as/pypm-trunk/eggs/httplib2-0.6.0-py2.7.egg/httplib2/__init__.py", line 1129, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/home/apy/as/pypm-trunk/eggs/httplib2-0.6.0-py2.7.egg/httplib2/__init__.py", line 912, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers, )
  File "/home/apy/as/pypm-trunk/eggs/httplib2-0.6.0-py2.7.egg/httplib2/__init__.py", line 871, in _conn_request
    response = conn.getresponse()
  File "/opt/ActivePython-2.7/lib/python2.7/httplib.py", line 1022, in getresponse
    response = self.response_class(*args, **kwds)
  File "/opt/ActivePython-2.7/lib/python2.7/httplib.py", line 340, in __init__
    self.fp = sock.makefile('rb', 0)
AttributeError: 'NoneType' object has no attribute 'makefile'
msg105847 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-05-16 03:14
Can you provide a small code example that will reproduce the problem?
msg140741 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-07-20 14:36
If possible, the code example would use only Python, not httplib2 or Active State Python :)
msg257438 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2016-01-04 02:42
Closing this since no further update was available from the original reporter. If this bug is still present, please open a new issue with test case to reproduce.
History
Date User Action Args
2022-04-11 14:57:01adminsetgithub: 52974
2016-01-04 02:42:34orsenthilsetstatus: pending -> closed

nosy: + orsenthil
messages: + msg257438

resolution: not a bug
stage: resolved
2015-11-14 23:35:56serhiy.storchakasetstatus: open -> pending
type: crash -> behavior
2011-07-20 14:36:40eric.araujosetnosy: + eric.araujo
messages: + msg140741
2011-07-14 22:05:28John.Doesetnosy: + John.Doe
2011-02-28 18:41:29rcoynersetnosy: + rcoyner
2010-05-17 23:14:11giampaolo.rodolasetnosy: + giampaolo.rodola
2010-05-16 03:14:02r.david.murraysetnosy: + r.david.murray
messages: + msg105847
2010-05-15 22:01:20sridcreate