I tried to convert my code into an executable using PyInstaller. An executable file was generated, but it shows an error. The error is attached below.
File "importlib\metadata\__init__.py", line 397, in from_name
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Dashboard_Design.py", line 19, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "streamlit\__init__.py", line 64, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "streamlit\version.py", line 38, in <module>
File "importlib\metadata\__init__.py", line 888, in version
File "importlib\metadata\__init__.py", line 861, in distribution
File "importlib\metadata\__init__.py", line 399, in from_name
importlib.metadata.PackageNotFoundError: No package metadata was found for streamlit
Python 3.12.0
Streamlit, version 1.32.2
pyintsaller 6.5.0
Running the app locally