Deployed with a requirements.txt but get an error message on urllib3 which is incompatible
snowflake-connector-python 3.0.4 requires urllib3<1.27,>=1.21.1, but you have urllib3 2.0.4 which is incompatible. As we can see - I am specifying urlllib3==1.21.1 in the requirements.txt - it seems like the environment is loading 2.04 before the requirements.txt - how to fix?
ERROR: Cannot install urllib3==1.26.0 and urllib3==1.26.16 because these package versions have conflicting dependencies.
(In a previous commit to GH I had specified 1.26.16)
Looks like server-side caching
No, you are actually specifying conflicting requirements. The included requirements file requirements_38.reqs already asks for urllib3==1.26.16 , you don’t need to ask for it again.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
snowflake-connector-python 3.0.4 requires urllib3<1.27,>=1.21.1, but you have urllib3 2.0.4 which is incompatible.
I have python code that works in streamlit properly It reads from a snowflake table into a dataframe exposes sliders and draws a graph
I copied the file, git committed, pushed and deployed to streatmlit
the same exact python script returns an error ```
snowflake-connector-python 3.0.4 requires urllib3<1.27,>=1.21.1, but you have urllib3 2.0.4 which is incompatible.
This works
https://baseball-metrics-graph.streamlit.app/
Same script does not work
https://baseball-metrics-t2.streamlit.app/
This is what seems to be happening in streamlit cloud:
The packages in requirements.txt are installed, including urllib3==1.26.16.
Since streamlit is still missing, it is installed along with its dependencies, without paying any consideration to already installed packages. So the latest urllib3 compatible with streamlit (urllib3==2.0.4) is installed
I was able to fix it by adding streamlit==1.25.0 to requirements.txt.
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.