Skip to content

Error: could not load library ... onnxruntime.dll ... The specified module could not be found. #18

@cluffa

Description

@cluffa

julia 1.7 + ONNXRunTime v0.3.0
The .dll is definitely there. I deleted my .julia folder and did a fresh install with only ONNXRunTime.jl and Images.jl installed. I have had the code running in wsl, so it appears to be a windows issue. Please let me know if I can provide any more info.

ERROR: could not load library "C:\Users\AlexC\.julia\artifacts\a16d01a5b64dd0f036283f2d89b242e69a0ee03c\onnxruntime-win-x64-1.9.0\lib\onnxruntime.dll"
The specified module could not be found. 
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl .\libdl.jl:117
  [2] dlopen (repeats 2 times)
    @ .\libdl.jl:117 [inlined]
  [3] set_lib!(path::String, execution_provider::Symbol)
    @ ONNXRunTime.CAPI C:\Users\AlexC\.julia\packages\ONNXRunTime\Ad1yw\src\capi.jl:43
  [4] make_lib!(execution_provider::Symbol)
    @ ONNXRunTime.CAPI C:\Users\AlexC\.julia\packages\ONNXRunTime\Ad1yw\src\capi.jl:78
  [5] libptr
    @ C:\Users\AlexC\.julia\packages\ONNXRunTime\Ad1yw\src\capi.jl:95 [inlined]
  [6] OrtGetApiBase(; execution_provider::Symbol)
    @ ONNXRunTime.CAPI C:\Users\AlexC\.julia\packages\ONNXRunTime\Ad1yw\src\capi.jl:312
  [7] #GetApi#2
    @ C:\Users\AlexC\.julia\packages\ONNXRunTime\Ad1yw\src\capi.jl:330 [inlined]
  [8] load_inference(path::String; execution_provider::Symbol, envname::String)
    @ ONNXRunTime C:\Users\AlexC\.julia\packages\ONNXRunTime\Ad1yw\src\highlevel.jl:63
  [9] load_inference(path::String)
    @ ONNXRunTime C:\Users\AlexC\.julia\packages\ONNXRunTime\Ad1yw\src\highlevel.jl:63
 [10] top-level scope
    @ c:\Users\AlexC\workspace\BarTracking.jl\BarTracking.jl:4

My code was only:

using ONNXRunTime, Images
model = ONNXRunTime.load_inference("model.onnx")

If it is model related my model is here:
https://github.com/cluffa/bar_tracking/blob/main/BarTracking/timm-regnetx_002_model.onnx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions