question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The url wont launch Streamlit app on browser unless computer is restarted

See original GitHub issue

Summary

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:

  1. Run the command `streamlit run app.py’ in the terminal
  2. Copy the url link on the browser
  3. 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
josh3028commented, May 12, 2020

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

0reactions
nthmostcommented, May 26, 2020

So, there are two issues potentially at play here:

  1. 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.

  2. 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:

  1. Change default browser in Windows to something non-IE until we have a chance to figure out how to solve #1429

  2. Give Streamlit a proper shutdown (control-C) before closing the terminal.

  3. 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).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to launch streamlit app using the url
I get the url generated by running the command 'streamlit run app.py' but when I copy and run the url in the browser...
Read more >
App is not loading when running remotely - Streamlit Docs
When you enter the app's URL in a browser and all you see is a blank page, a "Page not found" error, a...
Read more >
A new tab doesn't open up in my web-browser if I run the ...
I just installed Streamlit. I wrote a hello world program. But no new tab opened in my browser, so I couldn't see the...
Read more >
"Please wait..." forever when accessing through Network URL
Step 1: Run the streamlit x.py file. Step 2: go to the app (either through localhost or network url, doesn't matter)
Read more >
Network URL not working on other computers - Using Streamlit
Usually an issue like this indicates a networking issue, not a Streamlit one. If there is a firewall on the computer you are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found