Problem to deploy an app in streamlit ModuleNotFoundError:

hello !
I have a problem to deploy an App. My requierements.txt dont process when deploy and get this Error…

import mysql.connector
ModuleNotFoundError: No module named ‘mysql’

I put a file requirements.txt at the same level of main.py with this dependencies
mysql-connector-python==8.1.0
SQLAlchemy==2.0.19
streamlit-option-menu==0.3.6

anyone can help me. My app read a database in a hostintg with mysql and need to connect with mysql.connector or sqlalchemy

repository

Typo: requeriments.txt

Hello!!! Thanks for your answer.

I get this error ```
51:01] :package: Processed dependencies!
Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not open requirements file: [Errno 2] No such file or directory: ‘requirements.txt’

In the main directory i have this files …
main.py # my app
requirements.txt # I only want to install unless mysql-connector-python
config.toml #

yes of course, the filename is still misspelled, as i wrote…

thanks… I fix it.

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