As of this evening, I cannot do anything with streamlit, not even run the streamlit hello
or even streamlit version
. The only thing I can think of that chagned was commiting my code to a new GitHub repository. The error I get is:
(base) C:\Users\Erik\Desktop>streamlit hello
Traceback (most recent call last):
File "c:\users\erik\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\erik\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Erik\Anaconda3\Scripts\streamlit.exe\__main__.py", line 5, in <module>
File "c:\users\erik\anaconda3\lib\site-packages\streamlit\cli.py", line 34, in <module>
import streamlit.bootstrap as bootstrap
File "c:\users\erik\anaconda3\lib\site-packages\streamlit\bootstrap.py", line 30, in <module>
from streamlit.server.Server import Server
File "c:\users\erik\anaconda3\lib\site-packages\streamlit\server\Server.py", line 36, in <module>
from streamlit.ReportSession import ReportSession
File "c:\users\erik\anaconda3\lib\site-packages\streamlit\ReportSession.py", line 42, in <module>
from streamlit.watcher.LocalSourcesWatcher import LocalSourcesWatcher
File "c:\users\erik\anaconda3\lib\site-packages\streamlit\watcher\LocalSourcesWatcher.py", line 79, in <module>
FileWatcher = get_file_watcher_class()
File "c:\users\erik\anaconda3\lib\site-packages\streamlit\watcher\LocalSourcesWatcher.py", line 60, in get_file_watcher_class
watcher_type = config.get_option("server.fileWatcherType")
File "c:\users\erik\anaconda3\lib\site-packages\streamlit\config.py", line 95, in get_option
parse_config_file()
File "c:\users\erik\anaconda3\lib\site-packages\streamlit\config.py", line 852, in parse_config_file
_update_config_with_toml(file_contents, filename)
File "c:\users\erik\anaconda3\lib\site-packages\streamlit\config.py", line 774, in _update_config_with_toml
parsed_config_file = toml.loads(raw_toml)
File "c:\users\erik\anaconda3\lib\site-packages\toml\decoder.py", line 379, in loads
original, pos)
toml.decoder.TomlDecodeError: Key group not on a line by itself. (line 1 column 1 char 0)
Seems like an issue with the toml decoder.
I have uninstalled, reinstalled, upgraded and downgraded to 0.37. Nothing works.
Thoughts?