ModuleNotFoundError:

I have this problem, I couldn’t solve it.

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 556, in _run_script

  • exec(code, module.dict)File “/app/consultaacoes/app.py”, line 2, in *
  • import yfinance as yf*
    ```
[11:12:33] 📦 Processed dependencies!



2022-09-02 11:13:40.181 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 556, in _run_script
    exec(code, module.__dict__)
  File "/app/consultaacoes/app.py", line 2, in <module>
    import yfinance as yf
ModuleNotFoundError: No module named 'yfinance'
2022-09-02 11:24:57.894 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 556, in _run_script
    exec(code, module.__dict__)
  File "/app/consultaacoes/app.py", line 2, in <module>
    import yfinance as yf
ModuleNotFoundError: No module named 'yfinance'
2022-09-02 11:43:40.973 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 556, in _run_script
    exec(code, module.__dict__)
  File "/app/consultaacoes/app.py", line 2, in <module>
    import yfinance as yf
ModuleNotFoundError: No module named 'yfinance'
2022-09-02 11:54:58.792 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 556, in _run_script
    exec(code, module.__dict__)
  File "/app/consultaacoes/app.py", line 2, in <module>
    import yfinance as yf
ModuleNotFoundError: No module named 'yfinance'

Hi @Diogo_Moura,

Thanks for posting!

Can you share your requirements file?

Caroline :balloon:

1 Like

Thanks!
How can I share this file?

image

Diogo,

Hi @Diogo_Moura,

You can just copy/paste the contents here, thanks!

Caroline :balloon:

Hi @Caroline,

I started my journey a little while ago.
I created the requirements file but could not perform the procedure for entering information into it. I would be very grateful if I could help with anything.


Diogo,

Hey @Diogo_Moura

In the requirements.txt file, you have to list all the dependencies (libraries) that your app is using so that it can be installed on the cloud when you deploy your app.

For eg, you can add yfinance to it.

Thanks
Kanak

1 Like

FileNotFoundError: 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).

 File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 563, in _run_script
    exec(code, module.__dict__)
  File "/app/cyclone-project/archive/cyclone_project_pynb.py", line 70, in <module>
    with open("insat_3d_ds - Sheet.csv",'r') as csv_file:
FileNotFoundError: [Errno 2] No such file or directory: 'insat_3d_ds - Sheet.csv'