k2-fsa / sherpa

Speech-to-text server framework with next-gen Kaldi
https://k2-fsa.github.io/sherpa
Apache License 2.0
477 stars 97 forks source link

Issue while checking the installation #481

Open SSwethaSel0609 opened 9 months ago

SSwethaSel0609 commented 9 months ago

(sherpa_env) (base) swetha@ip-10-40-6-153:/mnt/efs/swetha$ sherpa-online --help sherpa-online: error while loading shared libraries: libsherpa_cpp_api-811695b3.so: cannot open shared object file: No such file or directory

HaiYandada commented 5 months ago

I had the same problem you had. Did you solve it?

csukuangfj commented 5 months ago

Please describe how you installed sherpa.

HaiYandada commented 5 months ago
conda create -n sherpa python=3.11
conda activate sherpa
conda install cudatoolkit=11.8
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118
pip install /home/haiyan/k2-1.24.4.dev20231220+cuda11.8.torch2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pip install /home/haiyan/kaldifeat-1.25.3.dev20231221+cuda11.8.torch2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pip install /home/haiyan/k2_sherpa-1.3.dev20230725+cuda11.8.torch2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
python3 -c "import sherpa; print(sherpa.__file__); print(sherpa.__version__)"
> /home/haiyan/anaconda3/envs/sherpa/lib/python3.11/site-packages/sherpa/__init__.py
> 1.3.dev20230725+cuda11.8.torch2.0.1
sherpa-online --help
> sherpa-online: error while loading shared libraries: libsherpa_cpp_api-44968cdd.so: cannot open shared object file: No such file or directory

and this is my conda list image

HaiYandada commented 5 months ago

when I install k2/kaldifeat/k2_sherpa according to the instruction, there is a network connection problem, so I downloaded it manually, and pip install the .whl files.

csukuangfj commented 5 months ago
export LD_LIBRARY_PATH=/home/haiyan/anaconda3/envs/sherpa/lib/python3.11/site-packages/k2_sherpa.libs:$LD_LIBRARY_PATH

should fix the issue.