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!
Hello @dhairyap99,
I think you modified your Streamlit configuration file config.toml
, either in your_project_dir/.streamlit/config.toml
or ~/.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.
Hello @okld,
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?
@okld 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 backup.toml
and 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 '
or "
. For future people, be careful if you are copy-pasting from somewhere, smart quotes have caused many errors across many programming languages
i still couldnt find config.toml file âŠhellp!!!