Error Deploy Streamlit

I am in the process of deploying Streamlit, but after I deploy, there is an error, and the error is like this. :

ModuleNotFoundError: 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/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
    exec(code, module.__dict__)File "/app/sistem-pakar-penyakit-ayam/coba.py", line 9, in <module>
    from streamlit_option_menu import option_menu

Hi @Iqbal_Kurriana_Putra

ModuleNotFoundError suggests that you haven’t installed a prerequisite library and in your case that’s streamlit-option-menu which should be defined in the requirements.txt file (which is equivalent to install via pip).

Hope this helps!

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