Socket.error: [Errno 98] Address already in use

user:~/webpage_ws$ python -m SimpleHTTPServer 7000
Traceback (most recent call last):
File “/usr/lib/python2.7/”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/”, line 72, in _run_code
exec code in run_globals
File “/usr/lib/python2.7/”, line 235, in
File “/usr/lib/python2.7/”, line 231, in test
BaseHTTPServer.test(HandlerClass, ServerClass)
File “/usr/lib/python2.7/”, line 606, in test
httpd = ServerClass(server_address, HandlerClass)
File “/usr/lib/python2.7/”, line 417, in init
File “/usr/lib/python2.7/”, line 108, in server_bind
File “/usr/lib/python2.7/”, line 431, in server_bind
File “/usr/lib/python2.7/”, line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

Hi @miumama,

It means the port 7000 is busy with another process.
You can check if there is a process there using the command:
sudo lsof -i :7000

You can also check that you don’t have the same process running in a different terminal.

Please, let me know if it helped you.