<#2003 pex unable to package boto3> New issue crea...
# github-notifications
q
#2003 pex unable to package boto3 New issue created by shalabhc This is likely dependent on the current state of pypi.org, so I will try to add as much detail here as possible. Main issue, building a pex with just boto3 fails:
Copy code
% pex boto3 -o boto3.pex
pid 70783 -> /Users/shalabh/.pex/venvs/f9eeba28ad6b752589df5e468b44c9d93de74d95/3c4eeb51934b44f89fd9efa710d22352b6c1aa8e/bin/python -sE /Users/shalabh/.pex/venvs/f9eeba28ad6b752589df5e468b44c9d93de74d95/3c4eeb51934b44f89fd9efa710d22352b6c1aa8e/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --use-deprecated legacy-resolver --isolated -q --cache-dir /Users/shalabh/.pex/pip_cache download --dest /Users/shalabh/.pex/downloads/resolver_download.yra7k537/Users.shalabh..pyenv.versions.3.8.13.bin.python3.8 boto3 --index-url <https://pypi.org/simple> --retries 5 --timeout 15 exited with 1 and STDERR:
ERROR: Could not find a version that satisfies the requirement botocore<1.30.0,>=1.29.21 (from boto3) (from versions: 0.4.1, 0.4.2, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.9.0, 0.9.1, 0.9.2, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.15.0, 0.15.1, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.20.0, 0.21.0, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.0, 0.29.0, 0.30.0, 0.31.0, 0.32.0, 0.33.0, 0.34.0, 0.35.0, 0.36.0, 0.37.0, 0.38.0, 0.39.0, 0.40.0, 0.41.0, 0.42.0, 0.43.0, 0.44.0, 0.45.0, 0.46.0, 0.47.0, 0.48.0, 0.49.0, 0.50.0, 0.51.0, 0.52.0, 0.53.0, 0.54.0, 0.55.0, 0.56.0, 0.57.0, 0.58.0, 0.59.0, 0.60.0, 0.61.0, 0.62.0, 0.63.0, 0.64.0, 0.65.0, 0.66.0, 0.67.0, 0.68.0, 0.69.0, 0.70.0, 0.71.0, 0.72.0, 0.73.0, 0.74.0, 0.75.0, 0.76.0, 0.77.0, 0.78.0, 0.79.0,

--- deleted ---
36, 1.24.37, 1.24.38, 1.24.39, 1.24.40, 1.24.41, 1.24.42, 1.24.43, 1.24.44, 1.24.45, 1.24.46, 1.25.0, 1.25.1, 1.25.2, 1.25.3, 1.25.4, 1.25.5, 1.25.6, 1.25.7, 1.25.8, 1.25.9, 1.25.10, 1.25.11, 1.25.12, 1.25.13, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 1.26.5, 1.26.6, 1.26.7, 1.26.8, 1.26.9, 1.26.10, 1.27.0, 1.27.1, 1.27.2, 1.27.3, 1.27.4, 1.27.5, 1.27.6, 1.27.7, 1.27.8, 1.27.9, 1.27.10, 1.27.11, 1.27.12, 1.27.13, 1.27.14, 1.27.15, 1.27.16, 1.27.17, 1.27.18, 1.27.19, 1.27.20, 1.27.21, 1.27.22, 1.27.23, 1.27.24, 1.27.25, 1.27.26, 1.27.27, 1.27.28, 1.27.29, 1.27.30, 1.27.31, 1.27.32, 1.27.33, 1.27.34, 1.27.35, 1.27.36, 1.27.37, 1.27.38, 1.27.39, 1.27.40, 1.27.41, 1.27.42, 1.27.43, 1.27.44, 1.27.45, 1.27.46, 1.27.47, 1.27.48, 1.27.49, 1.27.50, 1.27.51, 1.27.52, 1.27.53, 1.27.54, 1.27.55, 1.27.56, 1.27.57, 1.27.58, 1.27.59, 1.27.60, 1.27.61, 1.27.62, 1.27.63, 1.27.64, 1.27.65, 1.27.66, 1.27.67, 1.27.68, 1.27.69, 1.27.70, 1.27.71, 1.27.72, 1.27.73, 1.27.74, 1.27.75, 1.27.76, 1.27.77, 1.27.78, 1.27.79, 1.27.80, 1.27.81, 1.27.82, 1.27.83, 1.27.84, 1.27.85, 1.27.86, 1.27.87, 1.27.88, 1.27.89, 1.27.90, 1.27.91, 1.27.92, 1.27.93, 1.27.94, 1.27.95, 1.27.96, 1.28.0, 1.28.1, 1.28.2, 1.28.3, 1.28.4, 1.28.5, 1.29.0, 1.29.1, 1.29.2, 1.29.3, 1.29.4, 1.29.5, 1.29.6, 1.29.7, 1.29.8, 1.29.9, 1.29.10, 1.29.11, 1.29.12, 1.29.13, 1.29.14, 1.29.15, 1.29.16, 1.29.17, 1.29.18, 1.29.19, 1.29.20)
ERROR: No matching distribution found for botocore<1.30.0,>=1.29.21 (from boto3)
The underlying issue seems to be that
boto3
version 1.29.21 is available in http://pypi.org/simple/boto3, but
botocore
version 1.29.21 is not in http://pypi.org/simple/botocore at this time. Note that boto3's setup.py pins botocore to 1.29.21.
pip
does not have this issue, but it automatically falls back to the previous version
Copy code
pip install boto3
Collecting boto3
  Downloading boto3-1.26.21-py3-none-any.whl (132 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.6/132.6 KB 345.4 kB/s eta 0:00:00
  Downloading boto3-1.26.20-py3-none-any.whl (132 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.6/132.6 KB 99.2 kB/s eta 0:00:00
Collecting botocore<1.30.0,>=1.29.20
  Downloading botocore-1.29.20-py3-none-any.whl (10.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.2/10.2 MB 158.7 kB/s eta 0:00:00
Collecting s3transfer<0.7.0,>=0.6.0
  Using cached s3transfer-0.6.0-py3-none-any.whl (79 kB)
Collecting jmespath<2.0.0,>=0.7.1
  Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting python-dateutil<3.0.0,>=2.1
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting urllib3<1.27,>=1.25.4
  Using cached urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
Collecting six>=1.5
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: urllib3, six, jmespath, python-dateutil, botocore, s3transfer, boto3
Successfully installed boto3-1.26.20 botocore-1.29.20 jmespath-1.0.1 python-dateutil-2.8.2 s3transfer-0.6.0 six-1.16.0 urllib3-1.26.13
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the '/Users/shalabh/src/issues/quickstart-pex-snowflake/shalabh-test-snowflake-quickstart-fix/new/bin/python -m pip install --upgrade pip' command.
(new) ~
pantsbuild/pex
u