Import yfinance as yf ModuleNotFoundError: Can't deploy

Dear Streamlit team,

I have classic deployment error. Looked through posts, tried to fix it, but was unsuccessful.
Could you please tell, what I’m missing in my case?

BR,

  1. Share the link to the public deployed app.
    GitHub - risgandar/stocks
  2. Share the link to your app’s public GitHub repository (including a requirements file).
    https://github.com/risgandar/stocks/blob/main/requirements
  3. Share the full text of the error message (not a screenshot).
    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).
  4. Share the Streamlit and Python versions.
    https://stocks-cqdgzyxmswim8yxqgmcye6.streamlit.app/
  • use the reqs file below :arrow_down:
  • do a reboot of the app

requirements.txt

numpy
pandas
plotly
streamlit
yfinance
1 Like

Thanks, Franky!

I have checked the requirements.txt which correctly contain the finance but still get the same error. I even delete it the original requirements.txt in github repository and upload again for so many times, but still no luck. Any clue for the problem and fix?

HI @jasonckb0411

Could you provide the error message that you’re encountering to help us identify the source of the error. Thanks!

" Import yfinance as yf ModuleNotFoundError: Can’t deploy"

The problem has been solved by not just refreshing the webpage after requirements.txt has been deleted and reloaded. but go back to “cook” again “in the oven”:smiley:

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