[Pythonmac-SIG] SimpleHTTPServer doesn't work?
mikel evins
mikel@reactivity.com
Tue, 15 Aug 2000 15:21:39 -0700
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@reactivity.com