type oFileNotFoundError: 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/scriptrunner/script_runner.py", line 557, in _run_script exec(code, module.__dict__) File "MyApp/pages/1_🤔_How_To_Use.py", line 37, in <module> load_gif() File "MyApp/pages/1_🤔_How_To_Use.py", line 27, in load_gif file_ = open("Data/ezgif.com-gif-maker.gif", "rb")r paste code here
It’s difficult to debug with only a stack trace – see this post Using Streamlit: how to post a question in the Streamlit forum for adding more helpful context to your answer.
However, off the top of my head, it appears that it’s trying to find a file called
Data/ezygic.com-gif-maker.gif, and failing. If you’re trying this on your computer, then make sure that there is a folder called Data, and a file with that name, and that the
Data folder is in the same location as your app.
- streamlit_app.py - pages/ - 1_How_To_Use.py ... - Data/ - ezygif.com...
If you’ve deployed this app somewhere (say to Community Cloud), then make sure that same Data folder was uploaded along with your app’s code.