Running debug mode with pyinstaller - FrozenImport Error

I’m trying to run dash debug with pyinstaller. This normally works when I run it normally without pyinstaller
However with pyinstaller, I get the following error:

Traceback (most recent call last):
File “cli.py”, line 13, in
File “app/app_overview.py”, line 21, in run
File “dash/dash.py”, line 2133, in run_server
File “dash/dash.py”, line 1899, in run
File “dash/dash.py”, line 1656, in enable_dev_tools
File “dash/dash.py”, line 1665, in

I’ve also tried adding the packages to datas:
datas += collect_data_files(‘dash_core_components’)
datas += collect_data_files(‘dash_draggable’)
datas += collect_data_files(‘dash_extensions’)
datas += collect_data_files(‘dash_html_components’)
datas += collect_data_files(‘dash_iconify’)
datas += collect_data_files(‘dash_mantine_components’)
datas += collect_data_files(‘dash_renderer’)

But so far I’ve had no luck. Has anyone managed to get this working ?

Thanks in advance

Can you elaborate on what you mean by running dash debug with pyinstaller?

I think your stack trace may have been truncated. Can you see if there’s more text that was missing and update?

Ahh it is truncated indeed. Please see below for the complete stack trace:
Traceback (most recent call last):
File “cli.py”, line 13, in
File “app/app_overview.py”, line 21, in run
File “dash/dash.py”, line 2133, in run_server
File “dash/dash.py”, line 1899, in run
File “dash/dash.py”, line 1656, in enable_dev_tools
File “dash/dash.py”, line 1665, in

My dash dependencies are also as follows:
dash 2.6.1
dash-bootstrap-components 1.2.1
dash-core-components 2.0.0
dash-html-components 2.0.0
dash-table 5.0.0