I can run file fine on IDE (VS Code with path set to py file).
However, when running streamlit run on local host, I get FileNotFoundError: [Errno 2] No such file or directory:
I wasn’t able to deploy the app either, showing the same error back.
I checked many others’ deployed projects and find them writing the same relative path codes as I did (I was not able to run their py file on my Terminal either, same error)
Oh I just mean where did you install python/streamlit.
I usually use Conda and install my packages in a new environment to avoid issues with package clashes.
But if everything is just installed in your default Python environment then I doubt it’s a virtual environment issue.
You can change environments in VS code too:
But I don’t know anything about SSL. So good luck!
What do you mean by that? Your browser opens a URL like http://localhost:8502?
In response to what actions of yours exactly? What do you do to launch the app?
and just says FileNotFoundError: [Errno 2] No such file or directory:.
Who says that? The browser? The terminal?
Does the full error message not include a path? What is the traceback?
Now I get the error deploying the app, I did try link and unlink Github account on Streamlit, yet didn’t work.
Anything that I needed to do on Github’s side for account association?
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.