parlance / ctcdecode

PyTorch CTC Decoder bindings
MIT License
829 stars 245 forks source link

ModuleNotFoundError: No module named 'ctcdecode.ctcdecode._ext.ctc_decode._ctc_decode' #80

Closed edchengg closed 6 years ago

edchengg commented 6 years ago

Hi, after installation, I got modulenotfounderror when I call from ctcdecode.ctcdecode import CTCBeamDecoder

File "/home-nfs/xx/speech/model_wsj_3layers.py", line 9, in <module>
    from ctcdecode.ctcdecode import CTCBeamDecoder
  File "/home-nfs/xx/speech/ctcdecode/ctcdecode/__init__.py", line 1, in <module>
    from ._ext import ctc_decode
  File "/home-nfs/xx/speech/ctcdecode/ctcdecode/_ext/ctc_decode/__init__.py", line 3, in <module>
    from ._ctc_decode import lib as _lib, ffi as _ffi
ModuleNotFoundError: No module named 'ctcdecode.ctcdecode._ext.ctc_decode._ctc_decode'

I dont see ._ctc_decode in the directory. How should I solve this problem? Thanks

lorenlugosch commented 6 years ago

Hey, is your code running in the ctcdecode folder? If so, try switching to a different directory; otherwise, you'll get that error.

shamoons commented 4 years ago

I'm getting this issue as well