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

Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'CpuMathNative' #1999

Closed
JakeRadMSFT opened this issue Jan 2, 2019 · 4 comments

Comments

@JakeRadMSFT
Copy link
Contributor

System information

  • OS version/distro: Windows 10
  • .NET Version (eg., dotnet --info):
    .NET Core SDK (reflecting any global.json):
    Version: 2.2.101
    Commit: 236713b0b7

Runtime Environment:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.2.101\

Host (useful for support):
Version: 2.2.0
Commit: 1249f08fed

.NET Core SDKs installed:
2.2.101 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Issue

  • What did you do? Followed tutorial: https://dotnet.microsoft.com/learn/machinelearning-ai/ml-dotnet-get-started-tutorial

  • What happened? Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'CpuMathNative' or one of its dependencies: The specified module could not be found.
    (Exception from HRESULT: 0x8007007E)
    at Microsoft.ML.Runtime.Internal.CpuMath.Thunk.SumSqU(Single* ps, Int32 c)
    at Microsoft.ML.Trainers.SdcaTrainerBase3.TrainCore(IChannel ch, RoleMappedData data, LinearPredictor predictor, Int32 weightSetCount) at Microsoft.ML.Runtime.Learners.StochasticTrainerBase2.TrainModelCore(TrainContext context)
    at Microsoft.ML.Runtime.Training.TrainerEstimatorBase2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor) at Microsoft.ML.Runtime.Data.EstimatorChain1.Fit(IDataView input)
    at myApp.Program.Main(String[] args) in C:\Users\jakeradzikowski\dev\iris\Program.cs:line 69

  • What did you expect? Iris example to work.

Source code / logs

Please paste or attach the code or logs or traces that would be helpful to diagnose the issue you are reporting.

@JakeRadMSFT
Copy link
Contributor Author

Related to #333

@JakeRadMSFT
Copy link
Contributor Author

JakeRadMSFT commented Jan 2, 2019

Hey Crew,
After I Installed Microsoft Visual C++ Redistributable for Visual Studio 2017 from https://visualstudio.microsoft.com/downloads/ or Direct Link: https://go.microsoft.com/fwlink/?LinkId=746572. The tutorial worked as expected. Should that be added to the tutorial?

Can I get the dependency with a PackageReference?

@Ivanidzo4ka
Copy link
Contributor

Looks like duplicate of #1823

@JakeRadMSFT
Copy link
Contributor Author

Thanks! So it'll be resolved in 0.9

@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants