ModuleNotFoundError: This app has encountered an error

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.

1 Like

@Felix_Pena

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

Thanks a lot

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