Error Information: python-package-version-not-available
Description of issue - I tried to deploy a R Shiny App built by someone else from a project environment but failed to deploy the App in RStudio Connect with the following error message: Application deployment failed with error: An error occurred while building your content. (Error code: python-package-version-not-available).
Steps taken so far - I tried to comment off packages that might trigger python environment; I also tried to install python of different versions. However, none of these work.
System Information:
- RStudio Edition: Server
- RStudio Version: 2023.03.0+386.pro1 Workbench (Cherry Blossom) for CentOS 7
- OS Version: 13.4.1 (22F82)
- R Version: 4.0.3
Also:
- RStudio diagnostics report:
- Your
sessionInfo()
: - RStudio crash report:
- RStudio application log files:
[Connect] Bundle requested Python version 3.7.16; using /opt/python/3.7.10/bin/python3.7 which has version 3.7.10
[Connect] 2023/07/13 18:21:51.262473149 [rsc-session] Content GUID: 1b9a1e3d-1773-41eb-b1f7-ce00f14e764c
[Connect] 2023/07/13 18:21:51.262499576 [rsc-session] Content ID: 778
[Connect] 2023/07/13 18:21:51.262504990 [rsc-session] Bundle ID: 7221
[Connect] 2023/07/13 18:21:51.268447828 arguments: /opt/python/3.7.10/bin/python3.7 /opt/rstudio-connect/python/build_environment.py
[Connect] 2023/07/13 18:21:51.268463151
[Connect] 2023/07/13 18:21:51.437209546 Running on host: ip-10-176-13-203.us-west-2.compute.internal
[Connect] 2023/07/13 18:21:51.441141760 Linux distribution: Amazon Linux release 2 (Karoo)
[Connect] 2023/07/13 18:21:51.443628565 Running as user: uid=995(rstudio-connect) gid=993(rstudio-connect) groups=993(rstudio-connect)
[Connect] 2023/07/13 18:21:51.443639233 Connect version: 2023.05.0
[Connect] 2023/07/13 18:21:51.443665961 LANG: en_US.UTF-8
[Connect] 2023/07/13 18:21:51.443675497 Working directory: /opt/rstudio-connect/mnt/app
[Connect] 2023/07/13 18:21:51.443713172 Building environment using Python 3.7.10 | packaged by conda-forge | (default, Feb 19 2021, 16:07:37) [GCC 9.3.0] at /opt/python/3.7.10/bin/python3.7
[Connect] 2023/07/13 18:21:51.470944127 Skipped packages: setuptools==49.1.3
[Connect] 2023/07/13 18:21:51.470955948 Creating environment: 5wqP-sr_gkt-Erx02XZXqg
[Connect] 2023/07/13 18:22:13.721233264 Collecting pip
[Connect] 2023/07/13 18:22:13.772959935 Downloading pip-23.1.2-py3-none-any.whl (2.1 MB)
[Connect] 2023/07/13 18:22:14.875653442 Collecting setuptools
[Connect] 2023/07/13 18:22:14.886780344 Downloading setuptools-68.0.0-py3-none-any.whl (804 kB)
[Connect] 2023/07/13 18:22:15.118610075 Collecting wheel
[Connect] 2023/07/13 18:22:15.129096266 Downloading wheel-0.40.0-py3-none-any.whl (64 kB)
[Connect] 2023/07/13 18:22:15.908376420 ERROR: tensorflow 2.5.0 has requirement h5py~=3.1.0, but you'll have h5py 3.2.1 which is incompatible.
[Connect] 2023/07/13 18:22:15.908415662 ERROR: tensorflow 2.5.0 has requirement numpy~=1.19.2, but you'll have numpy 1.20.3 which is incompatible.
[Connect] 2023/07/13 18:22:15.908470794 ERROR: tensorflow 2.5.0 has requirement typing-extensions~=3.7.4, but you'll have typing-extensions 3.10.0.0 which is incompatible.
[Connect] 2023/07/13 18:22:15.908579374 Installing collected packages: pip, setuptools, wheel
[Connect] 2023/07/13 18:22:15.908651324 Attempting uninstall: pip
[Connect] 2023/07/13 18:22:15.909070108 Found existing installation: pip 20.1.1
[Connect] 2023/07/13 18:22:17.000344101 Uninstalling pip-20.1.1:
[Connect] 2023/07/13 18:22:17.173238466 Successfully uninstalled pip-20.1.1
[Connect] 2023/07/13 18:22:40.835050892 Attempting uninstall: setuptools
[Connect] 2023/07/13 18:22:40.835557581 Found existing installation: setuptools 47.1.0
[Connect] 2023/07/13 18:22:41.183514654 Uninstalling setuptools-47.1.0:
[Connect] 2023/07/13 18:22:41.564951067 Successfully uninstalled setuptools-47.1.0
[Connect] 2023/07/13 18:22:51.551486042 Attempting uninstall: wheel
[Connect] 2023/07/13 18:22:51.552047750 Found existing installation: wheel 0.36.2
[Connect] 2023/07/13 18:22:51.554170861 Not uninstalling wheel at /opt/python/3.7.10/lib/python3.7/site-packages, outside environment /opt/rstudio-connect/mnt/app/python/env
[Connect] 2023/07/13 18:22:51.554224533 Can't uninstall 'wheel'. No files were found to uninstall.
[Connect] 2023/07/13 18:22:52.793811889 Successfully installed pip-23.1.2 setuptools-68.0.0 wheel-0.40.0
[Connect] 2023/07/13 18:22:55.218058047 ERROR: Could not find a version that satisfies the requirement aws-cfn-bootstrap==2.0 (from versions: 1.4.post31)
[Connect] 2023/07/13 18:22:55.218395006 ERROR: No matching distribution found for aws-cfn-bootstrap==2.0
[Connect] 2023/07/13 18:22:55.218058047 ERROR: Could not find a version that satisfies the requirement aws-cfn-bootstrap==2.0 (from versions: 1.4.post31)
[Connect] 2023/07/13 18:22:55.218395006 ERROR: No matching distribution found for aws-cfn-bootstrap==2.0
[Connect] 2023/07/13 18:23:01.107483790 pip install failed with exit code 1
[Connect] An error occurred while building your content.
[Connect] This link offers advice for this kind of error:
[Connect] Posit Connect Documentation - Troubleshooting
[Connect] Build error: An error occurred while building your content. (Error code: python-package-version-not-available)
Application deployment failed with error: An error occurred while building your content. (Error code: python-package-version-not-available)