Something wrong with image

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

Traceback:

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)File "/mount/src/car-price-prediction/streamlit/Home.py", line 14, in <module>
    moto4_image = Image.open('moto4.png')File "/home/adminuser/venv/lib/python3.9/site-packages/PIL/Image.py", line 3236, in open
    fp = builtins.open(filename, "rb")

Can u help me,

github :GitHub - lalahashimli/car-price-prediction
streamlit app : https://moto-4.streamlit.app/

Hi @lalahashimli :wave:,

This FileNotFoundError suggests that the file path provided in your Image.open('moto4.png') function call is either incorrect or the file does not exist in the designated location.

Could you confirm that the moto4.png file is in the correct path?

Thanks,
Charly

1 Like

Thanks ,Charly, it worked

1 Like

Glad it worked! :raised_hands:

Best,
Charly

1 Like

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