I am early on in my Streamlit journey trying to get to grips with it all and make beautiful apps.
Conscious that this is a regularly submitted issue/discussion, and I hope I haven’t overlooked something glaring. I know that there was a global issue with apps deploying but it seems that was resolved.
I have two apps, and while my first one is deploying fine, my latest (an experiment in using pydeck_chart) is just not loading and stuck in the oven as it were.
I can’t see any error code to indicate what I might have missed, and given that my first app is running I suspect the error lies on my side. Any assistance will be massively appreciated.
Your requirements.txt file is crammed with unnecessary packages. This is bad practice and can lead to installation issues with Streamlit Cloud, because the file was probably generated with pip freeze on your local machine and contains all pip packages you ever installed in this environment. Cleanup your requirements.txt file and try again.
Thank you for the quick response, you’re right it was done using pip freeze. I did this after having loads of trouble setting up requirements via conda.
Just one question, you say clean up - have you any advice on identifying which packages are redundant etc? Any articles would be welcome, am just very new to deploying via Github.
Thank you so much, you were completely correct, it’s working now :))). I really spent a lot of time trying to understand the requirements file, getting wrapped up in a knot with what pip and conda were giving me. I was led to believe there were further dependencies outside of what I was calling, given that I am operating in a windows environment and Streamlit renders in Linux?
One last question (I hope you don’t mind), I became aware that multiple requirements.txt files in one repo is not good practice - would the best practice be to simply set up a new repo for each app?
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.