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

Training error during - Updating nuget dependencies #2715

Open
arung2207 opened this issue Jun 15, 2023 · 3 comments
Open

Training error during - Updating nuget dependencies #2715

arung2207 opened this issue Jun 15, 2023 · 3 comments
Labels
Bug Something isn't working Stale
Milestone

Comments

@arung2207
Copy link

System Information (please complete the following information):

  • Model Builder Version: 17.16.0.2326802
  • Visual Studio Version: Microsoft Visual Studio Community 2022 (64-bit) - 17.6.3

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repos https://github.com/arung2207/MLDemo
  2. Open the MLModel1.mbconfig in ConsoleApp2 project
  3. In the training step click Train again
  4. You should see above error dialog. The complete log file is available at https://github.com/arung2207/MLDemo/blob/master/02-ML/ConsoleApp2/MLModel1-51LQWU.txt The error snippet from the log is shown below

Updating nuget dependencies... (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
2023-06-15 12:11:18.3856 INFO Starting update NuGet dependencies async. (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
2023-06-15 12:11:18.6972 INFO Project Miscellaneous Files cannot be accessed. It may be unloaded. (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
2023-06-15 12:11:18.7112 INFO Couldn't find project named C:\Repos\MLDemo\02-ML\ConsoleApp2\ConsoleApp2.csproj (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
2023-06-15 12:11:18.7112 INFO Installing nuget package, package ID: Microsoft.ML, package Version: 3.0.0-preview.23266.6 (Microsoft.ML.ModelBuilder.Utils.Logger.Info)
2023-06-15 12:11:18.7305 WARN ModelBuilder fails to install the following nuget dependencies

  • package name: Microsoft.ML
  • package version: 3.0.0-preview.23266.6
  1. The project doesn't compile as the NuGet package couldn't be added.

Expected behavior
The training step should finish without any errors and the NuGet packages should update successfully

@arung2207
Copy link
Author

I have noticed when the project is not within a Solution Folder (like in this case ConsoleApp2 is within 02-ML solution folder) the Training step seems to work fine, the NuGet dependencies is correctly added and the project compiles fine.

@LittleLittleCloud
Copy link
Contributor

Thanks for reporting. We'll take a look

@LittleLittleCloud LittleLittleCloud added the Bug Something isn't working label Jun 15, 2023
@LittleLittleCloud
Copy link
Contributor

After a closer look, it turns out that the error is because Project.Name somehow is null in the following solution structure (project in a folder)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

2 participants