dotnet / dotnet/machinelearning

Unable to load shared library 'MklImports' on MacOS with CLI

Open
#7,229 2 comments 1 reaction 0 assignees View on GitHub
area-Native untriaged
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

I am using the CLI tool, on MacOS.

My command line is:
> mlnet forecasting --dataset training.csv --validation-dataset testing.csv --train-time 100 --label-col 1 --time-col 0 --horizon 1 --has-header true

I went to:
https://learn.microsoft.com/en-us/dotnet/machine-learning/how-to-guides/install-extra-dependencies

and installed the dependency with:
> wget https://raw.githubusercontent.com/Homebrew/homebrew-core/fb8323f2b170bd4ae97e1bac9bf3e2983af3fdb0/Formula/libomp.rb && brew install ./libomp.rb && brew link libomp --force

libomp is installed, I've also installed the MKL lib from Intel just in case, but I keep getting a crash:

```
System.DllNotFoundException: Unable to load shared library 'MklImports' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(/Users/thomas/.dotnet/tools/.store/mlnet-osx-x64/16.18.2/mlnet-osx-x64/16.18.2/tools/net8.0/any/MklImports.dylib, 0x0001): tried: '/Users/thomas/.dotnet/tools/.store/mlnet-osx-x64/16.18.2/mlnet-osx-x64/16.18.2/tools/net8.0/any/MklImports.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/thomas/.dotnet/tools/.store/mlnet-osx-x64/16.18.2/mlnet-osx-x64/16.18.2/tools/net8.0/any/MklImports.dylib' (no such file), '/Users/thomas/.dotnet/tools/.store/mlnet-osx-x64/16.18.2/mlnet-osx-x64/16.18.2/tools/net8.0/any/MklImports.dylib' (no such file)
```

What am I missing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.