When I try to run my Flask main script I get following error
- Running on http://127.0.0.1:5000/ Traceback (most recent call last): File "flask_app.py", line 298, in <module> app.run(host='127.0.0.1',port=5000,debug=True) File "/usr/local/lib/python3.4/dist-packages/flask/app.py", line 772, in run run_simple(host, port, self, **options) File "/usr/local/lib/python3.4/dist-packages/werkzeug/serving.py", line 706, in run_simple test_socket.bind((hostname, port)) OSError: [Errno 98] Address already in use
This is important for me because I create database while running the script on bash. I changed port number so it worked but it is not a permanent solution I tried to see process by top and kill that port using app but didn't have permission. So what is your advice for solution.
Thank you