Hello community,
I’m a newbie to streamlit, so please be patient with me…
I’ve build a streamlit app that works fine on my machine, however if I try to deploy it, I get the error mentioned in the title. I’m working with conda environments, what should be fine as far as I can see from the documentation. It seems to be no problem to import streamlit, pandas and numpy, however matplotlib.pyplot gives an error. So far I’ve
updated my environment and got rid of unnecessary dependencies,
deleted the app and created a new one
but the error still occurs. Do I have to rename the yml-file? Am I forced to switch to pip as a dependency manager? Or am I missing something completely different?
Any help and assistance is highly appreciated!
Cheers, Solarschmied
In the meantime I added a requirements.txt (If I understand the documentation correctly, this will be preferred before yml-files) and deleted the pinned python version (since this gave me a new error)
Now I’m waiting for almost have an hour, being told that my app is in the oven. Does this imply there are new errors to be expected?
Thankyou so much!
updating requirements.txt again, waiting for about an hour and then rebooting the app did it.
Just for my understanding, did not-adding “Pillow” cause the problem or is it in general a bad idea to lock versions if you want to deploy an app to the streamlit cloud?
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.