ctcdecode icon indicating copy to clipboard operation
ctcdecode copied to clipboard

ModuleNotFoundError: No module named 'ctcdecode._ext'

Open shamoons opened this issue 4 years ago • 6 comments

  File "/home/shamoon/pytorch-lstm-audio/submodules/deepspeech2/decoder.py", line 101, in __init__
    from ctcdecode import CTCBeamDecoder
  File "/home/shamoon/ctcdecode/ctcdecode/__init__.py", line 2, in <module>
    from ._ext import ctc_decode
ModuleNotFoundError: No module named 'ctcdecode._ext'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "submodules/deepspeech2/transcribe.py", line 79, in <module>
    beam_width=args.beam_width, num_processes=args.lm_workers)
  File "/home/shamoon/pytorch-lstm-audio/submodules/deepspeech2/decoder.py", line 103, in __init__
    raise ImportError("BeamCTCDecoder requires paddledecoder package.")
ImportError: BeamCTCDecoder requires paddledecoder package.

shamoons avatar Mar 23 '20 02:03 shamoons

I tested and found that the error occurs when running in the ctcdecode directory, but it will work in other directories.

lvxuan96 avatar Jun 10 '20 14:06 lvxuan96

I had the same issue and as @lvxuan96 said, cd out of ctcdecode directory fixes it.

pinyiw avatar Jun 29 '20 23:06 pinyiw

I tested and found that the error occurs when running in the ctcdecode directory, but it will work in other directories.

this worked for me too

janvainer avatar Aug 12 '20 12:08 janvainer

@lvxuan96 do you mean that I have to cd out of the directory where ctcdecode has been installed?

NoCodeAvaible avatar Apr 24 '21 13:04 NoCodeAvaible

@lvxuan96 do you mean that I have to cd out of the directory where ctcdecode has been installed?

Just had the issue and yes that's exactly that

ghost avatar Apr 30 '21 08:04 ghost

How exactly to cd out and run decoder beam?

ariefsaferman avatar Nov 07 '21 04:11 ariefsaferman