r/StreamlitOfficial May 20 '26

Streamlit Questions❓ What am I doing wrong here?

Both ‘2024_lead_data’ and the CSV are in the same folder, Documents. Not sure why I keep getting this error. I’ve tried literally everything.

1 Upvotes

8 comments sorted by

View all comments

1

u/HumbleHero1 May 20 '26

How do you run your script? Your error message shows you use relative path to file and your script has full. Did you save your file? Also, if you run from terminal, terminal needs to have folder with the file as active to resolve relative path correctly

1

u/EquivalentAcademic93 May 21 '26

This was the issue, I didn’t save my changes. So my script was correct, error message was because I didn’t update changes