Hi, my main.py file runs successfully when I do streamlit run main.py, hence there seems to be no issues when I try to debug using the feature in your video (great video by the way!). However after using PyInstaller to package my streamlit app into an .exe file, upon opening the .exe, I get the error that st.session_state cannot function without `streamlit run`. But `streamlit run` can only operate with .py files; how do I then open my .exe file and also use st.session_state?
@@fullstackailab Hi, thanks for the suggestion. I tried to explore more about stlite but I am unsure of how to use it as the examples I have seen simply use st.mount and document.getElementById("root") to run the file, how then does this relate to my issue with session state?
Also just to note, from what I have explored it seems like ths st.lite web apps are still ultimately deployed to the web. What if I want to deploy it as an .exe file, because I want to access the app without internet access. Is it still possible to use st.lite?
This is something you can contact the streamlit team directly or ask on their community support web page. My knowledge is limited on the thread establishment of executable files when they are run in Microsoft OS.
Thanks, God bless you! Gracias, Dios te bendiga! Merci, Dieu te bénisse! Danke, Gott segne dich! Grazie, Dio ti benedica! Dank je, God zegene je! Obrigado, Deus te abençoe! Спасибо, Бог благословит тебя! 谢谢, 上帝保佑你! ありがとう, 神様があなたを祝福します! شكرا, بارك الله فيك! תודה, אלוהים יברך אותך! धन्यवाद, भगवान आपका भला करे! 감사합니다, 하나님이 당신을 축복하시길 바랍니다! Cảm ơn, Chúa phù hộ bạn 🙌🤝🤙✌
Thanks for this video! It helps me a lot with my problem debugging my python app!
You're very welcome!
Thanks man. You saved me a lot of pain.
I am glad this helped!
Worked flawlessly! Thanks a lot
Excellent! :)
Thank you very much! Very useful video and straight to the point.
Glad it was helpful!
Thank u very much!!
Thank you!
Hi, my main.py file runs successfully when I do streamlit run main.py, hence there seems to be no issues when I try to debug using the feature in your video (great video by the way!). However after using PyInstaller to package my streamlit app into an .exe file, upon opening the .exe, I get the error that st.session_state cannot function without `streamlit run`. But `streamlit run` can only operate with .py files; how do I then open my .exe file and also use st.session_state?
Try stlite, a python library. check out their github page: github.com/whitphx/stlite
@@fullstackailab Hi, thanks for the suggestion. I tried to explore more about stlite but I am unsure of how to use it as the examples I have seen simply use st.mount and document.getElementById("root") to run the file, how then does this relate to my issue with session state?
Also just to note, from what I have explored it seems like ths st.lite web apps are still ultimately deployed to the web. What if I want to deploy it as an .exe file, because I want to access the app without internet access. Is it still possible to use st.lite?
This is something you can contact the streamlit team directly or ask on their community support web page. My knowledge is limited on the thread establishment of executable files when they are run in Microsoft OS.
@@fullstackailab I see, thanks for helping anyways!
Hi, I followed you steps, but still could not debug it, and here is my config of launch.json, would you please take a look?
{
"name": "streamlit debug",
"type": "python",
"request": "launch",
"module": "streamlit",
"args": [
"run",
"${file}",
"--server.port", "8501",
"--server.address", "10.11.20.154"
],
"justMyCode": true,
}
@@craintest Try put the "8501" and "10.11.20.154" in a new line. That should resolve your problem. Let me know how it goes.
"Promo sm" 😚
Thank you for your support.
Thanks, God bless you! Gracias, Dios te bendiga! Merci, Dieu te bénisse! Danke, Gott segne dich! Grazie, Dio ti benedica! Dank je, God zegene je! Obrigado, Deus te abençoe! Спасибо, Бог благословит тебя! 谢谢, 上帝保佑你! ありがとう, 神様があなたを祝福します! شكرا, بارك الله فيك! תודה, אלוהים יברך אותך! धन्यवाद, भगवान आपका भला करे! 감사합니다, 하나님이 당신을 축복하시길 바랍니다! Cảm ơn, Chúa phù hộ bạn
🙌🤝🤙✌
Thank you for this warm inclusive answer :)