[ python-Bugs-1511964 ] Can't use sockets in 2.5b1
SourceForge.net
noreply at sourceforge.net
Sun Jun 25 11:38:55 CEST 2006
Bugs item #1511964, was opened at 2006-06-24 23:28
Message generated for change (Comment added) made by arigo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1511964&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Bryan O'Sullivan (bos)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't use sockets in 2.5b1
Initial Comment:
I'm testing Mercurial with Python 2.5b1, and I am getting severe badness in the socket module, complaining that _socket.socket doesn't have a recv_into method.
+ File "/tmp/hgtests.u_b_G-/install/lib/python/mercurial/httprangereader.py", line 24, in read
+ f = urllib2.urlopen(req)
+ File "/export/home/bos/src/py25/lib/python2.5/urllib2.py", line 121, in urlopen
+ return _opener.open(url, data)
+ File "/export/home/bos/src/py25/lib/python2.5/urllib2.py", line 374, in open
+ response = self._open(req, data)
+ File "/export/home/bos/src/py25/lib/python2.5/urllib2.py", line 392, in _open+ '_open', req)
+ File "/export/home/bos/src/py25/lib/python2.5/urllib2.py", line 353, in _call_chain
+ result = func(*args)
+ File "/export/home/bos/src/py25/lib/python2.5/urllib2.py", line 1099, in http_open
+ return self.do_open(httplib.HTTPConnection, req)
+ File "/export/home/bos/src/py25/lib/python2.5/urllib2.py", line 1071, in do_open
+ h.request(req.get_method(), req.get_selector(), req.data, headers)
+ File "/export/home/bos/src/py25/lib/python2.5/httplib.py", line 862, in request
+ self._send_request(method, url, body, headers)
+ File "/export/home/bos/src/py25/lib/python2.5/httplib.py", line 885, in _send_request
+ self.endheaders()
+ File "/export/home/bos/src/py25/lib/python2.5/httplib.py", line 856, in endheaders
+ self._send_output()
+ File "/export/home/bos/src/py25/lib/python2.5/httplib.py", line 728, in _send_output
+ self.send(msg)
+ File "/export/home/bos/src/py25/lib/python2.5/httplib.py", line 695, in send
+ self.connect()
+ File "/export/home/bos/src/py25/lib/python2.5/httplib.py", line 666, in connect
+ self.sock = socket.socket(af, socktype, proto)
+ File "/export/home/bos/src/py25/lib/python2.5/socket.py", line 154, in __init__
+ self.recv_into = self._sock.recv_into
+AttributeError: '_socket.socket' object has no attribute 'recv_into'
----------------------------------------------------------------------
>Comment By: Armin Rigo (arigo)
Date: 2006-06-25 09:38
Message:
Logged In: YES
user_id=4771
This looks like a broken install. The socket objects
do have a recv_into() method in socketmodule.c. Try "make
clean; make". If it does not help, check where the _socket
module comes from with:
python2.5
>>> import _socket
>>> print _socket.__file__
and make sure that this file is among the ones you just
recompiled.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1511964&group_id=5470
More information about the Python-bugs-list
mailing list