[PythonCE] Socket weirdness
Todd Pinkerton
toddp@OrangeImagineering.com
Wed, 11 Sep 2002 12:40:11 -0400
Hi all,
I'm having trouble with the socket module in PythonCE2.3. I'm trying
to do a simple urllib test:=20
>>> import urllib
>>> f =3D urllib.urlopen("http://www.yahoo.com")
>>> print f.read()
Which works fine under other python environments. On PythonCE2.3, while
trying to run the urllib.urlopen(), I get the following :=20
Traceback (most recent call last) :=20
File "Program files/Python/lib/site-packages/wince\ceshell.py" , line
458, in Interact
exec codeOb in locals
File "<input>" , line 1, in ?=20
File "\Program Files\Python\lib\urllib.py", line 73, in urlopen
File "\Program Files\Python\lib\urllib.py", line 178 in open
File "\Program Files\Python\lib\urllib.py", line 295, in open_http
File "\Program Files\Python\lib\httplib.py", line 728, in getreply
File "\Program Files\Python\lib\httplib.py", line 572, in getresponse
AtributeError: '_socket.socket' object has no attribute 'makefile'=20
>From what I can tell (running 'strings' on _socket.pyd and socket.pyc)
there's some mention of 'makefile' in the socket module; but for some
reason, the interpreter can't seem to find it. Since the PythonCE2.3
distro didn't include all the standard python modules, I kept the ones
from the 2.2 distro; has anything changed that I'm missing?
Anyone else having problems with _socket?=20
-Todd
=20