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)

Hi, When I create new app,I got the following error.

Thank everyone

This is my Data sources:

Please don’t post code or logs as an image in the forum, this is bad practice.
Also, this does not seem to be the full error message.

  • Does the streamlit app work locally?
  • I am surprised that there is no requirements.txt file, it could be that this is why python libraries are missing in the streamlit runtime.

Oh thank you, my problem is missing request file requirements.txt.

I just had the same error, except with a different module. Can someone explain the ‘requirements.txt’ file that seems to be needed. What should it contain and where should it be placed?

My app runs locally without any issues. I only encountered this error when deploying.

Thank you!

** EDIT **
I have figured it out through this post.


Thank you for the heads up! Not sure what happened, but I rebooted the app and it is back up.