djl icon indicating copy to clipboard operation
djl copied to clipboard

UnsatisfiedLinkError: windows for Pytorch 1.3.1

Open yingcuhk opened this issue 2 years ago • 1 comments

Description

Caused by: java.lang.UnsatisfiedLinkError: C:\Users\Administrator.djl.ai\pytorch\1.13.1-cu117-win-x86_64\torch_cuda_cpp.dll: Can't find dependent libraries

I use DJL 0.23.0 and try to use it for interference in java.

I have pytorch and cuda installed and can train pytorch model using local GPU.

L_H%L_K25)20EK7}9BZ7` I

Do I need to use older version or how to solve this problem?

yingcuhk avatar Aug 01 '23 06:08 yingcuhk

By default, DJL doesn't use the pytorch installed with Python. DJL will download PyTorch native library and save it in cache folder.

Your error usually caused by missing dependencies (or not included in path). You can use dumpbin.exe or dependency waller to check which library is missing on your system. see: https://docs.djl.ai/master/docs/development/troubleshooting.html#unsatisfiedlinkerror-issue

frankfliu avatar Aug 01 '23 15:08 frankfliu