Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have some problem #4

Closed
readingbook78 opened this issue Sep 11, 2023 · 1 comment
Closed

I have some problem #4

readingbook78 opened this issue Sep 11, 2023 · 1 comment

Comments

@readingbook78
Copy link

when I run your program, I had some problem that below.
Can you help me?

Error:
Traceback (most recent call last):
File "C:\startcoding\k-trains-main\reserve.py", line 68, in get_trains
email_sender = st.secrets.get("email_sender")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 774, in get
File "C:\Users\anhur\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\secrets.py", line 305, in getitem
value = self._parse(True)[key]
^^^^^^^^^^^^^^^^^
File "C:\Users\anhur\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\secrets.py", line 214, in _parse
raise FileNotFoundError(err_msg)
FileNotFoundError: No secrets files found. Valid paths for a secrets.toml file are: C:\Users\anhur.streamlit\secrets.toml, C:\startcoding\k-trains-main.streamlit\secrets.toml

fedebotu added a commit that referenced this issue Sep 12, 2023
@fedebotu
Copy link
Owner

Hi @readingbook78 , thanks for dropping by. That is correct, you need a secrets.toml file containing some info like user and password of your email account. Otherwise, you may want to modify the app to your needs (especially the notification function).

I added a small guide here ;)

@cecy07 cecy07 closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants