Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin issue on Linux / Docker #238

Open
alexbn71 opened this issue Oct 20, 2022 · 1 comment
Open

Plugin issue on Linux / Docker #238

alexbn71 opened this issue Oct 20, 2022 · 1 comment

Comments

@alexbn71
Copy link

alexbn71 commented Oct 20, 2022

I have these errors when I try Listen plugin... can you help me figure out what's missing?

07:43:43 Resolved Assembly: /agent/Plugins/Listen/Microsoft.ML.OnnxRuntime.dll
07:43:43 Exception has been thrown by the target of an invocation.
07:43:43 Error: Exception has been thrown by the target of an invocation.
07:43:43 at System.RuntimeType.CreateInstanceDefaultCtor(Boolean , Boolean ) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at System.RuntimeType.CreateInstanceImpl(BindingFlags , Binder , Object[] , CultureInfo ) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase) at CoreLogic.Utilities.PluginHelper.CheckPlugin(FileInfo dll, List`1& pc)
07:43:43 Error: at System.RuntimeType.CreateInstanceDefaultCtor(Boolean , Boolean ) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at System.RuntimeType.CreateInstanceImpl(BindingFlags , Binder , Object[] , CultureInfo ) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase) at CoreLogic.Utilities.PluginHelper.CheckPlugin(FileInfo dll, List`1& pc)
07:43:43 Could not load file or assembly 'Microsoft.ML.OnnxRuntime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=f27f157f0a5b7bb6'. The system cannot find the file specified.
07:43:43 Error: Could not load file or assembly 'Microsoft.ML.OnnxRuntime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=f27f157f0a5b7bb6'. The system cannot find the file specified.
07:43:43 at Plugins.Main..ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean , Boolean )
07:43:43 Error: at Plugins.Main..ctor() at System.RuntimeType.CreateInstanceDefaultCtor(Boolean , Boolean )
07:43:43 Could not load file or assembly 'Microsoft.ML.OnnxRuntime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=f27f157f0a5b7bb6, processorArchitecture=MSIL'. The system cannot find the file specified.
07:43:43 Error: Could not load file or assembly 'Microsoft.ML.OnnxRuntime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=f27f157f0a5b7bb6, processorArchitecture=MSIL'. The system cannot find the file specified.
07:43:43 at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack , ObjectHandleOnStack , StackCrawlMarkHandle , Boolean , ObjectHandleOnStack , ObjectHandleOnStack ) at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName , RuntimeAssembly , StackCrawlMark& , Boolean , AssemblyLoadContext ) at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName , StackCrawlMark& , AssemblyLoadContext ) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at CoreLogic.Utilities.PluginHelper.CurrentDomain_AssemblyResolve(Object sender, ResolveEventArgs args) at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler , RuntimeAssembly , String ) at System.Runtime.Loader.AssemblyLoadContext.OnAssemblyResolve(RuntimeAssembly , String )
07:43:43 Error: at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack , ObjectHandleOnStack , StackCrawlMarkHandle , Boolean , ObjectHandleOnStack , ObjectHandleOnStack ) at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName , RuntimeAssembly , StackCrawlMark& , Boolean , AssemblyLoadContext ) at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName , StackCrawlMark& , AssemblyLoadContext ) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at CoreLogic.Utilities.PluginHelper.CurrentDomain_AssemblyResolve(Object sender, ResolveEventArgs args) at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler , RuntimeAssembly , String ) at System.Runtime.Loader.AssemblyLoadContext.OnAssemblyResolve(RuntimeAssembly , String )
07:43:43 Could not load file or assembly 'Microsoft.ML.OnnxRuntime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=f27f157f0a5b7bb6, processorArchitecture=MSIL'. The system cannot find the file specified.
@alexbn71 alexbn71 changed the title Plugins issue on Linux / Docker Plugin issue on Linux / Docker Oct 20, 2022
@ispysoftware
Copy link
Owner

ispysoftware commented Oct 21, 2022

hmm i haven't had much luck getting listen to work on linux either - looks like you're supposed to download the onnx runtime v1.11.0 from

https://github.com/microsoft/onnxruntime/releases

https://github.com/microsoft/onnxruntime/releases/tag/v1.11.0

"unzip the file and manually copy the files to /usr or /usr/local, either works. Then run ldconfig . in the lib directory which contains libonnxruntime.so."

it's not working here on my pi though - maybe you'll have more luck?

(microsoft/onnxruntime#6489)

edit - updated version link above

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

No branches or pull requests

2 participants