My app was running fine until recently and now gives error as I required to change some dependency versions. The app will work fine if I can install numpy version 1.20. I use requirements.txt and have numpy==1.20.0 line. When deploying the app, it first downloads the correct version, but then uninstalls it and downloads the latest version (1.24.3).
Thank you for sharing your question with the community!
Your post is missing a code snippet and a link to your app’s GitHub repo. Please check out our guidelines on how to post an effective question here and update your post to help the community answer your question.
I have a minimal working example in this repo. The app is here. Although my requirements asks for numpy version less than 1.22, the app shows that the imported numpy version is 1.24.3.
I’ve seen a couple other users with this issue for pandas. It seems to resolve if you allow Community Cloud to use the latest version of Streamlit, but otherwise it’s a bug…
I pinged the Community Cloud team to make sure the bug report is on their radar.
Thank you, @mathcatsand, for your response and solution. I would like to add an additional tip for those seeking a solution: make sure to include “streamlit” as the first line in your requirements file. I am not sure if order of packages in requirements.txt is important but in my specific case, having “streamlit” listed later in the file did not yield the desired outcome.
Thanks for pinging the Community Cloud team. I did my best to flush out all the steps of what was going wrong. Hopefully it will help in identifying the solution quickly
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.