Greetings, ever since I upgraded to Dash 1.0.0, I haven’t been able to get a single application working without an inexplicable SYstemExit occurring. For example, if I tried running a script using the code given in Part Two of the Dash tutorial, I would still have that issue. I’ve reproduced the code here:
# -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
app.layout = html.Div(children=[
html.H1(children='Hello Dash'),
html.Div(children='''
Dash: A web application framework for Python.
'''),
dcc.Graph(
id='example-graph',
figure={
'data': [
{'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name': 'SF'},
{'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name': u'Montréal'},
],
'layout': {
'title': 'Dash Data Visualization'
}
}
)
])
if __name__ == '__main__':
app.run_server(debug=True)
After a short bit, I see the following lines.
runfile('C:/Users/gzucaro/Documents/PythonScripts/Dash/app.py', wdir='C:/Users/gzucaro/Documents/PythonScripts/Dash')
Running on http://127.0.0.1:8050/
Running on http://127.0.0.1:8050/
Debugger PIN: 683-300-392
Debugger PIN: 683-300-392
* Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
An exception has occurred, use %tb to see the full traceback.
SystemExit: 1
C:\Users\gzucaro\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\interactiveshell.py:3304: UserWarning:
To exit: use 'exit', 'quit', or Ctrl-D.
The full traceback looks like this.
Traceback (most recent call last):
File "", line 1, in
runfile('C:/Users/gzucaro/Documents/PythonScripts/Dash/app.py', wdir='C:/Users/gzucaro/Documents/PythonScripts/Dash')
File "C:\Users\gzucaro\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:\Users\gzucaro\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/gzucaro/Documents/PythonScripts/Dash/app.py", line 32, in
app.run_server(debug=True)
File "C:\Users\gzucaro\AppData\Local\Continuum\anaconda3\lib\site-packages\dash\dash.py", line 1694, in run_server
self.server.run(port=port, debug=debug, **flask_run_options)
File "C:\Users\gzucaro\AppData\Local\Continuum\anaconda3\lib\site-packages\flask\app.py", line 944, in run
run_simple(host, port, self, **options)
File "C:\Users\gzucaro\AppData\Local\Continuum\anaconda3\lib\site-packages\werkzeug\serving.py", line 1007, in run_simple
run_with_reloader(inner, extra_files, reloader_interval, reloader_type)
File "C:\Users\gzucaro\AppData\Local\Continuum\anaconda3\lib\site-packages\werkzeug\_reloader.py", line 332, in run_with_reloader
sys.exit(reloader.restart_with_reloader())
SystemExit: 1
Any advice?