pythonboilerpipe

pip install boilerpipe failed with tarfile.ReadError: empty file


I'm try to install boilerpipe through pip but it failed.

here is the log.

Complete output from command python setup.py egg_info:

Traceback (most recent call last):
  File "<string>", line 20, in <module>
  File "/tmp/pip-build-J2gFYC/boilerpipe/setup.py", line 27, in <module>
    download_jars(datapath=DATAPATH)
  File "/tmp/pip-build-J2gFYC/boilerpipe/setup.py", line 21, in download_jars
    tar = tarfile.open(tgz_name, mode='r:gz')
  File "/usr/lib/python2.7/tarfile.py", line 1678, in open
    return func(name, filemode, fileobj, **kwargs)
  File "/usr/lib/python2.7/tarfile.py", line 1727, in gzopen
    **kwargs)
  File "/usr/lib/python2.7/tarfile.py", line 1705, in taropen
    return cls(name, mode, fileobj, **kwargs)
  File "/usr/lib/python2.7/tarfile.py", line 1574, in __init__
    self.firstmember = self.next()
  File "/usr/lib/python2.7/tarfile.py", line 2334, in next
    raise ReadError("empty file")
tarfile.ReadError: empty file

----------------------------------------

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


Solution

  • Sometimes the URL from where the GZ file should be downloaded returns 404. The best way to install boilerpipe in such case is: