I’m getting the above error message when I deploy streamlit to Heroku. I’m working with several people on this. On my computer (Windows 10), if I delete the
config.toml file the issue goes away. However, for other people I am working with it does not solve the issue.
Here is the setup.sh:
mkdir -p ~/.streamlit/ echo "\ [general]\n\ email = \"myemailgmail.com\"\n\ " > ~/.streamlit/credentials.toml echo "\ [server]\n\ headless = true\n\ enableCORS=false\n\ port = $PORT\n\ " > ~/.streamlit/config.toml
Procfile looks like this:
web: sh setup.sh && streamlit run app.py
streamlit == 0.67.0 in the requirements.txt file.
I regularly get this issue when working with Heroku, and the issue has always been solved by deleting the config file. No idea why all of a suddent that does not suffice now for some other people. Help is much appreciated. Thank you.