ImportError: No module named ds_ctcdecoder

i success installed ds-cecdecoder

Collecting ds-ctcdecoder==0.5.0a2 from https://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.v0.5.0-alpha.2.cpu-ctc/artifacts/public/ds_ctcdecoder-0.5.0a2-cp36-cp36m-manylinux1_x86_64.whl
  Using cached https://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.v0.5.0-alpha.2.cpu-ctc/artifacts/public/ds_ctcdecoder-0.5.0a2-cp36-cp36m-manylinux1_x86_64.whl
Collecting numpy>=1.7.0 (from ds-ctcdecoder==0.5.0a2)
  Using cached https://files.pythonhosted.org/packages/35/d5/4f8410ac303e690144f0a0603c4b8fd3b986feb2749c435f7cdbb288f17e/numpy-1.16.2-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: numpy, ds-ctcdecoder
Successfully installed ds-ctcdecoder-0.5.0a2 numpy-1.16.2

when i run ./bin/run-ldc93s1.sh
i got error :

  • [ ! -f DeepSpeech.py ]
  • [ ! -f data/ldc93s1/ldc93s1.csv ]
  • [ -d ]
  • python -c from xdg import BaseDirectory as xdg; print(xdg.save_data_path(“deepspeech/ldc93s1”))
  • checkpoint_dir=/home/beecoder/.local/share/deepspeech/ldc93s1
  • python -u DeepSpeech.py --train_files data/ldc93s1/ldc93s1.csv --dev_files data/ldc93s1/ldc93s1.csv --test_files data/ldc93s1/ldc93s1.csv --train_batch_size 1 --dev_batch_size 1 --test_batch_size 1 --n_hidden 100 --epoch 200 --checkpoint_dir /home/beecoder/.local/share/deepspeech/ldc93s1
    Traceback (most recent call last):
    File “DeepSpeech.py”, line 11, in
    import evaluate
    File “/home/beecoder/projek/DeepSpeech/evaluate.py”, line 16, in
    from ds_ctcdecoder import ctc_beam_search_decoder_batch, Scorer
    ImportError: No module named ds_ctcdecoder

Are you sure your installed it right ? No messing around virtual environment ? Proper TensorFlow version ?

yep, I’m 100% sure, I use a virtual environment, for the tensorflow version = 1.12.0

Do you mind retrying 100% from scratch, with a new virtualenv, and copy/pasting exactly all you do?

yap, I have re-installed for 3 time

Check if you’re not mixing Python 2 and 3. The pip install log looks like Python 3, but bin/run-ldc93s1.sh runs “python”, so depending on your system setup that could be picking up Python 2. A virtualenv created with -p python3 should prevent that from happening though.

1 Like

Thanks, thats worked !