Hi evreone!
I am trying to deploy test Dash app on my server (Ubuntu 20.04 but I am having issues deploying it
I continue to get the error every time.
I am not an experienced programmer, but I have been playing with dash and plotly lately; I think it is a great tool.
I really want this to work as I would like my organization to buy some licenses in the future.
I would appreciate any help you can give me.
Below is the code and the error:
Error:
Dec 15 10:15:13 dimonsdash uwsgi[1310]: unable to load app 0 (mountpoint=’’) (callable not found or import error)
log server
Dec 15 10:15:12 dimonsdash uwsgi[1310]: *** Operational MODE: preforking ***
Dec 15 10:15:13 dimonsdash uwsgi[1310]: unable to load app 0 (mountpoint='') (callable not found or import error)
Dec 15 10:15:13 dimonsdash uwsgi[1310]: *** no app loaded. going in full dynamic mode ***
Dec 15 10:15:13 dimonsdash uwsgi[1310]: *** uWSGI is running in multiple interpreter mode ***
project.py
import dash
import dash_core_components as dcc
import dash_html_components as html
from flask import Flask
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
server = app.server
app.layout = html.Div([
html.H2('Hello World'),
dcc.Dropdown(
id='dropdown',
options=[{'label': i, 'value': i} for i in ['LA', 'NYC', 'MTL']],
value='LA'
),
html.Div(id='display-value')
])
@app.callback(dash.dependencies.Output('display-value', 'children'),
[dash.dependencies.Input('dropdown', 'value')])
def display_value(value):
return 'You have selected "{}"'.format(value)
wsgi.py
from project import server as application
if __name__ == '__main__':
application.run(debug=True, host='0.0.0.0')