I’m really new to the coding world so sorry in advance if I say anything inconsistent.
I’ve been using streamlit with python and works just fine. Recently I tried to host the web app with heroku but it always give me this error when pushing it to the web:
ERROR: streamlit 0.56.0 has requirement python-dateutil<=2.8.0, but you’ll have python-dateutil 2.8.1 which is incompatible.
I’ve trayed to unistall python-dateutil 2.8.1 or /and all python-dateutil and install then python-dateutil 2.8.0 but didn’t work (keep me saying I have python-dateutil 2.8.1)
Is there any solution? I 've readed this error was solved
May I ask you how your requirements.txt file is structured ? If I recall correctly Heroku is going to install all packages you specified in this file (see this link), so you may be able to force the install of the correct python-dateutil by adding python-dateutil==2.8.0 in the file.
Personnally I’m a fan of using pip-tools to pin dependency versions, so you can put all the packages you need in a requirements.in like
streamlit
<other packages>
...
and run pip-compile requirements.in to generate a requirements.txt with all the packages and versions compiled, ready to push to heroku, that way you don’t have to break your head on looking for who installs the wrong version.
This way will tell you which package tries to install python-dateutil 2.8.1 in conflict with Streamlit 0.56’s python-dateutil, should pip-compile return an error.
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.