Error " toml.decoder.TomlDecodeError: Key group not on a line by itself " when import streamlit

I got the error when import streamlit.
At first the system was running normally and I created a web site but a week later I reported an error in the config section.

import streamlit

Hey Kosnhan!

Thank you for reporting this. We are looking in to this now. It would be helpful to know:

  1. Are you still experiencing this issue?
  2. What are the contents of your config.toml file?
  3. If your app is deployed, what is the URL?

Thanks in advance,

James from Streamlit

Tks James,
This error occurred when I used python version 3.6 and 3.7. After I updated python 3.8 and just used command “pip install streamlit” and It worked. So I guess the streamlit version 0.8 just fit python > 3.8