I found this while searching for similar problem. turning off debug mode fixed my problem.
OS = ubuntu app in windows 10
python 3.7.3
pip install dash==1.6.1
pip install dash-daq==0.3.1
print("name = ", name)
if name == ‘main’:
print(“start server”)
#app.run_server(debug=True) # this causes errors - OSError: [Errno 8] Exec format error:
app.run_server(debug=False)
Appears related to this git issue below.
https://flask.palletsprojects.com/en/1.0.x/cli/