Deployment error: Could not find a valid .streamlit/pages.toml file. Please create one with the following format:

Good evening everyone,

My team and I have implemented an application using Streamlit in Python and we want to deploy it. The application works perfectly on a local level, as well as with dockerization. We are deploying through the organization on GitHub, it deploys on Streamlit, the tabs appear, but it shows the following error: “Could not find a valid .streamlit/pages.toml file. Please create one with the following format:”

Within the repository, as you will see, there is already the required directory with the pages.toml file.

I look forward to your response and assistance.

Thank you.

GitHub Repo: GitHub - Brigade-01/Software-Engineering: The official repository of Brigade-01 for the Software Engineering course for the academic year 2023-2024..

Welcome to the community, @Greekforce1821! It’s great to have you here, and we’re looking forward to seeing what you build! :hugs:

To solve the Streamlit deployment issue, ensure the pages.toml file is in the .streamlit directory at your repository’s root with the correct .toml extension and format. Also, check that your GitHub settings allow Streamlit to access the necessary files. This should help get your app deployed w.o these errors.

I hope this helps.

Charly

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.