toml.decoder.TomlDecodeError: Key group not on a line by itself. (line 1 column 1 char 0)

Can anyone please help to solve this error?

while running command “streamlit run app.py”
it showing error in last line that:
toml.decoder.TomlDecodeError: Key group not on a line by itself. (line 1 column 1 char 0)

Thankyou in Advance.

Hi @Vector_Max, welcome to the Streamlit community!

Can you provide more information about what code you are running, the environment (local, Heroku, somewhere else)?

Hi, the same thing just happened to me.
I built an app, tested and it was working.
I then tried to build a container out of it with google cloud build packs.
I ran a final test and that is when streamlit started giving the above error. And I still haven’t solved the error.
Can you help out

Hi Mr.randyzwitch
I’m getting the same error in local, can you please help us.

I tried to run streamlit by typing in streamlit run hello, it returns "
toml.decoder.TomlDecodeError: Key group not on a line by itself. (line 1 column 1 char 0)

I have used streamlit to run an application, it worked. This above "streamlit run hello" was used to test streamlit, Sounds like there is something wrong with the toml decoder.
Any suggestions?
How to fix the issue?