Windows Server · Python hosting

cannot import name 'app' (Dash / Flask entrypoint)

Deploy fails because the entrypoint points at a Dash object, not the Flask WSGI server. Use app:server / run:server.

What you’re seeing

Deploy fails with an import error such as cannot import name 'app' or Waitress cannot load the target.

Why it happens

Flask apps usually expose app (WSGI). Dash apps expose a Dash instance — Waitress needs the Flask server object. Using app:app on a Dash project looks for the wrong attribute. Some tools also try to pip install app from PyPI when the local module is missing — that installs junk.

The fix

Avoid this class of problem

iVistaar detects common stacks and refuses to blindly pip install app from PyPI when your local entrypoint is wrong — you get a clear entrypoint error instead.

Publish without the IIS tax

iVistaar is an internal deployment control plane for Windows Server/IIS that gives Flask, Dash, and Streamlit apps an org URL without Git or cloud services. Free demo includes 3 sites.

Related errors