Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Install issue]: installing chromadb 0.14.6 causes onnxruntime install error #1364

Closed
pchalasani opened this issue Nov 9, 2023 · 11 comments
Closed
Labels
installation trouble trouble building or installing chroma

Comments

@pchalasani
Copy link

What happened?

I'm using poetry to install chromadb as part of a pkg. I get this new error which didn't occur before.

Versions

Chroma 0.14.6, Python 3.11.5, MacOS 13.5.2

Relevant log output

• Installing onnxruntime (1.16.2): Failed

  RuntimeError

  Unable to find installation candidates for onnxruntime (1.16.2)

  at ~/.local/pipx/venvs/poetry/lib/python3.11/site-packages/poetry/installation/chooser.py:73 in choose_for
       69│
       70│             links.append(link)
       71│
       72│         if not links:
    →  73│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       74│
       75│         # Get the best link
       76│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       77│

Cannot install onnxruntime.
@pchalasani pchalasani added the installation trouble trouble building or installing chroma label Nov 9, 2023
@thilomichael
Copy link

I get the same error!

@pchalasani
Copy link
Author

I get the same error!

fixed by freezing onnxruntime to 1.16.1
(apparently 1.16.2 was released yesterday, so there probably wasn't a build for Apple Silicon M1)

@tazarov
Copy link
Contributor

tazarov commented Nov 9, 2023

@pchalasani, thanks for reporting this. Did you install onnxruntime manually, or do you have another dep that bumps it to >1.16.1? I just tried to install a fresh chromadb copy, and I noticed that 1.16.1 was installed, so I'm curious to understand how you ended up with 1.16.2.

@thilomichael
Copy link

thilomichael commented Nov 9, 2023

The pyproject.toml says >=1.14.1 and onnxruntime just released a new version 1.16.2.

@tazarov
Copy link
Contributor

tazarov commented Nov 9, 2023

@thilomichael, looking at the release in GH, it seems they have the packages but perhaps their release process failed to upload to pypi.

@thilomichael
Copy link

Thanks for tracking that down. It seems like there is an issue with their process. There is already in issue in their repository: microsoft/onnxruntime#18378
So waiting will probably resolve this issue (that are the best kind of issues ;) )

Until then freezing onnxruntime to 1.16.1 does the trick!

@pchalasani
Copy link
Author

@pchalasani, thanks for reporting this. Did you install onnxruntime manually, or do you have another dep that bumps it to >1.16.1? I just tried to install a fresh chromadb copy, and I noticed that 1.16.1 was installed, so I'm curious to understand how you ended up with 1.16.2.

I think it got bumped to 1.16.2 when I did a fresh install of my project poetry install or poetry update (I don’t recall).

@tazarov
Copy link
Contributor

tazarov commented Nov 9, 2023

We'll do a minor fix to pin the version until they resolve this issue. @pchalasani, thanks for finding it out.

@tazarov
Copy link
Contributor

tazarov commented Nov 9, 2023

somebody already reported this - microsoft/onnxruntime#18378

@snnn
Copy link

snnn commented Nov 10, 2023

The onnxruntime issue is resolved now.

@HammadB
Copy link
Collaborator

HammadB commented Nov 10, 2023

Thanks @snnn for the speedy fix. I'll close this out.

@HammadB HammadB closed this as completed Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation trouble trouble building or installing chroma
Projects
None yet
Development

No branches or pull requests

5 participants