Hi this is the code snippet of login page whenever it is successfully logged in it opens a new tab but when I’m trying to deploy it, it is not opening it, it show error that
Usage: streamlit run [OPTIONS] TARGET [ARGS]...
Try 'streamlit run --help' for he
Error: Invalid value: File does not exist: interface2.py
main.py code snippet
if st.button(“Login”):
if authenticate(email, password):
st.success(“You have successfully logged in!”)
subprocess.run([“streamlit”,“run”,“interface2.py”])
else:
st.error(“Incorrect email or password. Please try again.”)
Welcome aboard @Vedansh25! We’re thrilled to have you join us!
The error message Error: Invalid value: File does not exist: interface2.py indicates that Streamlit cannot find interface2.py.
Can you please double-check that interface2.py exists in the same directory as your main application file (main.py), or specify the correct path to interface2.py?
How does one open the tab in the same window as the streamlit_navigation_bar using subprocess.run? It works fine when calling a bash or python process to generate the contents but it opens it in another browser window’s tab.
All I want to do is to open the contents in the same frame as the navigation bar.
Seems pretty standard - is this supported?
Thanks.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.