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: https://github.com/spinalcordtoolbox/spinalcordtoolbox/issues/4905#issuecomment-2902130299 I think the onnxruntime version might need to be pinned until this is fixed upstream. (onnxruntime is a dependency of [magika](https://google.github.io/magika/))
Activity
cephyn commentedon May 25, 2025
Yup seeing this too!
joshuacwnewton commentedon May 27, 2025
Hi there! I see you've tagged our
spinalcordtoolboxissue. 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.
afourney commentedon May 28, 2025
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.
t-kalinowski commentedon May 28, 2025
With some experimentation, I ended up pinning
"onnxruntime<=1.20.1"in ragnar:https://github.com/tidyverse/ragnar/blob/1d5f62fd005bdab467febb86d4c4455d7e22e0c5/R/ragnar-package.R#L24
Happy to submit a PR.
afourney commentedon May 28, 2025
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.
pin onnxruntime on Windows
pin onnxruntime on Windows (microsoft#1274)
pin onnxruntime on Windows (microsoft#1274)
pin onnxruntime>=1.24.1 (non-Windows) for Python 3.14 support
Remove onnxruntime<=1.20.1 Windows pin
pin onnxruntime on Windows (microsoft#1274)