@mmartino wrote:
I am trying to create a .exe file to run a python dashboard created with Plotly Dash. Once I create the file with PyInstaller and try to run it, I get this error:
Traceback (most recent call last): File "app.py", line 2, in <module> File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "/Users/mohamedmartino/opt/anaconda3/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 623, in exec_module exec(bytecode, module.__dict__) File "site-packages/dash_core_components/__init__.py", line 12, in <module> FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/np/m30g9mj57h72n68qxc2tq61m0000gn/T/_MEI2yKNs4/dash_core_components/package-info.json' [85571] Failed to execute script app
I’m new to coding, and I can’t figure out why it can’t find the dcc dependency. Is there a better way to compile my modules into one executable file?
I have a few python modules and excel files in the same directory as well as an -asset folder with images and css files.
Posts: 2
Participants: 2