Summary
I’ve created a virtual environment with conda (mamba), pushed to Github, and attempted to deploy it to the Streamlit cloud. When rerunning the failing installer command on my local machine, the ultimate error is
Could not solve for environment specs
Encountered problems while solving:
- package pypy3.9-7.3.11-h527bfed_0 has constraint python 3.9.* *_73_pypy conflicting with python-3.9.16-h2782a2a_0_cpython
PyPy is constrained to python 3.9.*
and it seems to conflict with python 3.9.16
, which I don’t understand.
How can I investigate this more thoroughly, and what should I do next?
Streamlit Logs
[03:08:12] 🖥 Provisioning machine...
[03:07:28] 🚀 Starting up repository: 'actgrader-streamlit', branch: 'master', main module: 'main.py'
[03:07:28] 🐙 Cloning repository...
[03:07:29] 🐙 Cloning into '/app/actgrader-streamlit'...
[03:07:29] 🐙 Cloned repository!
[03:07:29] 🐙 Pulling code changes from Github...
[03:07:30] 📦 Processing dependencies...
Collecting package metadata (repodata.json): ...working... [2023-06-08 03:08:06.193364] bash: line 3: 16 Killed /home/appuser/.conda/bin/conda env update -n base --file environment.yml
[03:08:06] ❗️ installer returned a non-zero exit code
[03:08:06] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[03:08:13] 🎛 Preparing system...
[03:08:13] ⛓ Spinning up manager process...
[03:09:04] 🚀 Starting up repository: 'actgrader-streamlit', branch: 'master', main module: 'main.py'
[03:09:04] 🐙 Cloning repository...
[03:09:05] 🐙 Cloning into '/app/actgrader-streamlit'...
[03:09:05] 🐙 Cloned repository!
[03:09:05] 🐙 Pulling code changes from Github...
[03:09:06] 📦 Processing dependencies...
Collecting package metadata (repodata.json): ...working... [2023-06-08 03:09:36.654231] bash: line 3: 16 Killed /home/appuser/.conda/bin/conda env update -n base --file environment.yml
[03:09:37] ❗️ installer returned a non-zero exit code
[03:09:37] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[03:11:14] ❗️ Streamlit server consistently failed status checks
[03:11:14] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.
Result when recreating conda env update
$ conda env update -n base --file environment.yml
Could not solve for environment specs
Encountered problems while solving:
- package pypy3.9-7.3.11-h527bfed_0 has constraint python 3.9.* *_73_pypy conflicting with python-3.9.16-h2782a2a_0_cpython
Downgrading to python 3.9.12
leads to the same error:
Could not solve for environment specs
Encountered problems while solving:
- package pypy3.9-7.3.11-h527bfed_0 has constraint python 3.9.* *_73_pypy conflicting with python-3.9.12-h2660328_1_cpython
On my machine, the python environment is ags
, not base
:
$ conda env update -n ags --file environment.yml
All requested packages already installed
Requirements file: environment.yml
name: ags
channels:
- conda-forge
- defaults
dependencies:
- _libgcc_mutex=0.1=conda_forge
- _openmp_mutex=4.5=2_gnu
- alsa-lib=1.2.8=h166bdaf_0
- altair=5.0.1=pyhd8ed1ab_0
- aom=3.5.0=h27087fc_0
- asttokens=2.2.1=pyhd8ed1ab_0
- attr=2.5.1=h166bdaf_1
- attrs=23.1.0=pyh71513ae_1
- aws-c-auth=0.6.27=he072965_1
- aws-c-cal=0.5.26=hf677bf3_1
- aws-c-common=0.8.19=hd590300_0
- aws-c-compression=0.2.16=hbad4bc6_7
- aws-c-event-stream=0.2.20=hb4b372c_7
- aws-c-http=0.7.7=h2632f9a_4
- aws-c-io=0.13.21=h9fef7b8_5
- aws-c-mqtt=0.8.11=h2282364_1
- aws-c-s3=0.3.0=hcb5a9b2_2
- aws-c-sdkutils=0.1.9=hbad4bc6_2
- aws-checksums=0.1.14=hbad4bc6_7
- aws-crt-cpp=0.20.2=he0fdcb3_0
- aws-sdk-cpp=1.10.57=h059227d_13
- backcall=0.2.0=pyh9f0ad1d_0
- backports=1.0=pyhd8ed1ab_3
- backports.functools_lru_cache=1.6.4=pyhd8ed1ab_0
- blinker=1.6.2=pyhd8ed1ab_0
- brotli=1.0.9=h166bdaf_8
- brotli-bin=1.0.9=h166bdaf_8
- bzip2=1.0.8=h7f98852_4
- c-ares=1.19.1=hd590300_0
- ca-certificates=2023.5.7=hbcca054_0
- cachetools=5.3.0=pyhd8ed1ab_0
- cairo=1.16.0=hbbf8b49_1016
- certifi=2023.5.7=pyhd8ed1ab_0
- cffi=1.15.1=py39he91dace_3
- charset-normalizer=3.1.0=pyhd8ed1ab_0
- click=8.1.3=unix_pyhd8ed1ab_2
- comm=0.1.3=pyhd8ed1ab_0
- contourpy=1.0.7=py39h4b4f3f3_0
- cssselect2=0.2.1=pyh9f0ad1d_1
- cycler=0.11.0=pyhd8ed1ab_0
- dav1d=1.2.1=hd590300_0
- dbus=1.13.6=h5008d03_3
- debugpy=1.6.7=py39h227be39_0
- decorator=5.1.1=pyhd8ed1ab_0
- executing=1.2.0=pyhd8ed1ab_0
- expat=2.5.0=hcb278e6_1
- ffmpeg=5.1.2=gpl_hcbfe3e7_111
- font-ttf-dejavu-sans-mono=2.37=hab24e00_0
- font-ttf-inconsolata=3.000=h77eed37_0
- font-ttf-source-code-pro=2.038=h77eed37_0
- font-ttf-ubuntu=0.83=hab24e00_0
- fontconfig=2.14.2=h14ed4e7_0
- fonts-conda-ecosystem=1=0
- fonts-conda-forge=1=0
- fonttools=4.39.4=py39hd1e30aa_0
- freeglut=3.2.2=hac7e632_2
- freetype=2.12.1=hca18f0e_1
- fribidi=1.0.10=h36c2ea0_0
- gettext=0.21.1=h27087fc_0
- gflags=2.2.2=he1b5a44_1004
- gitdb=4.0.10=pyhd8ed1ab_0
- gitpython=3.1.31=pyhd8ed1ab_0
- glib=2.76.3=hfc55251_0
- glib-tools=2.76.3=hfc55251_0
- glog=0.6.0=h6f12383_0
- gmp=6.2.1=h58526e2_0
- gnutls=3.7.8=hf3e180e_0
- graphite2=1.3.13=h58526e2_1001
- gst-plugins-base=1.22.3=h938bd60_1
- gstreamer=1.22.3=h977cf35_1
- harfbuzz=7.3.0=hdb3a94d_0
- hdf5=1.14.0=nompi_hb72d44e_103
- html5lib=1.1=pyh9f0ad1d_0
- icu=72.1=hcb278e6_0
- idna=3.4=pyhd8ed1ab_0
- imageio=2.28.1=pyh24c5eb1_0
- importlib-metadata=6.6.0=pyha770c72_0
- importlib-resources=5.12.0=pyhd8ed1ab_0
- importlib_metadata=6.6.0=hd8ed1ab_0
- importlib_resources=5.12.0=pyhd8ed1ab_0
- imutils=0.5.4=py39hf3d152e_3
- ipykernel=6.23.1=pyh210e3f2_0
- ipython=8.14.0=pyh41d4057_0
- ipywidgets=8.0.6=pyhd8ed1ab_0
- jasper=4.0.0=h32699f2_1
- jedi=0.18.2=pyhd8ed1ab_0
- jinja2=3.1.2=pyhd8ed1ab_1
- joblib=1.2.0=pyhd8ed1ab_0
- jsonschema=4.17.3=pyhd8ed1ab_0
- jupyter_client=8.2.0=pyhd8ed1ab_0
- jupyter_core=5.3.0=py39hf3d152e_0
- jupyterlab_widgets=3.0.7=pyhd8ed1ab_1
- keyutils=1.6.1=h166bdaf_0
- kiwisolver=1.4.4=py39hf939315_1
- krb5=1.20.1=h81ceb04_0
- lame=3.100=h166bdaf_1003
- lcms2=2.15=haa2dc70_1
- ld_impl_linux-64=2.40=h41732ed_0
- lerc=4.0.0=h27087fc_0
- libabseil=20230125.2=cxx17_h59595ed_2
- libaec=1.0.6=hcb278e6_1
- libarrow=12.0.0=hed73b3e_6_cpu
- libass=0.17.1=hc9aadba_0
- libblas=3.9.0=17_linux64_openblas
- libbrotlicommon=1.0.9=h166bdaf_8
- libbrotlidec=1.0.9=h166bdaf_8
- libbrotlienc=1.0.9=h166bdaf_8
- libcap=2.67=he9d0100_0
- libcblas=3.9.0=17_linux64_openblas
- libclang=15.0.7=default_h7634d5b_2
- libclang13=15.0.7=default_h9986a30_2
- libcrc32c=1.1.2=h9c3ff4c_0
- libcups=2.3.3=h36d4200_3
- libcurl=8.1.2=h409715c_0
- libdeflate=1.18=h0b41bf4_0
- libdrm=2.4.114=h166bdaf_0
- libedit=3.1.20191231=he28a2e2_2
- libev=4.33=h516909a_1
- libevent=2.1.12=hf998b51_1
- libexpat=2.5.0=hcb278e6_1
- libffi=3.4.2=h7f98852_5
- libflac=1.4.2=h27087fc_0
- libgcc-ng=13.1.0=he5830b7_0
- libgcrypt=1.10.1=h166bdaf_0
- libgfortran-ng=13.1.0=h69a702a_0
- libgfortran5=13.1.0=h15d22d2_0
- libglib=2.76.3=hebfc3b9_0
- libglu=9.0.0=hac7e632_1002
- libgomp=13.1.0=he5830b7_0
- libgoogle-cloud=2.11.0=hac9eb74_1
- libgpg-error=1.46=h620e276_0
- libgrpc=1.54.2=hb20ce57_2
- libiconv=1.17=h166bdaf_0
- libidn2=2.3.4=h166bdaf_0
- libjpeg-turbo=2.1.5.1=h0b41bf4_0
- liblapack=3.9.0=17_linux64_openblas
- liblapacke=3.9.0=17_linux64_openblas
- libllvm15=15.0.7=h5cf9203_2
- libnghttp2=1.52.0=h61bc06f_0
- libnsl=2.0.0=h7f98852_0
- libnuma=2.0.16=h0b41bf4_1
- libogg=1.3.4=h7f98852_1
- libopenblas=0.3.23=pthreads_h80387f5_0
- libopencv=4.7.0=py39h0cf8573_4
- libopus=1.3.1=h7f98852_1
- libpciaccess=0.17=h166bdaf_0
- libpng=1.6.39=h753d276_0
- libpq=15.3=hbcd7760_1
- libprotobuf=3.21.12=h3eb15da_0
- libsndfile=1.2.0=hb75c966_0
- libsodium=1.0.18=h36c2ea0_1
- libsqlite=3.42.0=h2797004_0
- libssh2=1.11.0=h0841786_0
- libstdcxx-ng=13.1.0=hfd8a6a1_0
- libsystemd0=253=h8c4010b_1
- libtasn1=4.19.0=h166bdaf_0
- libthrift=0.18.1=h8fd135c_2
- libtiff=4.5.0=ha587672_6
- libunistring=0.9.10=h7f98852_0
- libutf8proc=2.8.0=h166bdaf_0
- libuuid=2.38.1=h0b41bf4_0
- libva=2.18.0=h0b41bf4_0
- libvorbis=1.3.7=h9c3ff4c_0
- libvpx=1.13.0=hcb278e6_0
- libwebp-base=1.3.0=h0b41bf4_0
- libxcb=1.15=h0b41bf4_0
- libxkbcommon=1.5.0=h5d7e998_3
- libxml2=2.11.4=h0d562d8_0
- libzlib=1.2.13=h166bdaf_4
- lz4-c=1.9.4=hcb278e6_0
- markdown-it-py=2.2.0=pyhd8ed1ab_0
- markupsafe=2.1.3=py39hd1e30aa_0
- matplotlib-base=3.7.1=py39he190548_0
- matplotlib-inline=0.1.6=pyhd8ed1ab_0
- mdurl=0.1.0=pyhd8ed1ab_0
- mpg123=1.31.3=hcb278e6_0
- munkres=1.1.4=pyh9f0ad1d_0
- mysql-common=8.0.32=hf1915f5_2
- mysql-libs=8.0.32=hca2cd23_2
- ncurses=6.4=hcb278e6_0
- nest-asyncio=1.5.6=pyhd8ed1ab_0
- nettle=3.8.1=hc379101_1
- nspr=4.35=h27087fc_0
- nss=3.89=he45b914_0
- numpy=1.24.3=py39h6183b62_0
- opencv=4.7.0=py39hf3d152e_4
- openh264=2.3.1=hcb278e6_2
- openjpeg=2.5.0=hfec8fc6_2
- openssl=3.1.1=hd590300_1
- orc=1.8.3=h2f23424_1
- p11-kit=0.24.1=hc5aa10d_0
- packaging=23.1=pyhd8ed1ab_0
- pandas=2.0.2=py39h40cae4c_0
- pango=1.50.14=heaa33ce_1
- parso=0.8.3=pyhd8ed1ab_0
- pcre2=10.40=hc3806b6_0
- pexpect=4.8.0=pyh1a96a4e_2
- pickleshare=0.7.5=py_1003
- pillow=9.5.0=py39haaeba84_1
- pip=23.1.2=pyhd8ed1ab_0
- pixman=0.40.0=h36c2ea0_0
- pkgutil-resolve-name=1.3.10=pyhd8ed1ab_0
- platformdirs=3.5.1=pyhd8ed1ab_0
- pooch=1.7.0=pyha770c72_3
- prompt-toolkit=3.0.38=pyha770c72_0
- prompt_toolkit=3.0.38=hd8ed1ab_0
- protobuf=4.21.12=py39h227be39_0
- psutil=5.9.5=py39h72bdee0_0
- pthread-stubs=0.4=h36c2ea0_1001
- ptyprocess=0.7.0=pyhd3deb0d_0
- pulseaudio-client=16.1=hb77b528_4
- pure_eval=0.2.2=pyhd8ed1ab_0
- py-opencv=4.7.0=py39h22c7aae_4
- pyarrow=12.0.0=py39he4327e9_6_cpu
- pycparser=2.21=pyhd8ed1ab_0
- pydeck=0.8.0=pyhd8ed1ab_0
- pydyf=0.6.0=pyhd8ed1ab_0
- pygments=2.15.1=pyhd8ed1ab_0
- pympler=1.0.1=pyhd8ed1ab_0
- pyparsing=3.0.9=pyhd8ed1ab_0
- pyphen=0.14.0=pyhd8ed1ab_0
- pyrsistent=0.19.3=py39h72bdee0_0
- pysocks=1.7.1=pyha2e5f31_6
- python=3.9.16=h2782a2a_0_cpython
- python-dateutil=2.8.2=pyhd8ed1ab_0
- python-tzdata=2023.3=pyhd8ed1ab_0
- python_abi=3.9=3_cp39
- pytz=2023.3=pyhd8ed1ab_0
- pytz-deprecation-shim=0.1.0.post0=py39hf3d152e_3
- pyyaml=6.0=py39hb9d737c_5
- pyzmq=25.1.0=py39hb257651_0
- qt-main=5.15.8=h01ceb2d_13
- rdma-core=28.9=h59595ed_1
- re2=2023.03.02=h8c504da_0
- readline=8.2=h8228510_1
- requests=2.31.0=pyhd8ed1ab_0
- rich=13.4.1=pyhd8ed1ab_0
- s2n=1.3.44=h06160fa_0
- scikit-learn=1.2.2=py39hc236052_2
- scipy=1.10.1=py39h6183b62_3
- setuptools=67.7.2=pyhd8ed1ab_0
- six=1.16.0=pyh6c4a22f_0
- smmap=3.0.5=pyh44b312d_0
- snappy=1.1.10=h9fff704_0
- stack_data=0.6.2=pyhd8ed1ab_0
- streamlit=1.23.1=pyhd8ed1ab_0
- svt-av1=1.4.1=hcb278e6_0
- tenacity=8.2.2=pyhd8ed1ab_0
- threadpoolctl=3.1.0=pyh8a188c0_0
- tinycss2=1.2.1=pyhd8ed1ab_0
- tk=8.6.12=h27826a3_0
- toml=0.10.2=pyhd8ed1ab_0
- toolz=0.12.0=pyhd8ed1ab_0
- tornado=6.3.2=py39hd1e30aa_0
- traitlets=5.9.0=pyhd8ed1ab_0
- typing-extensions=4.6.3=hd8ed1ab_0
- typing_extensions=4.6.3=pyha770c72_0
- tzdata=2023c=h71feb2d_0
- tzlocal=4.3=py39hf3d152e_0
- ucx=1.14.1=hf587318_2
- unicodedata2=15.0.0=py39hb9d737c_0
- urllib3=2.0.3=pyhd8ed1ab_0
- validators=0.20.0=pyhd8ed1ab_0
- watchdog=3.0.0=py39hf3d152e_0
- wcwidth=0.2.6=pyhd8ed1ab_0
- weasyprint=59.0=pyhd8ed1ab_0
- webencodings=0.5.1=py_1
- wheel=0.40.0=pyhd8ed1ab_0
- widgetsnbextension=4.0.7=pyhd8ed1ab_0
- x264=1!164.3095=h166bdaf_2
- x265=3.5=h924138e_3
- xcb-util=0.4.0=hd590300_1
- xcb-util-image=0.4.0=h8ee46fc_1
- xcb-util-keysyms=0.4.0=h8ee46fc_1
- xcb-util-renderutil=0.3.9=hd590300_1
- xcb-util-wm=0.4.1=h8ee46fc_1
- xkeyboard-config=2.38=h0b41bf4_0
- xorg-fixesproto=5.0=h7f98852_1002
- xorg-inputproto=2.3.2=h7f98852_1002
- xorg-kbproto=1.0.7=h7f98852_1002
- xorg-libice=1.1.1=hd590300_0
- xorg-libsm=1.2.4=h7391055_0
- xorg-libx11=1.8.5=h8ee46fc_0
- xorg-libxau=1.0.11=hd590300_0
- xorg-libxdmcp=1.1.3=h7f98852_0
- xorg-libxext=1.3.4=h0b41bf4_2
- xorg-libxfixes=5.0.3=h7f98852_1004
- xorg-libxi=1.7.10=h7f98852_0
- xorg-libxrender=0.9.10=h7f98852_1003
- xorg-renderproto=0.11.1=h7f98852_1002
- xorg-xextproto=7.3.0=h0b41bf4_1003
- xorg-xf86vidmodeproto=2.3.1=h7f98852_1002
- xorg-xproto=7.0.31=h7f98852_1007
- xz=5.2.6=h166bdaf_0
- yaml=0.2.5=h7f98852_2
- zeromq=4.3.4=h9c3ff4c_1
- zipp=3.15.0=pyhd8ed1ab_0
- zlib=1.2.13=h166bdaf_4
- zstd=1.5.2=h3eb15da_6
prefix: /home/rh/.local/share/mambaforge-pypy3/envs/ags
There are 300 packages, and nearly all of them are dependencies of Streamlit and OpenCV. I can’t remove any of them.
Debug info
- Streamlit version: 1.23.1
- Python version: 3.9.16
- Using Mamba 1.3.1, Conda 23.1.0
- OS version: Ubuntu 22.04 LTS
- Browser version: Chromium 113.0.5672.126
Link to Github Repo: GitHub - rghpkp/actgrader-streamlit
Link to Deployed App: https://rghpkp-actgrader-streamlit-main-i4c4hb.streamlit.app/