parlance / ctcdecode

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

ubuntu18.04 - pip install . fail #167

Closed biscayan closed 4 years ago

biscayan commented 4 years ago

Hi, thank you for your open source project. I want to apply your decoder to my speech recognition research. Thus, I follow your guideline, but error occurs when I try to install at the root repository. Here is my error message..

Processing /home/skgudwn34/ctcdecode
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-fs_5h6ny/setup.py", line 30, in <module>
        'third_party/boost_1_67_0.tar.gz')
      File "/tmp/pip-req-build-fs_5h6ny/setup.py", line 22, in download_extract
        tar.extractall('third_party/')
      File "/home/skgudwn34/anaconda3/envs/pytorch/lib/python3.7/tarfile.py", line 2000, in extractall
        numeric_owner=numeric_owner)
      File "/home/skgudwn34/anaconda3/envs/pytorch/lib/python3.7/tarfile.py", line 2042, in extract
        numeric_owner=numeric_owner)
      File "/home/skgudwn34/anaconda3/envs/pytorch/lib/python3.7/tarfile.py", line 2112, in _extract_member
        self.makefile(tarinfo, targetpath)
      File "/home/skgudwn34/anaconda3/envs/pytorch/lib/python3.7/tarfile.py", line 2161, in makefile
        copyfileobj(source, target, tarinfo.size, ReadError, bufsize)
      File "/home/skgudwn34/anaconda3/envs/pytorch/lib/python3.7/tarfile.py", line 247, in copyfileobj
        buf = src.read(bufsize)
      File "/home/skgudwn34/anaconda3/envs/pytorch/lib/python3.7/gzip.py", line 287, in read
        return self._buffer.read(size)
      File "/home/skgudwn34/anaconda3/envs/pytorch/lib/python3.7/_compression.py", line 68, in readinto
        data = self.read(len(byte_view))
      File "/home/skgudwn34/anaconda3/envs/pytorch/lib/python3.7/gzip.py", line 493, in read
        raise EOFError("Compressed file ended before the "
    EOFError: Compressed file ended before the end-of-stream marker was reached

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-fs_5h6ny/

I search the solution for days. People recommend upgrading setuptools, but it didn't work. How can I do to resolve the problem, please help. I look forward to your comment. Thank you.