A new tab doesn't open up in my web-browser if I run the streamlit-python script

BTW, Thank you ! It’s solved <3 And , one need to do this:

streamlit run filename.py (streamlit run filename won’t work)

1 Like

Hello, I am having same problems but on a Mac, Darwin and using Python 3.9 and in a venv where streamlit was installed using pip from PyPi in the terminal.
The command in the terminal python -m http.server 8000 worked for me and opens up a list directory of files in my Streamlit folder. From here I click on the file to see it but streamlit hello in the browser only shows google searches.
I also ran pip install --upgrade protobuf but this still fails to work on Opera and Chrome. Browser blockers are disabled.

Hi @PythonUnicorn, welcome to the Streamlit community!

It’s not expected that running python -m http.server 8000 will work, as Streamlit isn’t a static site generator. Streamlit runs using a Tornado server, which is activated using streamlit run app.py from a terminal. Streamlit Hello works in the same way, from a terminal in your venv you can type streamlit hello to see the demo.

As far as the protobuf install failing, I haven’t heard about this as an issue. I’ll ask internally to see if there is someone with a Mac who has any idea about this.

Best,
Randy

Hi @randyzwitch
The protobuf issue is known on GitHub protobuf issue and I uninstalled protobuf and reinstalled it, but again nothing is working as it should.
using Mac Big Sur v11.2.2.
the error message from terminal: