I am new to Python and Python-Flask and have ran into an error. I am using Ubuntu 18.04.3 LTS and Python 2.7.15+ to build a python-flask web application.
When I try to run the application I run into the following error:
File "home_page.py", line 61, in <module>
app.run(host="0.0.0.0", debug=True)
File "/home/XXXXXXX/.local/lib/python2.7/site-packages/flask/app.py", line 990, in run
run_simple(host, port, self, **options)
File "/home/XXXXXXX/.local/lib/python2.7/site-packages/werkzeug/serving.py", line 988, in run_simple
s.bind(server_address)
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
One of the fixes I have found was to close the window of puTTY (which I am using to access a VM) however, this doesnt seem the best way to solve this issue.
I am unsure how to proceed with this error. Any suggestions would be appreciated.