Welcome to the Streamlit Community! There might be a couple of things happening here:
1st is the name of your file: Python 3.8 seems to have its own secrets.py file in “/usr/local/Cellar/etc…”, which is not the directory you are running your files from as that starts with “/Users/etc…”. If you rename your secrets.py file in your CWD to something like my_secrets_file.py that will likely solve the problem if your working locally.
2nd is your directory structure (if your deploying):
if your directory is set up:
“local/directory/structure/my_app/” and in my_app directory is your streamlit_app and your secrets:
“local/directory/structure/my_app/secrets.py” (again change this name)
Then it should load, but if it is anything other than this file structure (@joshzwiebel this may help with your issue) then you will need to add this file to the requirements.txt file you need when deploying an app on streamlit share:
This should work!