I am an absolute beginner in Dash and plotly. I started doing the tutorials and the browser is not loading and the terminal message is as follows
~/repos/dash python app.py
- 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
- Running on http://127.0.0.1:8050/ (Press CTRL+C to quit)
- Restarting with stat
- Debugger is active!
- Debugger PIN: 142-637-277
I copied the url and pasted in Chrome browser this brings lots of error message in the terminal as follows
127.0.0.1 - - [07/May/2020 14:52:23] “GET / HTTP/1.1” 200 -
127.0.0.1 - - [07/May/2020 14:52:23] “GET /_dash-component-suites/dash_html_components/dash_html_components.min.js?v=1.0.3 HTTP/1.1” 200 -
127.0.0.1 - - [07/May/2020 14:52:23] “GET /_dash-component-suites/dash_renderer/prod?v=1.4.1 HTTP/1.1” 500 -
Traceback (most recent call last):
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/flask/app.py”, line 2464, in call
return self.wsgi_app(environ, start_response)
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/flask/app.py”, line 2450, in wsgi_app
response = self.handle_exception(e)
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/flask/app.py”, line 1867, in handle_exception
reraise(exc_type, exc_value, tb)
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/flask/_compat.py”, line 39, in reraise
raise value
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/flask/app.py”, line 2447, in wsgi_app
response = self.full_dispatch_request()
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/flask/app.py”, line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/flask/app.py”, line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/flask/_compat.py”, line 39, in reraise
raise value
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/flask/app.py”, line 1950, in full_dispatch_request
rv = self.dispatch_request()
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/flask/app.py”, line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File “/Users/sree/anaconda3/envs/dash/lib/python3.7/site-packages/dash/dash.py”, line 396, in serve_component_suites
})[path_in_package_dist.split(’.’)[-1]]
KeyError: ‘prod’
127.0.0.1 - - [07/May/2020 14:52:23] “GET /_dash-component-suites/dash_core_components/async-datepicker.js?v=1.10.0 HTTP/1.1” 200 -
127.0.0.1 - - [07/May/2020 14:52:23] “GET /_dash-component-suites/dash_core_components/async-dropdown.js?v=1.10.0 HTTP/1.1” 200 -
127.0.0.1 - - [07/May/2020 14:52:23] “GET /_dash-component-suites/dash_html_components/dash_html_components.min.js.map?v=1.0.3 HTTP/1.1” 500 -
The browser showing only loading message
I am using mac and python 3.7
dash 1.4.1 py_0
file name : dash-1.4.1-py_0.tar.bz2
name : dash
version : 1.4.1
build : py_0
build number: 0
size : 56 KB
license : MIT
subdir : noarch
url : https://repo.anaconda.com/pkgs/main/noarch/dash-1.4.1-py_0.tar.bz2
md5 : e8f74595ea6ec5c898f3eeb32ec64426
timestamp : 2019-12-17 15:41:36 UTC
dependencies:
- dash-core-components 1.3.1
- dash-html-components 1.0.1
- dash-renderer 1.1.2
- dash-table 4.4.1
- flask >=1.0.2
- flask-compress
- future
- plotly
- python
- pyyaml >=5.1.1
I have gone through similar topics without any proposed solution.
I will be super grateful if someone can find out the issue here.
Thanks in advance