Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Dash / Werkzeug: import error when trying to run Dash/Plotly, originating from Werkzeug


I recently installed dash and I’m trying to run a basic dash code. However, I’m getting a specific import error which is stemming from Werkzeug (I don’t even know what werkzeug is). I’ve tried downgrading werkzeug to the prior version (0.16.0) as other people said but this did not work. Any advice would be greatly appreciated as I’ve spent a lot of time trying to figure this out. Please see the traceback below:


ImportError Traceback (most recent call last) in ----> 1 import dash_core_components as dcc 2 import dash_html_components as html 3 import as px 4 import pandas as pd 5

~\Anaconda3\AppData\Local\Anaconda3\lib\site-packages\dash_core_components_ init in 4 import os as _os 5 import sys as _sys ----> 6 import dash as _dash 7 8 _basepath = _os.path.dirname( file )

~\Anaconda3\AppData\Local\Anaconda3\lib\site-packages\dash_ init in ----> 1 from .dash import Dash, no_update # noqa: F401 2 from . import dependencies # noqa: F401 3 from . import development # noqa: F401 4 from . import exceptions # noqa: F401 5 from . import resources # noqa: F401

~\Anaconda3\AppData\Local\Anaconda3\lib\site-packages\dash\ in 20 import flask 21 from flask_compress import Compress —> 22 from werkzeug.debug.tbtools import get_current_traceback 23 24 import plotly

~\Anaconda3\AppData\Local\Anaconda3\lib\site-packages\werkzeug\debug\ in 29 from …utils import cached_property 30 from …utils import escape —> 31 from .console import Console 32 33

~\Anaconda3\AppData\Local\Anaconda3\lib\site-packages\werkzeug\debug\ in 15 from …local import Local 16 from …utils import escape —> 17 from .repr import debug_repr 18 from .repr import dump 19 from .repr import helper

ImportError: cannot import name ‘debug_repr’ from ‘werkzeug.debug.repr’ (C:\Users\tishll\Anaconda3\AppData\Local\Anaconda3\lib\site-packages\werkzeug\debug\’’’

1 Like