Skip to content

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

@PreciousChicken

Description

@PreciousChicken

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions