New package st-pages: change page names and icons in sidebar without changing filenames

After updating st_pages to version 1.0.1 I am having the problem below:

ImportError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).

Traceback:

File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
    result = func()
             ^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
    exec(code, module.__dict__)

File "/mount/src/layout-tcc/main.py", line 2, in <module>
    from st_pages import Page, add_page_title, show_pages, Section

imagem_2024-08-13_125404038

Hi @Alisson1, the st_pages package has been changed significantly with the release of 1.0.0. Check out the st_pages/README.md at main · blackary/st_pages · GitHub for the new way to use that package.