Skip to content

onnxruntime dll import error #1266

Closed

Description

Attempting to run convert on Windows 11, I see:

DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.

It looks like markitdown is not the only package experiencing this issue:
spinalcordtoolbox/spinalcordtoolbox#4905 (comment)

I think the onnxruntime version might need to be pinned until this is fixed upstream.
(onnxruntime is a dependency of magika)

Activity

  1. cephyn commented on May 25, 2025

    @cephyn

    Yup seeing this too!

  2. joshuacwnewton commented on May 27, 2025

    @joshuacwnewton

    Hi there! I see you've tagged our spinalcordtoolbox issue. Just to give some additional context, I had also reported this upstream here:

    It seems to do with the version of MSVC Runtime that is installed. Try updating.

  3. afourney commented on May 28, 2025

    @afourney
    Member

    Thanks for the report. Let me see what I can pin to address this incompatibility.

    Tomasz Kalinowski (@t-kalinowski) Kevin (@cephyn) Joshua Newton (@joshuacwnewton) I am not in a position to easily reproduce this error. If you can kindly suggest what version I should pin, or submit a PR modifying the pyproject.toml, I will happily address this ASAP.

  4. t-kalinowski commented on May 28, 2025

    @t-kalinowski
    ContributorAuthor
  5. afourney commented on May 28, 2025

    @afourney
    Member

    If it's not too much trouble, I'd love a PR can credit you. Otherwise, I'm happy to take this on later today.

    If it's impacting Magika, we should perhaps let them know too.

  6. added a commit that references this issue on May 28, 2025
    fe8db2d
  7. added a commit that references this issue on May 28, 2025
    62b7228
  8. added a commit that references this issue on Oct 16, 2025
    17fb1c6
  9. added a commit that references this issue on Jun 15, 2026
    6b85c32
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions