On Thu, Jan 29, 2009 at 11:31 AM, bmol...@att.net <bmol...@att.net> wrote:
> Traceback (most recent call last):
>  File "webserver.py", line 22, in ?
>    srvrobj  = HTTPServer(srvraddr, CGIHTTPRequestHandler)
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/SocketServer.py",
> line 330, in __init__
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/BaseHTTPServer.py",
> line 100, in server_bind
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/SocketServer.py",
> line 341, in server_bind
>  File "<string>", line 1, in bind
> socket.error: (13, 'Permission denied')

srvraddr is being passed a port of 80.
I suspect that you're running on a Mac and that
Mac's being UNIX systems, do not allow you as
a normal user to listen on ports < 1000 without
root privileges.

Solution 1: Run this under sudo
Solution 2: Change the port to 8000

cheers
James
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to