Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

ModuleNotFoundError: No module named 'ctc_decoder' while running demo_sreaming_asr.py #516

Open
upendrasingh18 opened this issue Nov 16, 2019 · 5 comments

Comments

@upendrasingh18
Copy link

while running demo_streaming_asr.py getting error ModuleNotFoundError: No module named 'ctc_decoder'

@WillemGooderham1
Copy link

You have to build the ctc_decoder. The process is available here https://nvidia.github.io/OpenSeq2Seq/html/installation.html#installation-speech

@ghost
Copy link

ghost commented Apr 6, 2020

@WillemGooderham1 The installation of decoders with the following command:
bash scripts/install_decoders.sh
is failing for me with this output:
installing_decoders_output.txt
[Note: I am trying to install Baidu CTC decoder]

And while trying to run python scripts/ctc_decoders_test.pyto check installation, I run into same error as the OP.

My machine: Ubuntu 18.04

@WillemGooderham1
Copy link

Your install is failing because you don't have swig installed on your environment (or it isn't found)

@ghost
Copy link

ghost commented Apr 6, 2020

But I don't see swig mentioned in the installation documents or the requirements.txt file..

@computervisionpro
Copy link

Hi,

I have windows operating system. I have installed swig and added swig to my environment path. I have ctc_decoder module but no swig_decoders. Can anyone help me where I can find it?

ModuleNotFoundError: No module named 'swig_decoders'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants