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

Hi Community,
We are aware of an error that has been cropping up when working on some Dash apps. This is a result of werkzeug updating to version 2.1.0.

We are working on a patch to be released today. In the meantime, the temporary workaround is to use werkzeug==2.0.1.

Command line:

pip uninstall werkzeug
pip install werkzeug==2.0.1

And within your requirements.txt file when deploying:

werkzeug==2.0.1
5 Likes

We’ve just released Dash v2.3.1 to address this issue.

Please note: anyone who has a previous version of dash pinned in their requirements.txt and redeploys it, will still run into this problem; you will either need to update to the latest dash (2.3.1 or higher) or add werkzeug==2.0.1 to your requirements file.

5 Likes