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

ONNX compatibility problems #111

Open
mheinzinger opened this issue Oct 8, 2024 · 4 comments
Open

ONNX compatibility problems #111

mheinzinger opened this issue Oct 8, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@mheinzinger
Copy link
Collaborator

Hi :)
I am struggling to install bio_trainer from scratch; I proceed as described in the docs here https://github.com/sacdallago/biotrainer?tab=readme-ov-file#installation:
All the packages appear to be installed correctly, except for onnxruntime; there I get the following error:

  • Installing onnxruntime (1.19.2): Failed

RuntimeError

Unable to find installation candidates for onnxruntime (1.19.2)

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

Cannot install onnxruntime.

@SebieF
Copy link
Collaborator

SebieF commented Oct 9, 2024

Hi and thanks for asking :) Which operating system do you use (looks like some Linux system)?

Other than that, please try the following:

  • Is it possible to install onnxruntime via pip? pip install onnxruntime==1.19.2
  • Use the develop branch and see if the problem persists there (new version release is coming up soon anyway)

@SebieF SebieF added the bug Something isn't working label Oct 14, 2024
@mheinzinger
Copy link
Collaborator Author

I am on Amazon Linux release 2 (Karoo) - (using SageMaker).
The python version I am using is 3.10.12.
I had also already tried installing onnxruntime via pip as you stated above but there I am running into the same issue:
pip install onnxruntime==1.19.2 ERROR: Could not find a version that satisfies the requirement onnxruntime==1.19.2 (from versions: 1.12.0, 1.12.1, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3) ERROR: No matching distribution found for onnxruntime==1.19.2
Installing from develop branch also lead to the same error

@SebieF
Copy link
Collaborator

SebieF commented Oct 21, 2024

Please try again with the main branch, because the latest version release should use onnxruntime==1.19.0.
See the latest commit to the dependencies: 8e5dd65#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R55

@SebieF SebieF changed the title Installation problem ONNX compatibility problems Nov 1, 2024
@SebieF
Copy link
Collaborator

SebieF commented Nov 1, 2024

The problem is not fixed yet on all machines, please also refer to this issue if you are experiencing problems (especially with Windows) currently: onnx/onnx#6267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants