If you try to install everything, you will get an issue with the onnxruntime version being incompatible.
To reproduce, try it on python 3.10:
poetry use 3.10
poetry shell
poetry lock --regenerate --no-cache
poetry install --all-extras --with dev --with test
Dependency trace:
aisuite specifies minimum python version as 3.10
- dev dependency
chromadb depends on onnxruntime
chromadb only specifies the minimum version for onnxruntime.
- Lock is resolved to
onnxruntime==1.24.2 (latest)
- Latest version of
onnxruntime doesn't install on python 3.10, which violates step 1 above
$ poetry show --tree --why onnxruntime
chromadb 0.5.23 Chroma.
└── onnxruntime >=1.14.1
├── flatbuffers *
├── numpy >=1.21.6
├── packaging *
├── protobuf *
└── sympy *
└── mpmath >=1.1.0,<1.4
Fix options
Option A (Transitional)
Explicitly pin onnxruntime to avoid poetry dependency resolution.
Option B (ideal)
Combine option A with pinning ALL packages to specific versions.
If you try to install everything, you will get an issue with the
onnxruntimeversion being incompatible.To reproduce, try it on python 3.10:
Dependency trace:
aisuitespecifies minimum python version as 3.10chromadbdepends ononnxruntimechromadbonly specifies the minimum version foronnxruntime.onnxruntime==1.24.2(latest)onnxruntimedoesn't install on python 3.10, which violates step 1 aboveFix options
Option A (Transitional)
Explicitly pin
onnxruntimeto avoid poetry dependency resolution.Option B (ideal)
Combine option A with pinning ALL packages to specific versions.