Skip to content

[DO NOT MERGE] Copy of #2736 - #2770

Draft
Xiaoyu Z (xiaoyu-work) wants to merge 3 commits into
mainfrom
friendly-missing-onnxruntime-error
Draft

Xiaoyu Z (xiaoyu-work) wants to merge 3 commits into
mainfrom
friendly-missing-onnxruntime-error

Conversation

@xiaoyu-work

Copy link
Copy Markdown
Member

Describe your changes

Independent copy of #2736: Raise an actionable error when onnxruntime is not installed.

Copies Iyanuoluwa007/Olive:friendly-missing-onnxruntime-error to the same branch name in microsoft/Olive, preserving the original commits. The original PR remains unchanged.

Validation: the copied branch head matches the source PR head. Tests and lintrunner -a were not run for this copy-only operation; the existing code has not been revalidated.

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

Source PR: #2736.

Running a workflow after installing only the base olive-ai package failed
with a bare "ModuleNotFoundError: No module named 'onnxruntime'" from
get_ort_available_providers. Explain that an ONNX Runtime package is needed
and which olive-ai extra installs it.

Fixes #2284
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants