The url wont launch Streamlit app on browser unless computer is restarted
See original GitHub issueSummary
I now need my computer restarted to get the url generated from the terminal to run the Streamlit app on the browser. To test the server I tried other similar applications like jupyter notebooks with urls from terminal and they run fine in browsers. Streamlit app however wont run unless I restart the computer.
Steps to reproduce
What are the steps we should take to reproduce the bug:
- Run the command `streamlit run app.py’ in the terminal
- Copy the url link on the browser
- The Streamlit app should launch
Expected behavior:
Expected the url to launch the Streamlit app as before.
Actual behavior:
The url generated in the terminal when copied in the browser wont run the streamlit app.
Is this a regression?
yes, this was working just fine a while ago.
Debug info
- Streamlit version: 0.53.0
- Python version: 3.7.6
- Using virtualenv
- OS version: Win 10
- Browser version: all browsers (IE, Firefox 68.5.0esr (64-bit))
Additional information
This issue emerged only now. It was running fine just a while ago where as soon as I hit the command `streamlit run app.py’ it would lauch the app on IE browser. I’m working on st.cacheing so I wonder if it has anything to do? I tried browser cookie clearing to no avail.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
Hello i had an issue that might be the root cause of this:
-when i run it from console, and the close it without stopping the service, sometimes the python process will get stuck, when i run it again, it will open a second process, hence both processes will run on the same port, this i will make the application crash.
-There are 2 solutions for this, killing the process from task manage or restart the PC
Hope this helps
So, there are two issues potentially at play here:
Internet Explorer is not supported by Streamlit. This is the most likely cause of the OP’s problem and should be solved by changing the default browser to something else. Edge will work.
It’s possible there are zombie python processes being generated when the console is closed without stopping Streamlit. I didn’t see this myself, but @josh3028 did and it could be an explanation for how the OP saw the problem resolve upon reboot.
For now, I recommend:
Change default browser in Windows to something non-IE until we have a chance to figure out how to solve #1429
Give Streamlit a proper shutdown (control-C) before closing the terminal.
In case of failure to do a proper shutdown, follow @josh3028 's advice to kill the process from the task manager (or, failing this, restart the PC).