raise ReadError("file could not be opened successfully")

1,028 views
Skip to first unread message

Manjeet Kumar

unread,
Jun 6, 2017, 3:16:43 AM6/6/17
to gensim

I am trying to install gensim from source code, I am running $ "python setup.py install" from gensim home directory.


I am getting the below exception :


Extracting in /tmp/tmp4AhSdq

Traceback (most recent call last):

  File "setup.py", line 22, in <module>

    ez_setup.use_setuptools()

  File "/home/M28197/gensim-2.1.0/ez_setup.py", line 132, in use_setuptools

    return _do_download(version, download_base, to_dir, download_delay)

  File "/home/M28197/gensim-2.1.0/ez_setup.py", line 111, in _do_download

    _build_egg(egg, tarball, to_dir)

  File "/home/M28197/gensim-2.1.0/ez_setup.py", line 83, in _build_egg

    tar = tarfile.open(tarball)

  File "/usr/local/lib/python2.7/tarfile.py", line 1680, in open

    raise ReadError("file could not be opened successfully")

tarfile.ReadError: file could not be opened successfully



Please help !

Ivan Menshikh

unread,
Jun 6, 2017, 4:42:23 AM6/6/17
to gensim
Hi Manjeet,

Please try this method

git clone g...@github.com:RaRe-Technologies/gensim.git
cd gensim
python setup.py install
Reply all
Reply to author
Forward
0 new messages