Installing any new packages in my conda environnement will downgrade streamlit to 0.9.0

Summary

Installing any new packages in my conda environnement will downgrade streamlit to 0.9.0

Steps to reproduce

I used to have Streamlit 0.19.0 when I encountered this issue and same kept happening after I updated to Streamlit 0.20.0

I installed streamlit 1.20.0 in hopes things are different but not really, there are bunch of packages I tried to install and itโ€™s always streamlit that needs to be downgraded to** 1.9.0** (same was going on with streamlit 1.19.0) as well as downgrading click from 8.1.3 to 8.0.4. These packages are :

  • geopandas
  • altair_viewer (to latest (0.4.0))
  • leafmap
  • mamba (to latest (1.3.1), now iโ€™m just stuck using mamba 1.2.0)
  • earthengine-api (any)
  • python 3.10.9

Current python 3.10.8 needs to update to 3.10.9 when trying to install new packages.

I also tried to install conda-tree to check dependencies and same thing happens, at this point anything i try to install will try to downgrade streamlit to 1.9.0.

Same used to happen when I first created a new conda environnement with streamlit = 1.16.0 and installed Google Earth Engine (earthengine-api) made it downgrade to streamlit = 1.9.0

Expected behavior:

Install new packages without downgrading Streamlit to 0.9.0.

Actual behavior:
Installing or updating any package tries to downgrade streamlit to 0.9.0 and click to

Debug info

  • Streamlit version: 1.20.0
  • Python version: 3.10.8
  • Using: Conda
  • OS version: Windows 10 (64bit)

Requirements file

