-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'ctc_decoders' #7320
Comments
you need to provide a path to NeMo as a first argument of install_beamsearch_decoders.sh script: |
We need to catch these missing inputs and provide proper error message |
I typed But I still have some issues.. This is my code.
And output was
It doesn't mean just error but I waited about 2 hours and nothing happened.. |
I checked this error solved in python 3.10. |
File "/home/mid01/anaconda3/envs/py3.8/lib/python3.8/site-packages/nemo/collections/asr/modules/beam_search_decoder.py", line 64, in init
from ctc_decoders import Scorer, ctc_beam_search_decoder_batch
ModuleNotFoundError: No module named 'ctc_decoders'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "decoder_testing.py", line 38, in
beam_search = nemo_asr.modules.BeamSearchDecoderWithLM(
File "/home/mid01/anaconda3/envs/py3.8/lib/python3.8/site-packages/nemo/collections/asr/modules/beam_search_decoder.py", line 66, in init
raise ModuleNotFoundError(
ModuleNotFoundError: BeamSearchDecoderWithLM requires the installation of ctc_decoders from scripts/asr_language_modeling/ngram_lm/install_beamsearch_decoders.sh
My python version is 3.8 as #6690 said.
And I also tried
conda create --name nemo python==3.8.10
conda activate nemo
but
./scripts/asr_language_modeling/ngram_lm/install_beamsearch_decoders.sh: line 26: cd: /workspace/nemo: No such file or directory
error occured then I get GPG error, No module named 'swig_decoders' ..
still doesn't work.
I just want to get BeamSearchDecoder's result.
Please help me.
The text was updated successfully, but these errors were encountered: