[Tutor] configuring web browser PP3E
James Mills
prologic at shortcircuit.net.au
Thu Jan 29 03:50:06 CET 2009
On Thu, Jan 29, 2009 at 11:31 AM, bmoll70 at att.net <bmoll70 at 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
More information about the Tutor
mailing list