SimpleHTTPServer on a Mac

Matthew Schinckel matt at null.net
Tue Aug 22 09:26:51 EDT 2000


In message <mikel-8542B7.21021714082000 at news.earthlink.net>, mikel wrote:
> Why does SimpleHTTPServer.test() fail on my Mac?
> 
> In Python version 1.5.2 on a PowerBook G3 running MacOS9 I execute the 
> following:
> 
> import SimpleHTTPServer
> 
> SimpleHTTPServer.test()
> 
> 
> The result is the following error:
> 
> Traceback (innermost last):
>   File "<input>", line 1, in ?
>   File "Cairagor:Programming:Python 1.5.2c1:Lib:SimpleHTTPServer.py", 
> line 152, in test
>     BaseHTTPServer.test(HandlerClass, ServerClass)
>   File "Cairagor:Programming:Python 1.5.2c1:Lib:BaseHTTPServer.py", line 
> 475, in test
>     httpd = ServerClass(server_address, HandlerClass)
>   File "Cairagor:Programming:Python 1.5.2c1:Lib:SocketServer.py", line 
> 165, in __init__
>     self.server_bind()
>   File "Cairagor:Programming:Python 1.5.2c1:Lib:BaseHTTPServer.py", line 
> 97, in server_bind
>     hostname, hostnames, hostaddrs = socket.gethostbyaddr(host)
> error: host not found

Are you connected to the 'net when you try this? - I built a meta-search engine
awhile back, and it would give a similar error if the TCP/IP connection wasn't
'real'.
-- 
Matthew Schinckel     <matt at null.net>




More information about the Python-list mailing list