estruyf / unicorn-busy-server

Simple busy light server for Raspberry Pi Zero and Pimoroni Unicorn Hat
MIT License
61 stars 38 forks source link

Errors starting server.py #11

Closed ghctim closed 4 years ago

ghctim commented 4 years ago

Traceback (most recent call last): File "./server.py", line 295, in app.run(host='0.0.0.0', debug=False) File "./server.py", line 39, in run super(MyFlaskApp, self).run(host=host, port=port, debug=debug, load_dotenv=load_dotenv, options) File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 990, in run run_simple(host, port, self, options) File "/usr/local/lib/python3.7/dist-packages/werkzeug/serving.py", line 1052, in run_simple inner() File "/usr/local/lib/python3.7/dist-packages/werkzeug/serving.py", line 1005, in inner fd=fd, File "/usr/local/lib/python3.7/dist-packages/werkzeug/serving.py", line 848, in make_server host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd File "/usr/local/lib/python3.7/dist-packages/werkzeug/serving.py", line 740, in init HTTPServer.init(self, server_address, handler) File "/usr/lib/python3.7/socketserver.py", line 452, in init self.server_bind() File "/usr/lib/python3.7/http/server.py", line 137, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/lib/python3.7/socketserver.py", line 466, in server_bind self.socket.bind(self.server_address) OSError: [Errno 98] Address already in use