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
Hello @Syed_Muhammad_Abdull,
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.
For example:
- 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.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.