Open jalin168 opened 7 months ago
From the log it seems that the error is because the access to nuget.org server fails. Can you double check if you can visit the following link
https://api.nuget.org/v3/index.json
The output log shows the command to install runtime where you can mannually copy and paste in command window to install runtime manually. If you share the output log file here I can point you to the two command. But you still need access to nuget.org in order to run those command though
Using a web browser, I can connect to https://api.nuget.org/v3/index.json, as shown below.
My output log file is as follows. (Confidential information is replaced with "xxx".) ObjectDetection-NBAZQS.txt
Please help provide manual installation commands. In addition, can the command be posted to "Developer Command Prompt for VS 2019" and executed directly? Thank you.
@jalin168
You can manually install runtime by running the following commands (you probably need to swap user name from xxx back to actual name)
dotnet restore "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj" --configfile "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\NuGet.config" -r win-x64 /p:UsingToolXliff=false /p:TorchSharpVersion=0.101.5 /p:TorchSharpCudaRuntimeVersion=2.1.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseIntermediateOutputPath="C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5\obj"
dotnet publish "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj" -r win-x64 -c Release --no-self-contained -o "C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5" --no-restore /p:UsingToolXliff=false /p:TorchSharpVersion=0.101.5 /p:TorchSharpCudaRuntimeVersion=2.1.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseOutputPath="C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5\bin\\" /p:BaseIntermediateOutputPath="C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5\obj\\"
(Confidential information is replaced with "xxx".)
I executed the first dotnet restore command, but the following error still occurred:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>dotnet restore "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj" --configfile "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\NuGet.config" -r win-x64 /p:UsingToolXliff=false /p:TorchSharpVersion=0.101.5 /p:TorchSharpCudaRuntimeVersion=2.1.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseIntermediateOutputPath="C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5\obj"
正在判斷要還原的專案...
C:\Program Files\dotnet\sdk\5.0.301\NuGet.targets(131,5): error : 無法載入來源 https://api.nuget.org/v3/index.json 的服 務索引。 [c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj]
C:\Program Files\dotnet\sdk\5.0.301\NuGet.targets(131,5): error : 連線嘗試失敗,因為連線對象有一段時間並未正確回應,或是連線建立失敗,因為連線的主機無法回應。 (api.nuget.org:443) [c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj]
C:\Program Files\dotnet\sdk\5.0.301\NuGet.targets(131,5): error : 連線嘗試失敗,因為連線對象有一段時間並未正確回應,或是連線建立失敗,因為連線的主機無法回應。 [c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj]
I guessed it was a proxy problem, so I added the proxy settings to C:\Users\xxx\AppData\Roaming\NuGet\NuGet.Config as follows:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="http_proxy" value="http://xxx.xxx.xxx:3128" />
<add key="http_proxy.user" value="xxx" />
<add key="http_proxy.password" value="xxx" />
</config>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
<disabledPackageSources>
<add key="Microsoft and .NET" value="true" />
</disabledPackageSources>
</configuration>
After executing the command again, a new error occurs as follows:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>dotnet restore "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj" --configfile "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\NuGet.config" -r win-x64 /p:UsingToolXliff=false /p:TorchSharpVersion=0.101.5 /p:TorchSharpCudaRuntimeVersion=2.1.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseIntermediateOutputPath="C:\Users\xxx\AppData\Local\ModelBuilder\torchsharp-cpu-0.101.5\obj"
正在判斷要還原的專案...
C:\Program Files\dotnet\sdk\5.0.301\NuGet.targets(131,5): error : 無法載入來源 https://api.nuget.org/v3/index.json 的服 務索引。 [c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj]
C:\Program Files\dotnet\sdk\5.0.301\NuGet.targets(131,5): error : The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. [c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\vwsqrkhn.ye1\AutoMLService\RuntimeManager\torchsharp.cpu.csproj]
System Information (please complete the following information):
Describe the bug
To Reproduce Steps to reproduce the behavior:
Expected behavior Training should run and complete.
Screenshots
Additional context The following is the Log in the output pane: (Confidential information is replaced with "xxx".)
What runtime package failed to install? Is there a way to manually install it to solve this problem so that I can continue the training process? Thanks.