@amitter - Could you open up your browser’s dev tools and look at the console? You’ll likely see an error message there.
I suspect that this is related to the JS assets from the CDN not loading properly - perhaps because they are blocked by your firewall or some other reason.
I have the same Problem (Loading… on the top), but adding the two lines didn’t fix it.
I’m running python on Spyder with Anaconda.
Could you please help? Thanks
@chriddyp I’m also having the same issue and adding the two lines didn’t fix it for me as well. I’m on Mac OSX 10.12.6. I used to be able to run simple plotly dash pages just fine several months ago, but now I can’t get them to work. I also don’t see any console output or errors when I open the dev console. Any thoughts on how to debug this?
I figured out my problem! @nahal626 this might fix your problem too. My problems happened when I used versions of the dash helper packages that were newer than the dash package. If you specify dash=0.37.0 when you install with conda, it should work out. So for example, it should work if you create a new environment with conda env update -f environment.yaml, where environment.yaml looks like this:
If you look at the different versions of dash provided by conda using conda search dash --info, you’ll get a list of a bunch of versions, and the latest one looks like this:
It’s unique in that it’s the only one that specifies exact versions of the dash helper packages, so if you make sure to specify dash=0.37.0 you should get those versions that are compatible. Or just check to make sure the versions of your dash-* packages match the versions listed above. I also tested older versions of dash and found that the hello world code works fine as long as I was using helper packages that came out at around the same time as any given dash release.
By making sure to use a compatible set of packages, I didn’t have to do the serve_locally stuff either. Hope this helps!
I’ve been using this library consistently for the last few weeks. It was working just an hour ago. I just rebuilt my virtual environment from scratch and now I cannot proceed past the “Loading…” message. I’m running Mac OS High Sierra (10.13.6), python 3.6.4.
I was previously using dash==0.36.0. When I upgraded to dash==0.39.0 it worked.
For me the issue was that when I tried to update dash from 0.39 to the version 1.0.2, all my components etc updated but dash itself failed to update due to an issue with pyyaml not uninstalling. After uninstalling dash, I got through this by simply ignoring pyyaml by using:
I’m facing the same problem. I’ve tried a lot of troubleshooting and simplifying. Here’s my best shot at describing where I stand. Any suggestions?
The problem:
I have an apache webserver running on a raspberry pi and I’d like to make a plotly dash page available. For now, I’m trying to host it at http://<ip_of_pi>/flask. Here’s what I see when accessing from my laptop with google Chrome (I also tried Safari):
I also created a much simpler flask-based app and I’m able to successfully host it. Here’s the WSGI file that I’m using to toggle between the dash app and the basic flask app:
A couple more points of reference:
This is running in python 2.7 on my pi (I haven’t yet figured out how to make apache/wsgi use anything other than the base python. Any tips on how to configure it to run from a python 3 conda environment?)
I’m posting my worthless “me too” reply in the hopes that somebody who follows this thread actually has an answer by now.
I have the same problem when using CGI in Apache. Flask app in apache OK. Dash app cmd line OK. Dash app in apache no go, Ijust get “Loading …”.
I have a tip on running with Python 3.x, even though Apache is running 2.7.x.
Create your virtualenv (with Conda or other). Then I used CGI. Here is my CGI script (I am unable to install mod_wsgi on our server).
#!/home/jkhyrsmy/venv36/weather/bin/python
# Python virtualenv must be activated
activate_this = '/home/jkhyrsmy/venv36/weather/bin/activate_this.py'
with open(activate_this) as f:
code = compile(f.read(), activate_this, 'exec')
exec(code, dict(__file__=activate_this))
from wsgiref.handlers import CGIHandler
from dash_test import app
CGIHandler().run(app.server)
You have to specify the python interpreter from your virtual env. Then your app can truly run in Python 3 - except for the issue that we are discussing here!
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://nebraska-water.xyz/_dash-component-suites/dash_renderer/react@16.v1_8_0m1600071691.13.0.min.js
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://nebraska-water.xyz/_dash-component-suites/dash_renderer/polyfill@7.v1_8_0m1600071691.8.7.min.js
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://nebraska-water.xyz/_dash-component-suites/dash_renderer/react-dom@16.v1_8_0m1600071691.13.0.min.js
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://nebraska-water.xyz/_dash-component-suites/dash_html_components/dash_html_components.v1_1_1m1600071694.min.js
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://nebraska-water.xyz/_dash-component-suites/dash_uploader/_build/dash_uploader.v0_3_1m1600071696.min.js
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://nebraska-water.xyz/_dash-component-suites/dash_core_components/dash_core_components.v1_12_0m1600071693.min.js
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://nebraska-water.xyz/_dash-component-suites/dash_renderer/prop-types@15.v1_8_0m1600071691.7.2.min.js
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://nebraska-water.xyz/_dash-component-suites/dash_core_components/dash_core_components-shared.v1_12_0m1600071693.js
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://nebraska-water.xyz/_dash-component-suites/dash_renderer/dash_renderer.v1_8_0m1600071691.min.js
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - http://nebraska-water.xyz/_dash-component-suites/dash_bootstrap_components/_components/dash_bootstrap_components.v0_10_6m1600071717.min.js
SCRIPT5009: SCRIPT5009: 'DashRenderer' is not defined
app = dash.Dash(
__name__,
server=server,
external_stylesheets=[dbc.themes.BOOTSTRAP],
# requests_pathname_prefix='/swatviewer/' # defining here will not work
)
app.config.update({'requests_pathname_prefix': '/<appname>/'})