ImportError: cannot import name 'get_current_traceback' from 'werkzeug.debug.tbtools'


I’m new to Dash and am learning from the tutorial. After installation, I tried to run the first example (see below), but immediately ran into issue importing dash. This is the error message:
ImportError: cannot import name ‘get_current_traceback’ from 'werkzeug.debug.tbtools’

Any idea? Thanks!

Here is the code

Run this app with python and

visit in your web browser.

from dash import Dash, html, dcc
import as px
import pandas as pd

app = Dash(name)

assume you have a “long-form” data frame

see Plotly express arguments with Python for more options

df = pd.DataFrame({
“Fruit”: [“Apples”, “Oranges”, “Bananas”, “Apples”, “Oranges”, “Bananas”],
“Amount”: [4, 1, 2, 2, 4, 5],
“City”: [“SF”, “SF”, “SF”, “Montreal”, “Montreal”, “Montreal”]

fig =, x=“Fruit”, y=“Amount”, color=“City”, barmode=“group”)

app.layout = html.Div(children=[
html.H1(children=‘Hello Dash’),

    Dash: A web application framework for your data.



if name == ‘main’:

link to