I have a script that my team use to run a streamlit app locally (streamlit version 1.27.2 - am unable to update streamlit version further, python version 3.11.5 on windows).
On a new users first use of the app, streamlit pops up a message in the command line asking for the users email. The app itself won’t open until the user hits enter or provides an email.
How can I block this “please enter your email” message from coming up? It has confused several users who think the tool is broken when they just need to hit enter.
I have tried appending the flag --global.developmentMode=false to the run command in the command line but it did not turn the “please enter your email” message off.
Yes I did, do you need further information?
Streamlit is adding a “please enter your email” as a message in the command line whenever a new user runs any streamlit app ( streamlit version 1.27.2) locally on windows. The app will not open until the user hits enter or enters their email.
How do I stop streamlit’s message from popping into the command line and interrupting the opening of the app?
Do you have a sample minimal code that we can test and reproduce your issue?
Having the exact same problem here, what’s worse: Popen can’t capture ip address and it will stuck here forever for new users
I tried add .streamlit\credentials.toml like this to skip, but it still don’t work: the welcome msg still pop up and block new users.
under Streamlit, version 1.30.0
Now I can only remind users in README to manually skip it by using CLI before they can use the software GUI normally.
ps: I don’t think this is a good design. Just to collect ‘spam’ information, it sets up huge obstacles and hidden dangers for integrating into the client and providing users with out-of-the-box usage scenarios.(obviously, not everyone is developer, the email info they submitted not gonna help) It doesn’t even have an explicit parameter to skip. (I wonder if team ever compiled statistics on the proportion of valid emails submitted between those skipped directly? Is the ROI worth supporting the design?
After some testing, here is the code can skip the email work on my env(The above credentials.toml was been placed in project
.streamlit directory in advance):
from streamlit.file_util import get_streamlit_file_path
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
credential_path = get_streamlit_file_path("credentials.toml")
if not os.path.exists(credential_path):
shutil.copyfile(os.path.join(PROJECT_ROOT, ".streamlit\\credentials.toml"), credential_path)