I have met the error:
socket.error: [Errno 98] Address already in use
Then I go to that port to find if something in there by:
netstat -ant | grep :5000
# result is
tcp 0 0 127.0.0.1:5000 0.0.0.0:* LISTEN
being listened, I do not know what process it is. Is there any way to clean this socket?