Using PyInstaller (or similar) to create an executable

Hello @clementdavies56, thank you for your assistance. I’m currently working on a new project using Streamlit version 1.31.0 and encountering the following error.

Exception in callback AppSession._on_scriptrunner_event..() at C:\Users\703321944\Projects\Text Inquisition\application_test\app-beta\a15Feb2024.ticketEinstein\lib\site-packages\streamlit\runtime\app_session.py:470
handle: <Handle AppSession._on_scriptrunner_event..() at C:\Users\703321944\Projects\Text Inquisition\application_test\app-beta\a15Feb2024.ticketEinstein\lib\site-packages\streamlit\runtime\app_session.py:470>
Traceback (most recent call last):
File “C:\Users\703321944\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py”, line 80, in _run
self._context.run(self._callback, *self._args)
File “C:\Users\703321944\Projects\Text Inquisition\application_test\app-beta\a15Feb2024.ticketEinstein\lib\site-packages\streamlit\runtime\app_session.py”, line 470, in
lambda: self._handle_scriptrunner_event_on_event_loop(
File “C:\Users\703321944\Projects\Text Inquisition\application_test\app-beta\a15Feb2024.ticketEinstein\lib\site-packages\streamlit\runtime\app_session.py”, line 540, in _handle_scriptrunner_event_on_event_loop
self._create_new_session_message(page_script_hash)
File “C:\Users\703321944\Projects\Text Inquisition\application_test\app-beta\a15Feb2024.ticketEinstein\lib\site-packages\streamlit\runtime\app_session.py”, line 656, in _create_new_session_message
imsg.command_line = self._script_data.command_line
AttributeError: ‘ScriptData’ object has no attribute ‘command_line’

How can this be resolved? I successfully created an executable file with version 1.29.0, and it is working fine.