FileNotFoundError: [Errno 2] No such file or directory: '/app/plastichingelengthwalls1/Capture1.png'

My app has encountered an error and cannot load image:
github: GitHub - msbearthquake/Plastichingelengthwalls1: Plastic hinge length of reinforced concrete structural walls (RCSWs) version 1
How should I use images ?

FileNotFoundError: 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).


File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 562, in _run_script
    exec(code, module.__dict__)File "/app/plastichingelengthwalls1/", line 14, in <module>
    image1 = "/home/appuser/venv/lib/python3.9/site-packages/PIL/", line 3092, in open
    fp =, "rb")

It sounds like you’re not providing the correct path to the file you’re trying to access. Once you’ve deployed your app with Streamlit Community Cloud, you may need to change the path that you’ve used in your code if you were previously accessing a file that was stored locally on your computer.