Streasmlit app covert to exe give error by cx_freeze and pyinstaller

I followed the instructions provided in the above link to convert a Streamlit application into an executable file (EXE). However, I encountered an error, which I have documented in the attached picture. Please review it and provide me with the correct code to successfully convert the Streamlit app to an EXE.

thank you in advance for your help