FileNotFoundError after converting my app dash to exe

Hi there,
I am trying to rap my dash program to exe file using auto_py_to_exe.
It seems to run OK, but when I open the exe file I get the following error:

Traceback (most recent call last):
  File "", line 2, in <module>
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller\loader\", line 352, in exec_module
  File "dash_mantine_components\", line 26, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\monick\\AppData\\Local\\Temp\\_MEI186962\\dash_mantine_components\\package-info.json'

Any suggestions how to handle this?

Hello @MaayanShoshan,

My guess is that you need to wrap all the imports into the exe as well.

I havent done this, but does it use a venv to determine the requirements, etc?

it seems like it does wrap the imports.
I first tried it on a simple Dash app and it works fine, but when I did it on my app the import of dash_mantine_components wasn’t rapped ok.
I copied the folder manually because I didn’t manage to resolve it and it worked.

1 Like