Click to expand requirements.txt file
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: win-64
altair=4.2.2=pyhd8ed1ab_0
arrow-cpp=9.0.0=py310h8b1cf1d_2_cpu
asttokens=2.2.1=pyhd8ed1ab_0
attrs=22.2.0=pyh71513ae_0
aws-c-cal=0.5.11=he19cf47_0
aws-c-common=0.6.2=h8ffe710_0
aws-c-event-stream=0.2.7=h70e1b0c_13
aws-c-io=0.10.5=h2fe331c_0
aws-checksums=0.1.11=h1e232aa_7
aws-sdk-cpp=1.8.186=h93d3aa3_4
backcall=0.2.0=pyh9f0ad1d_0
backports=1.0=pyhd8ed1ab_3
backports.functools_lru_cache=1.6.4=pyhd8ed1ab_0
blinker=1.5=pyhd8ed1ab_0
branca=0.6.0=pyhd8ed1ab_0
brotlipy=0.7.0=py310h8d17308_1005
bzip2=1.0.8=h8ffe710_4
c-ares=1.18.1=h8ffe710_0
ca-certificates=2022.12.7=h5b45459_0
cachetools=5.3.0=pyhd8ed1ab_0
certifi=2022.12.7=pyhd8ed1ab_0
cffi=1.15.1=py310h628cb3f_3
charset-normalizer=2.1.1=pyhd8ed1ab_0
click=8.1.3=win_pyhd8ed1ab_2
colorama=0.4.6=pyhd8ed1ab_0
comm=0.1.2=pyhd8ed1ab_0
conda=22.11.1=py310h5588dad_1
conda-package-handling=2.0.2=pyh38be061_0
conda-package-streaming=0.7.0=pyhd8ed1ab_1
cryptography=39.0.0=py310h52f42fa_0
debugpy=1.6.6=py310h00ffb61_0
decorator=5.1.1=pyhd8ed1ab_0
entrypoints=0.4=pyhd8ed1ab_0
executing=1.2.0=pyhd8ed1ab_0
fmt=9.1.0=h181d51b_0
folium=0.14.0=pyhd8ed1ab_0
freetype=2.12.1=h546665d_1
gflags=2.2.2=ha925a31_1004
gitdb=4.0.10=pyhd8ed1ab_0
gitpython=3.1.31=pyhd8ed1ab_0
glog=0.6.0=h4797de2_0
grpc-cpp=1.46.4=hcb02dd0_7
idna=3.4=pyhd8ed1ab_0
importlib-metadata=6.0.0=pyha770c72_0
importlib_metadata=6.0.0=hd8ed1ab_0
importlib_resources=5.12.0=pyhd8ed1ab_0
intel-openmp=2023.0.0=h57928b3_25922
ipykernel=6.21.3=pyh025b116_0
ipython=8.11.0=pyh08f2357_0
ipywidgets=8.0.4=pyhd8ed1ab_0
jedi=0.18.2=pyhd8ed1ab_0
jinja2=3.1.2=pyhd8ed1ab_1
jsonschema=4.17.3=pyhd8ed1ab_0
jupyter_client=8.0.3=pyhd8ed1ab_0
jupyter_core=5.3.0=py310h5588dad_0
jupyterlab_widgets=3.0.5=pyhd8ed1ab_0
krb5=1.20.1=h6609f42_0
lcms2=2.15=h3e3b177_1
lerc=4.0.0=h63175ca_0
libabseil=20220623.0=cxx17_h1a56200_6
libarchive=3.6.2=h62576cb_0
libblas=3.9.0=16_win64_mkl
libbrotlicommon=1.0.9=hcfcfb64_8
libbrotlidec=1.0.9=hcfcfb64_8
libbrotlienc=1.0.9=hcfcfb64_8
libcblas=3.9.0=16_win64_mkl
libcrc32c=1.1.2=h0e60522_0
libcurl=7.88.1=h68f0423_0
libdeflate=1.17=hcfcfb64_0
libffi=3.4.2=h8ffe710_5
libgoogle-cloud=2.1.0=h1006c2c_1
libhwloc=2.9.0=h51c2c0f_0
libiconv=1.17=h8ffe710_0
libjpeg-turbo=2.1.5.1=hcfcfb64_0
liblapack=3.9.0=16_win64_mkl
libmamba=1.2.0=h37bf487_0
libmambapy=1.2.0=py310h954024b_0
libpng=1.6.39=h19919ed_0
libprotobuf=3.20.2=h12be248_0
libsodium=1.0.18=h8d14728_1
libsolv=0.7.23=h12be248_0
libsqlite=3.40.0=hcfcfb64_0
libssh2=1.10.0=h680486a_3
libthrift=0.16.0=h9f558f2_2
libtiff=4.5.0=hc3b8658_5
libutf8proc=2.8.0=h82a8f57_0
libwebp-base=1.3.0=hcfcfb64_0
libxcb=1.13=hcd874cb_1004
libxml2=2.10.3=hc3477c8_3
libzlib=1.2.13=hcfcfb64_4
lz4-c=1.9.4=hcfcfb64_0
lzo=2.10=he774522_1000
m2w64-gcc-libgfortran=5.3.0=6
m2w64-gcc-libs=5.3.0=7
m2w64-gcc-libs-core=5.3.0=7
m2w64-gmp=6.1.0=2
m2w64-libwinpthread-git=5.0.0.4634.697f757=2
mamba=1.2.0=py310h9376f3e_0
markdown-it-py=2.2.0=pyhd8ed1ab_0
markupsafe=2.1.2=py310h8d17308_0
matplotlib-inline=0.1.6=pyhd8ed1ab_0
mdurl=0.1.0=pyhd8ed1ab_0
menuinst=1.4.19=py310h5588dad_1
mkl=2022.1.0=h6a75c08_874
msys2-conda-epoch=20160418=1
nbformat=5.7.3=pyhd8ed1ab_0
nest-asyncio=1.5.6=pyhd8ed1ab_0
numpy=1.24.2=py310hd02465a_0
openjpeg=2.5.0=ha2aaf27_2
openssl=1.1.1t=hcfcfb64_0
packaging=23.0=pyhd8ed1ab_0
pandas=1.5.3=py310h1c4a608_0
parquet-cpp=1.5.1=2
parso=0.8.3=pyhd8ed1ab_0
pickleshare=0.7.5=py_1003
pillow=9.4.0=py310h3dcae36_2
pip=23.0.1=pyhd8ed1ab_0
pkgutil-resolve-name=1.3.10=pyhd8ed1ab_0
platformdirs=3.1.1=pyhd8ed1ab_0
pluggy=1.0.0=pyhd8ed1ab_5
prompt-toolkit=3.0.38=pyha770c72_0
prompt_toolkit=3.0.38=hd8ed1ab_0
protobuf=3.20.2=py310h5588dad_1
psutil=5.9.4=py310h8d17308_0
pthread-stubs=0.4=hcd874cb_1001
pthreads-win32=2.9.1=hfa6e2cd_3
pure_eval=0.2.2=pyhd8ed1ab_0
pyarrow=9.0.0=py310h0c37ab2_2_cpu
pybind11-abi=4=hd8ed1ab_3
pycosat=0.6.4=py310h8d17308_1
pycparser=2.21=pyhd8ed1ab_0
pydeck=0.8.0=pyhd8ed1ab_0
pygments=2.14.0=pyhd8ed1ab_0
pympler=1.0.1=pyhd8ed1ab_0
pyopenssl=23.0.0=pyhd8ed1ab_0
pyrsistent=0.19.3=py310h8d17308_0
pysocks=1.7.1=pyh0701188_6
python=3.10.8=h0269646_0_cpython
python-dateutil=2.8.2=pyhd8ed1ab_0
python-fastjsonschema=2.16.3=pyhd8ed1ab_0
python-tzdata=2022.7=pyhd8ed1ab_0
python_abi=3.10=3_cp310
pytz=2022.7.1=pyhd8ed1ab_0
pytz-deprecation-shim=0.1.0.post0=py310h5588dad_3
pywin32=304=py310h00ffb61_2
pyyaml=6.0=py310h8d17308_5
pyzmq=25.0.1=py310hcd737a0_0
re2=2022.06.01=h0e60522_1
reproc=14.2.4=hcfcfb64_0
reproc-cpp=14.2.4=h63175ca_0
requests=2.28.2=pyhd8ed1ab_0
rich=13.3.2=pyhd8ed1ab_0
ruamel.yaml=0.17.21=py310h8d17308_3
ruamel.yaml.clib=0.2.7=py310h8d17308_1
semver=2.13.0=pyh9f0ad1d_0
setuptools=67.6.0=pyhd8ed1ab_0
six=1.16.0=pyh6c4a22f_0
smmap=3.0.5=pyh44b312d_0
snappy=1.1.10=hfb803bf_0
stack_data=0.6.2=pyhd8ed1ab_0
streamlit=1.20.0=pyhd8ed1ab_0
tbb=2021.8.0=h91493d7_0
tk=8.6.12=h8ffe710_0
toml=0.10.2=pyhd8ed1ab_0
toolz=0.12.0=pyhd8ed1ab_0
tornado=6.2=py310h8d17308_1
tqdm=4.65.0=pyhd8ed1ab_1
traitlets=5.9.0=pyhd8ed1ab_0
typing_extensions=4.5.0=pyha770c72_0
tzdata=2022g=h191b570_0
tzlocal=4.2=py310h5588dad_2
ucrt=10.0.22621.0=h57928b3_0
urllib3=1.26.15=pyhd8ed1ab_0
validators=0.20.0=pyhd8ed1ab_0
vc=14.3=hb6edc58_10
vs2015_runtime=14.34.31931=h4c5c07a_10
watchdog=2.3.1=py310h5588dad_0
wcwidth=0.2.6=pyhd8ed1ab_0
wheel=0.40.0=pyhd8ed1ab_0
widgetsnbextension=4.0.5=pyhd8ed1ab_0
win_inet_pton=1.1.0=pyhd8ed1ab_6
xorg-libxau=1.0.9=hcd874cb_0
xorg-libxdmcp=1.1.3=hcd874cb_0
xz=5.2.6=h8d14728_0
yaml=0.2.5=h8ffe710_2
yaml-cpp=0.7.0=h63175ca_2
zeromq=4.3.4=h0e60522_1
zipp=3.15.0=pyhd8ed1ab_0
zlib=1.2.13=hcfcfb64_4
zstandard=0.19.0=py310h0009e47_1
zstd=1.5.2=h12be248_6

Additional info

The anaconda, conda and python are all clean and fresh installs, I redone the whole setup after cleaning the system. Previously to this, streamlit was already causing issues with its typeguarde error (openned an github issue, didnโ€™t do much) and donwgrading whenever earthengine-api is installed on same environnement and causing conflicts if updated after the downgrade.