StreamingTransformer icon indicating copy to clipboard operation
StreamingTransformer copied to clipboard

Question about ImportError: No module named sentencepiece

Open Genj1 opened this issue 3 years ago • 2 comments

I run the script in the following command: ./run --stage 2 and the error is:

File "~/StreamingTransformer/egs/librispeech/asr1/../../../utils/spm_encode", line 14, in import sentencepiece as spm ImportError: No module named sentencepiece

But in ESPNet , there was no such error. I try to solve but failed in this way: https://github.com/espnet/espnet/issues/1656 Is there any solution? Thanks!!

Genj1 avatar Aug 30 '21 14:08 Genj1

torch_version=1.7.0 cuda_version=11.0 python_version=3.8.10

Genj1 avatar Aug 31 '21 00:08 Genj1

Well this problem may be caused by the fourth line in path.sh, i.e., [ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh. So you can remove it in this project.

ZhaoRunning avatar Aug 07 '22 04:08 ZhaoRunning