[IronPython] Can not use httplib in ironpython beta9?

Bruce Christensen t-bruch at microsoft.com
Tue Jul 18 19:20:53 CEST 2006



Sorry for the trouble. This is a known issue that we're tracking in our
bug database at


For a full explanation of the situation, see


To answer your second question: most, but not all, of the Python
standard library works with IronPython. We're working to support as much
of it as possible, but there are still areas that are missing
functionality, as you have discovered. If you run into any other
problems, please let us know so that we can prioritize our work




From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of peter lin
Sent: Tuesday, July 18, 2006 10:02 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Can not use httplib in ironpython beta9?


It seems the method getaddrinfo() is not currently implemented.
I test another module urllib, which uses  httplib. 

import sys

import urllib
data = urllib.urlopen ('http://www.google.com').read()
print data

See the error as follows. 

Traceback (most recent call last):
  File c:\dev_tool\IronPython-1.0-Beta9\rsslibtest.py , line 37, in
  File c:\python24\lib\urllib.py, line 82, in urlopen
  File c:\python24\lib\urllib.py, line 194, in open
  File c:\python24\lib\urllib.py, line 313, in open_http
  File c:\python24\lib\httplib.py, line 798, in endheaders 
  File c:\python24\lib\httplib.py, line 679, in _send_output
  File c:\python24\lib\httplib.py, line 646, in send
  File c:\python24\lib\httplib.py, line 613, in connect
  File , line 0, in GetAddrInfo##120
NotImplementedError: getaddrinfo() is not currently implemented

I test it with python.exe , it works.
So, actually, Is it ok to use all python standard library with ipy? 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060718/b2b2b2ce/attachment.html>

More information about the Ironpython-users mailing list