Skip to content

onnxruntime 1.24 has implicit ml_dtypes dependency #27257

Description

Describe the issue

#25678 introduced a dependency on ml_dtypes, but this dependency is not specified in requirements.txt, and as a result is not present when onnx earlier than 1.19 is installed.

To reproduce

$ python3 -m pip install onnx==1.18 onnxruntime
...
$ python3 -c "import onnxruntime.quantization"
...
ModuleNotFoundError: No module named 'ml_dtypes'

Urgency

No response

Platform

Linux

OS Version

Ubuntu 24.04

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.24.1

ONNX Runtime API

Python

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions