Script:
from http.server import HTTPServer, CGIHTTPRequestHandler
Result:
Traceback (most recent call last):
File "http.py", line 1, in <module>
from http.server import HTTPServer, CGIHTTPRequestHandler
File "F:\Checkouts\projects\python\http.py", line 1, in <module>
from http.server import HTTPServer, CGIHTTPRequestHandler
ImportError: No module named server
Also after installing Python 3.1.2 the problem is still there.
You should rename http.py since it collides with the "http" module
you're trying to import the server and request handler classes from.
Andi
I know the problem.
Reading a book about a simple cgi web server the descriptions says
to use httpd.py as name for the file and I forgot the 'd'.
This leads to the wrong behaviour.