Error while depolying streamlit app

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 565, in _run_script
    exec(code, module.__dict__)File "/app/demo/index.py", line 2, in <module>
    import mysql.connector
```I installed mysql-connector-python but also it is showing ModuleNotFoundError

The link for my streamlit app is : https://anianonymous-demo-index-j9bmtq.streamlit.app/

You need a requirements.txt file in your repo with the dependencies.
Please familiarize yourself with how deployment works on streamlit cloud:

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