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.