ERROR: HTTP error 404 - Could not install requirement ds-ctcdecoder==0.6.1

I am facing an error for the following command, which was working fine until yesterday.

!pip install $(python deepspeech/util/taskcluster.py --decoder)

The error is

Collecting ds-ctcdecoder==0.6.1
  ERROR: HTTP error 404 while getting https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.deepspeech.native_client.v0.6.1.cpu-ctc/artifacts/public/ds_ctcdecoder-0.6.1-cp36-cp36m-manylinux1_x86_64.whl
  ERROR: Could not install requirement ds-ctcdecoder==0.6.1 from https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.deepspeech.native_client.v0.6.1.cpu-ctc/artifacts/public/ds_ctcdecoder-0.6.1-cp36-cp36m-manylinux1_x86_64.whl because of error 404 Client Error: Not Found for url: https://community-tc.services.mozilla.com/api/queue/v1/task/LjifLjGcSgew9NuoTIvmfg/artifacts/public%2Fds_ctcdecoder-0.6.1-cp36-cp36m-manylinux1_x86_64.whl
ERROR: Could not install requirement ds-ctcdecoder==0.6.1 from https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.deepspeech.native_client.v0.6.1.cpu-ctc/artifacts/public/ds_ctcdecoder-0.6.1-cp36-cp36m-manylinux1_x86_64.whl because of HTTP error 404 Client Error: Not Found for url: https://community-tc.services.mozilla.com/api/queue/v1/task/LjifLjGcSgew9NuoTIvmfg/artifacts/public%2Fds_ctcdecoder-0.6.1-cp36-cp36m-manylinux1_x86_64.whl for URL https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.deepspeech.native_client.v0.6.1.cpu-ctc/artifacts/public/ds_ctcdecoder-0.6.1-cp36-cp36m-manylinux1_x86_64.whl

Similar issue was raised in different threads for different versions, and the solution was to wait, as build or task was ongoing,
Is it the same issue or kindly let me know how to resolve it?

Artifact expired and we basically cannot re-generate it. Please rebuild ds_ctcdecoder.

Can you say how to rebuild it?

Thanks. It solved the issue but gave rise to another

Got the whl after rebuilding, and have installed it

Processing ./native_client/ctcdecode/dist/ds_ctcdecoder-0.6.1-cp36-cp36m-linux_x86_64.whl
Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from ds-ctcdecoder==0.6.1) (1.18.5)
Installing collected packages: ds-ctcdecoder
Successfully installed ds-ctcdecoder-0.6.1

When i strat training, i get the follwoing error

ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/ds_ctcdecoder/swigwrapper.py", line 14, in swig_import_helper
return importlib.import_module(mname)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 922, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: numpy.core.multiarray failed to import

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "DeepSpeech.py", line 21, in <module>
from ds_ctcdecoder import ctc_beam_search_decoder, Scorer
  File "/usr/local/lib/python3.6/dist-packages/ds_ctcdecoder/__init__.py", line 3, in <module>
from . import swigwrapper
  File "/usr/local/lib/python3.6/dist-packages/ds_ctcdecoder/swigwrapper.py", line 17, in <module>
_swigwrapper = swig_import_helper()
  File "/usr/local/lib/python3.6/dist-packages/ds_ctcdecoder/swigwrapper.py", line 16, in swig_import_helper
return importlib.import_module('_swigwrapper')
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_swigwrapper'

What may be the issue now.

PS: the code from installation to training to inference have been run several times without any issues, until i got the issue of this artifact

I don’t know. Please verify if you have proper numpy version setup and working … ?

pip install --upgrade numpy

resolved the issue, Though already installed numpy satisfied the requirement, yet the issue arised.

Installing collected packages: numpy
  Found existing installation: numpy 1.15.4
    Uninstalling numpy-1.15.4:
      Successfully uninstalled numpy-1.15.4
Successfully installed numpy-1.19.0

However its resolved now. Thanks @lissyx

2 Likes