Skip to content

Dependency conflicts for onnxruntime #273

@z-a-f

Description

@z-a-f

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:

  1. aisuite specifies minimum python version as 3.10
  2. dev dependency chromadb depends on onnxruntime
  3. chromadb only specifies the minimum version for onnxruntime.
  4. Lock is resolved to onnxruntime==1.24.2 (latest)
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions