My App Is Throwing Some Errors,Please Help

[client] Provisioning machine…
[client] Preparing system…
e[32m[manager] e[0mStarting up for owner: ‘iamharsh08raj’, repository: ‘predicting-loan-approvals’, branch: ‘main’, main module: ‘main.py’
e[32m[manager] e[0mCloning repository …
e[32m[manager] e[0mCloning into ‘predicting-loan-approvals’…

e[32m[manager] e[0mCloned repository!
e[32m[manager] e[0mProcessing dependencies …
e[32m[manager] e[0mProcessed dependencies!
2021-05-25 06:17:31.528 An update to the [server] config option section was detected. To have these changes be reflected, please restart streamlit.
2021-05-25 06:17:31.545 Uncaught app exception
Traceback (most recent call last):
File “/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py”, line 337, in _run_script
exec(code, module.dict)
File “/app/predicting-loan-approvals/main.py”, line 4, in
model=pickle.load(open(‘model.pkl’,‘rb’))
ModuleNotFoundError: No module named ‘sklearn’

[client] Spinning up manager process…
[client] Connecting…

Hi @Deepak_Oraon, welcome to the Streamlit community!! :clap: :partying_face:

You’ve accidentally misspelled your requirements.txt as reqiurements.txt. That prevented the installation of your Python dependencies, including scikit-learn. Renaming the file to requirements.txt will solve your issue.

Happy Streamlit-ing! :balloon:
Snehan

Cross-posting…getting same error:

https://discuss.streamlit.io/t/module-not-found-when-deploying-streamlit-via-github/6218/12

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.




2023-06-12 10:29:07.018 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/app/olympics-data-analysis/app.py", line 6, in <module>
    import preprocessor
  File "/app/olympics-data-analysis/preprocessor.py", line 3, in <module>
    athlete = pd.read_csv("athlete_events.csv")
  File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 912, in read_csv
    return _read(filepath_or_buffer, kwds)
  File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 577, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 1407, in __init__
    self._engine = self._make_engine(f, self.engine)
  File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 1661, in _make_engine
    self.handles = get_handle(
  File "/home/appuser/venv/lib/python3.9/site-packages/pandas/io/common.py", line 859, in get_handle
    handle = open(
FileNotFoundError: [Errno 2] No such file or directory: 'athlete_events.csv'

while deploying my app I am getting this error message

That is because the file athlete_events.csv is not in the root of your repository. Either put the file there or change the path in the call to read_csv() if it is somewhere else.