Streamlit is crashing on run with toml.decoder.TomlDecodeError

I installed and run streamlit very successfully yesterday and my apps worked fine.

Suddenly out of the blue today, streamlit crashes on run.
streamlit hello
results in a crash with this message:
Traceback (most recent call last):
File “c:\users\imall\anaconda3\lib\runpy.py”, line 193, in run_module_as_main
main”, mod_spec)
File “c:\users\imall\anaconda3\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "C:\Users\imall\Anaconda3\Scripts\streamlit.exe_main
.py", line 5, in
File "c:\users\imall\anaconda3\lib\site-packages\streamlit_init
.py", line 102, in
from streamlit.DeltaGenerator import DeltaGenerator as _DeltaGenerator
File “c:\users\imall\anaconda3\lib\site-packages\streamlit\DeltaGenerator.py”, line 27, in
from streamlit import caching
File “c:\users\imall\anaconda3\lib\site-packages\streamlit\caching.py”, line 39, in
from streamlit.hashing import Context
File “c:\users\imall\anaconda3\lib\site-packages\streamlit\hashing.py”, line 40, in
from streamlit.folder_black_list import FolderBlackList
File “c:\users\imall\anaconda3\lib\site-packages\streamlit\folder_black_list.py”, line 38, in
if config.get_option(“global.developmentMode”):
File “c:\users\imall\anaconda3\lib\site-packages\streamlit\config.py”, line 89, in get_option
parse_config_file()
File “c:\users\imall\anaconda3\lib\site-packages\streamlit\config.py”, line 887, in parse_config_file
_update_config_with_toml(file_contents, filename)
File “c:\users\imall\anaconda3\lib\site-packages\streamlit\config.py”, line 809, in _update_config_with_toml
parsed_config_file = toml.loads(raw_toml)
File “c:\users\imall\anaconda3\lib\site-packages\toml\decoder.py”, line 262, in loads
original, i)
toml.decoder.TomlDecodeError: Found invalid character in key name: ‘€’. Try quoting the key name. (line 1 column 2 char 1)

I can’t figure out what happenned.
I tried pip install streamlit again, but with no benefit

I figured this out from a previous post
my config.toml file had been modified while deploying to heroku which i fixed

2 Likes