Deploying Dash App

I was trying to deploy my Dash app through Pythonanywhere. I installed Dash and Plotly in the virtual environment and followed this instruction: https://csyhuang.github.io/2018/06/24/set-up-dash-app-on-pythonanywhere/. However, I got the following error message when I tried to run the app:

2019-08-21 14:17:48,154: Error running WSGI application

2019-08-21 14:17:48,154: ModuleNotFoundError: No module named ‘dash.dependencies’; ‘dash’ is not a package
2019-08-21 14:17:48,155: File “/var/www/neroli_pythonanywhere_com_wsgi.py”, line 16, in
2019-08-21 14:17:48,155: from corr import app
2019-08-21 14:17:48,155:
2019-08-21 14:17:48,155: File “/home/Neroli/mysite/corr.py”, line 1, in
2019-08-21 14:17:48,155: import dash
2019-08-21 14:17:48,155:
2019-08-21 14:17:48,155: File “/home/Neroli/mysite/dash.py”, line 2, in
2019-08-21 14:17:48,155: from dash.dependencies import Input, Output

Please give me advice. Thanks!

It looks like you have a file called dash.py which could be causing some problems with your import statements. Try renaming the file and see if that helps?

1 Like

Thanks! I will do this.