I am struggling to get Flask + interactive Bokeh server working on my Rasp Pi. From inspecting the html, I get the error= net::ERR_CONNECTION_REFUSED - autoload.js
.
I have my Server set up:
server = Server({'/bkapp': make_interactive}, io_loop=IOLoop(),
allow_websocket_origin=["0.0.0.0", "127.0.0.1"])
Given Brian’s statement in this post, I would assume the allow_websocket_origin would allow the connection. But this is not the case.
Perhaps this is related to another oddity. When I start the flask app, I get:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/pi/projects/FitHome_EDA/app.py", line 36, in bk_worker
port=5006, allow_websocket_origin=["0.0.0.0", "127.0.0.1"])
File "/home/pi/projects/FitHome_EDA/venv/lib/python3.7/site-packages/bokeh/server/server.py", line 393, in __init__
sockets, self._port = bind_sockets(self.address, self.port)
File "/home/pi/projects/FitHome_EDA/venv/lib/python3.7/site-packages/bokeh/server/util.py", line 66, in bind_sockets
ss = netutil.bind_sockets(port=port or 0, address=address)
File "/home/pi/projects/FitHome_EDA/venv/lib/python3.7/site-packages/tornado/netutil.py", line 174, in bind_sockets
sock.bind(sockaddr)
OSError: [Errno 98] Address already in use
Any advice on steps to get this challenge working would be very much appreciated. Thank you.