SimpleHTTPServer on a Mac

mikel mikel at reactivity.com
Tue Aug 15 00:00:38 EDT 2000


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


Why?

-- 
mikel evins
mikel at reactivity.com



More information about the Python-list mailing list