If you’re creating a debugging post, please include the following info:
-
Are you running your app locally or is it deployed?
Running the app on Codespaces -
Share the full text of the error message (not a screenshot).
Traceback:
File "/home/vscode/.local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.__dict__)
File "/workspaces/racerecordmaster/main.py", line 5, in <module>
from menu import menu, menu_with_redirect
- Share the Streamlit and Python versions.
Streamlit 1.31.1
Python 3.11.6 64-bit
I have followed the documentation here (Create custom navigation menus - Streamlit Docs) however, most of the time the import does not work. Thank you very much for your help