Skip to content

Unable to run usage.py due to dash exception caused by app.run_server #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PreciousChicken opened this issue Mar 27, 2025 · 0 comments

Comments

@PreciousChicken
Copy link

Describe the issue

On running python usage.py an exception is thrown as shown:

Traceback (most recent call last):
  File "[...]/usage.py", line 10, in <module>
    app.run_server(debug=True)
    ^^^^^^^^^^^^^^
  File "[...]/venv/lib/python3.13/site-packages/dash/_obsolete.py", line 22, in __getattr__
    raise err.exc(err.message)
dash.exceptions.ObsoleteAttributeException: app.run_server has been replaced by app.run

To reproduce

Install template as per:

cookiecutter gh:plotly/dash-typescript-component-template

Enter relevant directory, install dependencies and run:

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
npm install
npm run build
python usage.py

Expected behaviour

Dash to run on local server.

Configuration

  • OS: Manjaro Linux 25.0.0
  • npm: 11.0.0
  • node: 22.13.1
  • python: 3.13.2

Additional context

Happy to provide a PR to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant