mozilla / DSAlign

DeepSpeech based forced alignment tool
Mozilla Public License 2.0
235 stars 33 forks source link

./bin/lm-dependencies.sh is failing because some files are missing #34

Closed shivamiitgoa closed 4 years ago

shivamiitgoa commented 4 years ago

Error:

Downloading https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.deepspeech.native_client.v0.6.0.cpu/artifacts/public/native_client.tar.xz ...
Traceback (most recent call last):
  File "/home/ubuntu/DSAlign/bin/taskcluster.py", line 153, in <module>
    main()
  File "/home/ubuntu/DSAlign/bin/taskcluster.py", line 147, in main
    maybe_download_tc(target_dir=args.target, tc_url=get_tc_url(args.arch, args.artifact, args.branch))
  File "/home/ubuntu/DSAlign/bin/taskcluster.py", line 57, in maybe_download_tc
    urllib.request.urlretrieve(tc_url, target_file, reporthook=(report_progress if progress else None))
  File "/home/ubuntu/miniconda3/lib/python3.7/urllib/request.py", line 247, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/home/ubuntu/miniconda3/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/home/ubuntu/miniconda3/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/home/ubuntu/miniconda3/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/home/ubuntu/miniconda3/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/home/ubuntu/miniconda3/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/home/ubuntu/miniconda3/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
tilmankamp commented 4 years ago

This should work again.

agnusmaximus commented 4 years ago

Hm, seems this is not working again for 0.7.1, is there a way to work around this?

Tortoise17 commented 4 years ago

It is working perfectly with 0.7.1. what error you are facing?

agnusmaximus commented 4 years ago

urllib.error.HTTPError: HTTP Error 404: Not Found for native_client v0.7.1. I believe if you already have the native_client downloaded previously, it won't download (and won't error), but if you remove the cached file, then downloading leads to the http error.

Tortoise17 commented 4 years ago

check with pip list inside your environment

deepspeech                    0.7.1
ds-ctcdecoder                 0.7.1

it should be available. You don't need anything else then. only requirements,.

agnusmaximus commented 4 years ago

Without per-document language models, it works fine, but I'm trying to get it to work with per-document language models (which I'm running into the lm-dependencies issue posted above, but for native-client v0.7.1)

agnusmaximus commented 4 years ago

I've since fixed the issue. Thanks!