keripy
keripy copied to clipboard
pip install fails on python 3.12.3 (ubuntu 24.04)
Version
main
Environment
Ubuntu 24.04 WSL 2, Python 3.12.3
Expected behavior
pip install -r requirements.txt should install without errors
Actual behavior
pip install -r requirements.txt fails with
INFO: pip is looking at multiple versions of keri to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 0.6.15 Requires-Python >=3.13.1; 0.6.17 Requires-Python >=3.13.1; 0.6.18 Requires-Python >=3.12.6; 0.7.0 Requires-Python >=3.13.1; 0.7.1 Requires-Python >=3.13.1; 0.7.2 Requires-Python >=3.13.1; 0.7.3 Requires-Python >=3.13.1; 0.7.4 Requires-Python >=3.13.1; 0.7.5 Requires-Python >=3.13.2; 0.7.6 Requires-Python >=3.13.2; 0.7.7 Requires-Python >=3.13.2; 0.7.8 Requires-Python >=3.13.2; 0.7.9 Requires-Python >=3.13.2
ERROR: Could not find a version that satisfies the requirement hio>=0.6.18 (from keri) (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.5, 0.0.6, 0.0.8, 0.0.9, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.9, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.5.6, 0.5.7, 0.5.8, 0.5.9, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.8, 0.6.9, 0.6.10, 0.6.11, 0.6.12, 0.6.13, 0.6.14)
ERROR: No matching distribution found for hio>=0.6.18
Steps to reproduce
#!/bin/bash
tmpdir=$(mktemp -d)
git clone [email protected]:WebOfTrust/keripy.git "$tmpdir"
cd "$tmpdir"
python3.12 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
From call:
Python 3.12.3 is too old for hio 0.6.18 https://pypi.org/project/hio/0.6.18/
Solution could be to bump python version. setup.py should be bumped in keripy to make it clear which version is supported.
Note that python 3.12.3 is the default python 3 version for ubuntu 24.04, and deadsnakes does not provide an update for python3.12 in their repository, so bumping to >3.12.3 might cause inconvenience for ubuntu users. They should be able to install 3.13 relatively easy though.