We have seen a different behavior when streamlit app is launched in foreground manually using cmd or in background using batch mode. It seems that, app is not able to find some executables and files like Excel. I have attached few error screenshots below. As per the error, we have checked that no excel file was opened or excel process was running in background and still the issue persist.
We do not see this error when we launch the app in foreground manually using cmd or powershell. We are expecting any advise on this issue from you.
Could you print out the working directory for when you’re running the Streamlit apps both ways? Also, is there a particular reason you need to launch the app using ‘batch mode’? I’m not a windows user so i’m not totally sure what batch mode is
We are seeing Streamlit process getting killed/crashed for some unknown reason making the application server unavailable. To counter, we did some reactive step to check the port/process running and if not running, we start. Hence we are putting it thru batch mode. Batch mode (.bat/.ps1) is like running “shell (.sh)” script in Linux file.
@chetan-vaidya3d so when you run your Streamlit apps locally on Windows, the apps are getting killed? Do you have any logs for this? Is this happening right when you launch your Streamlit apps or some time afterwards? And am I right to say this is a local issue or do you have it deployed elsewhere?
Could you share the exact command that you’re running that does work, and the contents of the batch script that is failing?
Also, anything that you can share about the environment you’re running on could be helpful.
If you are able, could you also try minimizing your app down to a the smallest bit of code that still reproduces the error, then sharing that? See this post for more about what to share.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.