microsoft / microsoft/onnxruntime

Error during onnxruntime-gpu nuget package installation

Open
#6,425 6 comments 0 reactions 1 assignee View on GitHub

@snnn is already working on this.

Since Feb 16, 2021.

api build
Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

**Describe the bug**
During installation of onnxruntime-gpu (custom build for L4T, Jetson Nano) nuget package, this error appear:

`user@user:~/Project/YOLOv4MLNet$ dotnet add package Microsoft.ML.OnnxRuntime.Gpu -v 1.5.2-dev-20210113-0851-ad7cc541f -s /home/user/project/
Determining projects to restore...
Writing /tmp/tmpC3BkVe.tmp
info : Adding PackageReference for package 'Microsoft.ML.OnnxRuntime.Gpu' into project '/home/user/project/YOLOv4MLNet/YOLOv4MLNet.csproj'.
info : Restoring packages for /home/user/Project/YOLOv4MLNet/YOLOv4MLNet.csproj...
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime.managed/index.json
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime.managed/index.json 820ms
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.app.ref/index.json
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app.host.linux-arm64/index.json
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app.ref/index.json
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.app.ref/index.json 201ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app.ref/index.json 295ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app.host.linux-arm64/index.json 693ms
info : Installing Microsoft.NETCore.App.Ref 3.1.0.
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app.ref/3.1.0/microsoft.netcore.app.ref.3.1.0.nupkg
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app.ref/3.1.0/microsoft.netcore.app.ref.3.1.0.nupkg 19ms
info : Installing Microsoft.NETCore.App.Host.linux-arm64 3.1.11.
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app.host.linux-arm64/3.1.11/microsoft.netcore.app.host.linux-arm64.3.1.11.nupkg
info : Installing Microsoft.AspNetCore.App.Ref 3.1.10.
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.app.ref/3.1.10/microsoft.aspnetcore.app.ref.3.1.10.nupkg
info : Installing Microsoft.ML.OnnxRuntime.Gpu 1.5.2-dev-20210113-0851-ad7cc541f.
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.app.ref/3.1.10/microsoft.aspnetcore.app.ref.3.1.10.nupkg 40ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app.host.linux-arm64/3.1.11/microsoft.netcore.app.host.linux-arm64.3.1.11.nupkg 152ms
error: Access to the path '/home/user/.nuget/packages/microsoft.ml.onnxruntime.gpu/1.5.2-dev-20210113-0851-ad7cc541f/runtimes/linux-x64/native' is denied.
error: Permission denied`

Already tried to delete whole .nuget directory, change ownership, change permissions or run dotnet as sudo

**Urgency**
It is blocker for private project

**System information**
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): L4T
- ONNX Runtime installed from (source or binary): Source
- ONNX Runtime version: 1.6.0 and 1.5.2
- Python version: 3.7
- Visual Studio version (if applicable): Not installed
- GCC/Compiler version (if compiling from source): 7.3.1
- CUDA/cuDNN version: CUDA 10.2, cuDNN 8.0
- GPU model and memory: Integrated

**To Reproduce**
- Clone onnxruntime repository
- Use build.sh script to build onnxruntime:
`./build.sh --config Release --update --build --parallel --build_nuget \
--use_tensorrt --cuda_home /usr/local/cuda --cudnn_home /usr/lib/aarch64-linux-gnu \
--tensorrt_home /usr/lib/aarch64-linux-gnu`
- Using dotnet install nuget package
`dotnet add package Microsoft.ML.OnnxRuntime.Gpu -v 1.5.2-dev-20210113-0851-ad7cc541f -s /home/user/nugetPackageLocation/`

**Expected behavior**
After compilation and installation of nuget package onnxruntime-gpu, it should be possible to run YOLOv5 on C#

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.