System.Private.CoreLib: Exception while executing function - Error running Azure Functions v2 locally with ML.NET
See original GitHub issueHey all, I have used the ML.NET tutorial here https://docs.microsoft.com/en-us/dotnet/machine-learning/tutorials/taxi-fare and wrapped the logic into an Azure Function.
I am using 2.0.1-beta.31 CLI tools and 1.0.14 from NuGet.
When executing the Function, I get this error
Http Functions:
TaxiFarePredictor: http://localhost:7071/api/TaxiFarePredictor
[26/07/2018 06:54:15] Executing 'TaxiFarePredictor' (Reason='This function was programmatically called via the host APIs.', Id=234649db-5a6c-4d91-92ed-2af4f125a96b)
[26/07/2018 06:54:15] C# HTTP trigger TaxiFarePredictor function processed a request.
Duplicate loading of the assembly 'Microsoft.ML.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
Duplicate loading of the assembly 'Microsoft.ML.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
Duplicate loading of the assembly 'Microsoft.ML, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
Duplicate loading of the assembly 'Microsoft.ML.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
Duplicate loading of the assembly 'TaxiFarePrediction, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
[26/07/2018 06:54:19] System.Private.CoreLib: Exception while executing function: TaxiFarePredictor. Microsoft.ML.Data: Entry point'Transforms.CategoricalOneHotVectorizer' not found.
[26/07/2018 06:54:19]
[26/07/2018 06:54:19] Executed 'TaxiFarePredictor' (Failed, Id=234649db-5a6c-4d91-92ed-2af4f125a96b)
[26/07/2018 06:54:19] System.Private.CoreLib: Exception while executing function: TaxiFarePredictor. Microsoft.ML.Data: Entry point'Transforms.CategoricalOneHotVectorizer' not found.
Repro: https://github.com/ChristianWeyer/azure-functions-ml-net
This is the input JSON I am using to test the Function with:
{
"VendorId": "VTS",
"RateCode": "1",
"PassengerCount": 1,
"TripDistance": 10.33,
"PaymentType": "CSH"
}
Any ideas what could be wrong here? .cc @fabiocav
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Azure Java Function run failed with System.Private.CoreLib
A sample http trigger java azure function local run failed with the following error: System.Private.CoreLib: Exception while executing ...
Read more >Troubleshoot Python errors in Azure Functions
This error occurs when a Python function app fails to load a Python module. ... Python functions run only on Linux in Azure....
Read more >Azure Function throwing error Could not load file or ...
Web.HttpUtility class to parse a filter, I get the following error: System.Private.CoreLib: Exception while executing function: GetPetitions.
Read more >Could not load file or assembly azure function
When I set the function project to x64, vs cannot debug the function. A host error has occurred during startup operation ...
Read more >Can no longer run azure functions locally (Failed to get ...
System.Private.CoreLib: Exception while executing function: ExecuteFunction. KODAzureFunctions: Failed to get Entity Profile: code: 400.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Will take a look at this as soon as possible. At a first glance, it does look like something coming from the code in those assemblies, but this needs some investigation
@ChristianWeyer we’ve worked with the ML.NET team and they were working on improvements to address this issue (as much of the problem was because of how they were loading dependencies). Closing this as there’s no action to be taken on this repo.