So I had just installed streamlit yesterday and it working all fine. All of sudden it doesn’t work now. streamlit hello throws some error which I am unable to understand. Please help!
I think you modified your Streamlit configuration file
config.toml, either in
~/.streamlit/config.toml, and inputted a
€ character somewhere in it. This character seems to be invalid, thus you’re adviced to quote the value containing it.
I tried locating config.toml but couldn’t find the location of the file. Even running the command
streamlit config show throws the same error as above. Is there a way out?
Is there a way to completely remove streamlit from the system?
pip uninstall streamlit doesn’t help
Configuration files won’t necessary be removed when you uninstall a python package.
As you’re on Windows, could you run the following command in your command prompt? It will search for
config.toml configuration files on your drive.
dir /s C:\config.toml
If I’m right, you should have a match inside a
.streamlit folder, in your home or your project’s directory. Once you have it, could you post its content here?
@Synode Thanks I could finally locate the file.
Here’s the content from my config.toml file:
“[server]nheadless = truenport = nenableCORS=falsenn“
What do I do?
Hmm, I thought I’d find a
€ in it, but it’s not the case
You didn’t have any other match while running
dir /s ...? If not, try running
streamlit run hello again, and if you’re still encountering the same exception, rename the configuration file to something like
backup.toml and run
streamlit run hello again.
Buddy a big thanks!
I renamed the file to
streamlit run command works just like it used to. I believe my attempt of hosting it on heroku caused all this trouble. Anyway it is resolved for now and works!
I realize this has already been marked solve, but the way that code snippet is displaying on my computer, it indicates that “smart quotes” are being used rather than plain
". For future people, be careful if you are copy-pasting from somewhere, smart quotes have caused many errors across many programming languages