Closed hanpham32 closed 3 months ago
Can you share a link to your repo?
Can you share a link to your repo?
Here is the repo at that point in history
.streamlit/pages.toml is hidden but here is the file:
# pages.toml
[[pages]]
path = "main_page.py"
name = "Home"
icon = "🏠"
[[pages]]
path = "pages/about.py"
name = "About"
icon = "🦦"
[[pages]]
path = "pages/page_2.py"
name = "Another page"
It appears that .streamlit/pages.toml
is not hidden, does not exist in that repo at that point in time https://github.com/hanpham32/streamlit-deployment-test/tree/4a15b4d25ad732bc39d831608779cc42f2de5732 -- you'll need to make sure you actually upload that file for show_pages_from_config()
to actually work. This is probably the case because you put .streamlit/
in your .gitignore, so git will by default ignore all files in your gitignore. You probably meant to add .streamlit/secrets.toml
into your gitignore.
That doesn't explain the ModuleNotFoundError, but if you do end up switching back to st_pages, you'll need to make sure that file is included in the repo. I'm still confused why that was happening, sorry. You might check in the app logs to see if there was some issue installing the dependencies https://docs.streamlit.io/streamlit-community-cloud/manage-your-app#streamlit-community-cloud-logs
Side note: I noticed that in the current version of the repo, you added streamlit_extras to your packages.txt, but that won't work -- you want to add that to requirements.txt, as packages.txt is only for ubuntu packages, not for pip packages.
I had the same problem and solved it adding "is_section=true" at the last page of my page list.
Seems that for it to work on Streamlit Cloud now at least 1 page has to have "is_section=true". If none have it doesn't work.
@danilo-css do you have the same ModuleNotFoundError
problem?
I had the same problem and solved it adding "is_section=true" at the last page of my page list.
Seems that for it to work on Streamlit Cloud now at least 1 page has to have "is_section=true". If none have it doesn't work.
Im experiencing the same problem, and this works for me as well
I'm getting:
I've added the package in my
requirements.txt
. Not sure why Streamlit Cloud isn't able to importst_pages