k2-fsa / sherpa-onnx

Speech-to-text, text-to-speech, and speaker recognition using next-gen Kaldi with onnxruntime without Internet connection. Support embedded systems, Android, iOS, Raspberry Pi, RISC-V, x86_64 servers, websocket server/client, C/C++, Python, Kotlin, C#, Go, NodeJS, Java, Swift, Dart, JavaScript, Flutter
https://k2-fsa.github.io/sherpa/onnx/index.html
Apache License 2.0
2.53k stars 289 forks source link

ImportError: ../../../_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so: cannot open shared object file: No such file or directory #1030

Open ytc19990517 opened 3 weeks ago

ytc19990517 commented 3 weeks ago

There was no error when I installed sherpa-onnx-gpu, but when I executed the command "python3 -c "import sherpa_onnx; print(sherpa_onnx.file)" an error occurred

ytc19990517 commented 3 weeks ago

Ok, so it is the issue of your environment, I think.

Please follow https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html to install

  • cuda 11.8
  • cudnn 8.2.4

(kaldi) [ytc@localhost ~]$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:33:58_PDT_2022 Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0

ytc19990517 commented 3 weeks ago

Ok, so it is the issue of your environment, I think.

Please follow https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html to install

  • cuda 11.8
  • cudnn 8.2.4

I followed this step to install the environment ![Uploading 捕获1.PNG…]() https://k2-fsa.github.io/k2/installation/cuda-cudnn.html#cuda-11-8

ytc19990517 commented 3 weeks ago

Ok, so it is the issue of your environment, I think.

Please follow https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html to install

  • cuda 11.8
  • cudnn 8.2.4 I used Pytorch in this environment and it's all working fine
ytc19990517 commented 3 weeks ago

Ok, so it is the issue of your environment, I think.

Please follow https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html to install

  • cuda 11.8
  • cudnn 8.2.4

I reinstalled cuda11.8 and cudnn8.7.0 but still get the same error