- Are you running your app locally or is it deployed?
App is running fine locally, but not working deployed.
- If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform?
Community Cloud
b. Share the link to the public deployed app.
- Share the link to your app’s public GitHub repository (including a [requirements file]
- Share the full text of the error message (not a screenshot).
FileNotFoundError: [Errno 2] No such file or directory:
'/mount/src/jupyter-notebooks/90_Streamlit_apps/GWP_Well_capture/pages\\\\Bokeh_
Styles.yaml'
- Share the Streamlit and Python versions.
python 3.12
streamlit 1.38.0
Description/Issue
I’m trying to understand what I’m missing. A python script relies on several styling files for building an embedded bokeh application. I was not sure how to best point the script to the correct directory where the files were. I have tried os.getcwd()
and (currently) os.path.dirname(os.path.realpath(__file__))
.
This correctly finds the directory the script that’s running is in, and (you’ll see in Run_Computation.py), that I’m even explicitly printing a list of the files in that directory (and they’re showing up there). BUT, the script is still not finding them (see annotated screengrab).
This is NOT an issue when running locally. So what am I missing here? I’m pretty much a brand new user, so I’m not only looking for a fix but also an explanation/gaining understanding… Thanks…