aboSamoor / polyglot

Multilingual text (NLP) processing toolkit
http://polyglot-nlp.com
Other
2.31k stars 337 forks source link

The installation of your repository giving error: #117

Closed JafferWilson closed 6 years ago

JafferWilson commented 7 years ago
python setup.py install
c:\python35\lib\site-packages\setuptools\dist.py:285: UserWarning: Normalizing '16.07.04' to '16.7.4'
  normalized_version,
running install
running bdist_egg
running egg_info
creating polyglot.egg-info
writing dependency_links to polyglot.egg-info\dependency_links.txt
writing polyglot.egg-info\PKG-INFO
writing requirements to polyglot.egg-info\requires.txt
writing entry points to polyglot.egg-info\entry_points.txt
writing top-level names to polyglot.egg-info\top_level.txt
writing manifest file 'polyglot.egg-info\SOURCES.txt'
reading manifest file 'polyglot.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
writing manifest file 'polyglot.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\polyglot
copying polyglot\base.py -> build\lib\polyglot
copying polyglot\decorators.py -> build\lib\polyglot
copying polyglot\downloader.py -> build\lib\polyglot
copying polyglot\load.py -> build\lib\polyglot
copying polyglot\mixins.py -> build\lib\polyglot
copying polyglot\text.py -> build\lib\polyglot
copying polyglot\utils.py -> build\lib\polyglot
copying polyglot\__init__.py -> build\lib\polyglot
copying polyglot\__main__.py -> build\lib\polyglot
creating build\lib\polyglot\detect
copying polyglot\detect\base.py -> build\lib\polyglot\detect
copying polyglot\detect\langids.py -> build\lib\polyglot\detect
copying polyglot\detect\__init__.py -> build\lib\polyglot\detect
creating build\lib\polyglot\tokenize
copying polyglot\tokenize\base.py -> build\lib\polyglot\tokenize
copying polyglot\tokenize\__init__.py -> build\lib\polyglot\tokenize
creating build\lib\polyglot\mapping
copying polyglot\mapping\base.py -> build\lib\polyglot\mapping
copying polyglot\mapping\embeddings.py -> build\lib\polyglot\mapping
copying polyglot\mapping\expansion.py -> build\lib\polyglot\mapping
copying polyglot\mapping\__init__.py -> build\lib\polyglot\mapping
creating build\lib\polyglot\tag
copying polyglot\tag\base.py -> build\lib\polyglot\tag
copying polyglot\tag\__init__.py -> build\lib\polyglot\tag
creating build\lib\polyglot\transliteration
copying polyglot\transliteration\base.py -> build\lib\polyglot\transliteration
copying polyglot\transliteration\__init__.py -> build\lib\polyglot\transliteration
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\polyglot
copying build\lib\polyglot\base.py -> build\bdist.win-amd64\egg\polyglot
copying build\lib\polyglot\decorators.py -> build\bdist.win-amd64\egg\polyglot
creating build\bdist.win-amd64\egg\polyglot\detect
copying build\lib\polyglot\detect\base.py -> build\bdist.win-amd64\egg\polyglot\detect
copying build\lib\polyglot\detect\langids.py -> build\bdist.win-amd64\egg\polyglot\detect
copying build\lib\polyglot\detect\__init__.py -> build\bdist.win-amd64\egg\polyglot\detect
copying build\lib\polyglot\downloader.py -> build\bdist.win-amd64\egg\polyglot
copying build\lib\polyglot\load.py -> build\bdist.win-amd64\egg\polyglot
creating build\bdist.win-amd64\egg\polyglot\mapping
copying build\lib\polyglot\mapping\base.py -> build\bdist.win-amd64\egg\polyglot\mapping
copying build\lib\polyglot\mapping\embeddings.py -> build\bdist.win-amd64\egg\polyglot\mapping
copying build\lib\polyglot\mapping\expansion.py -> build\bdist.win-amd64\egg\polyglot\mapping
copying build\lib\polyglot\mapping\__init__.py -> build\bdist.win-amd64\egg\polyglot\mapping
copying build\lib\polyglot\mixins.py -> build\bdist.win-amd64\egg\polyglot
creating build\bdist.win-amd64\egg\polyglot\tag
copying build\lib\polyglot\tag\base.py -> build\bdist.win-amd64\egg\polyglot\tag
copying build\lib\polyglot\tag\__init__.py -> build\bdist.win-amd64\egg\polyglot\tag
copying build\lib\polyglot\text.py -> build\bdist.win-amd64\egg\polyglot
creating build\bdist.win-amd64\egg\polyglot\tokenize
copying build\lib\polyglot\tokenize\base.py -> build\bdist.win-amd64\egg\polyglot\tokenize
copying build\lib\polyglot\tokenize\__init__.py -> build\bdist.win-amd64\egg\polyglot\tokenize
creating build\bdist.win-amd64\egg\polyglot\transliteration
copying build\lib\polyglot\transliteration\base.py -> build\bdist.win-amd64\egg\polyglot\transliteration
copying build\lib\polyglot\transliteration\__init__.py -> build\bdist.win-amd64\egg\polyglot\transliteration
copying build\lib\polyglot\utils.py -> build\bdist.win-amd64\egg\polyglot
copying build\lib\polyglot\__init__.py -> build\bdist.win-amd64\egg\polyglot
copying build\lib\polyglot\__main__.py -> build\bdist.win-amd64\egg\polyglot
byte-compiling build\bdist.win-amd64\egg\polyglot\base.py to base.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\decorators.py to decorators.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\detect\base.py to base.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\detect\langids.py to langids.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\detect\__init__.py to __init__.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\downloader.py to downloader.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\load.py to load.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\mapping\base.py to base.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\mapping\embeddings.py to embeddings.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\mapping\expansion.py to expansion.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\mapping\__init__.py to __init__.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\mixins.py to mixins.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\tag\base.py to base.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\tag\__init__.py to __init__.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\text.py to text.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\tokenize\base.py to base.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\tokenize\__init__.py to __init__.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\transliteration\base.py to base.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\transliteration\__init__.py to __init__.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\utils.py to utils.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\__init__.py to __init__.cpython-35.pyc
byte-compiling build\bdist.win-amd64\egg\polyglot\__main__.py to __main__.cpython-35.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying polyglot.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying polyglot.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying polyglot.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying polyglot.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying polyglot.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying polyglot.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying polyglot.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
creating dist
creating 'dist\polyglot-16.7.4-py3.5.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing polyglot-16.7.4-py3.5.egg
creating c:\python35\lib\site-packages\polyglot-16.7.4-py3.5.egg
Extracting polyglot-16.7.4-py3.5.egg to c:\python35\lib\site-packages
Adding polyglot 16.7.4 to easy-install.pth file
Installing polyglot-script.py script to c:\python35\Scripts
Installing polyglot.exe script to c:\python35\Scripts

Installed c:\python35\lib\site-packages\polyglot-16.7.4-py3.5.egg
Processing dependencies for polyglot==16.7.4
Searching for PyICU>=1.8
Reading https://pypi.python.org/simple/PyICU/
Best match: PyICU 1.9.7
Downloading https://pypi.python.org/packages/6e/88/f42a1297909ca6d9113ba37b37067011ae29432fe592fdd98cf52ad23b77/PyICU-1.9.7.tar.gz#md5=7656f5cc53a7c18b40e653d6eefdee14
Processing PyICU-1.9.7.tar.gz
Writing C:\Users\LENOVO~1\AppData\Local\Temp\easy_install-n8icnhli\PyICU-1.9.7\setup.cfg
Running PyICU-1.9.7\setup.py -q bdist_egg --dist-dir C:\Users\LENOVO~1\AppData\Local\Temp\easy_install-n8icnhli\PyICU-1.9.7\egg-dist-tmp-h2sb_fjf
Traceback (most recent call last):
  File "C:\Users\LENOVO~1\AppData\Local\Temp\easy_install-n8icnhli\PyICU-1.9.7\setup.py", line 12, in <module>

  File "c:\python35\lib\os.py", line 681, in __getitem__
    raise KeyError(key) from None
KeyError: 'ICU_VERSION'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\LENOVO~1\AppData\Local\Temp\easy_install-n8icnhli\PyICU-1.9.7\setup.py", line 26, in <module>
    ]
  File "c:\python35\lib\subprocess.py", line 629, in check_output
    **kwargs).stdout
  File "c:\python35\lib\subprocess.py", line 696, in run
    with Popen(*popenargs, **kwargs) as process:
  File "c:\python35\lib\subprocess.py", line 950, in __init__
    restore_signals, start_new_session)
  File "c:\python35\lib\subprocess.py", line 1220, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 152, in save_modules
    yield saved
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 64, in save_path
    yield saved
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 55, in save_argv
    yield saved
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 82, in override_temp
    yield
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 92, in pushd
    yield saved
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 237, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 267, in run
    return func()
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 236, in runner
    _execfile(setup_script, ns)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 46, in _execfile
    exec(code, globals, locals)
  File "C:\Users\LENOVO~1\AppData\Local\Temp\easy_install-n8icnhli\PyICU-1.9.7\setup.py", line 33, in <module>
    author='Rami Al-Rfou',
RuntimeError:
Please set the ICU_VERSION environment variable to the version of
ICU you have installed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 121, in <module>
    tests_require=test_requirements,
  File "c:\python35\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "c:\python35\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "c:\python35\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "c:\python35\lib\site-packages\setuptools\command\install.py", line 67, in run
    self.do_egg_install()
  File "c:\python35\lib\site-packages\setuptools\command\install.py", line 117, in do_egg_install
    cmd.run()
  File "c:\python35\lib\site-packages\setuptools\command\easy_install.py", line 380, in run
    self.easy_install(spec, not self.no_deps)
  File "c:\python35\lib\site-packages\setuptools\command\easy_install.py", line 610, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File "c:\python35\lib\site-packages\setuptools\command\easy_install.py", line 661, in install_item
    self.process_distribution(spec, dist, deps)
  File "c:\python35\lib\site-packages\setuptools\command\easy_install.py", line 709, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 836, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 1081, in best_match
    return self.obtain(req, installer)
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 1093, in obtain
    return installer(requirement)
  File "c:\python35\lib\site-packages\setuptools\command\easy_install.py", line 629, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "c:\python35\lib\site-packages\setuptools\command\easy_install.py", line 659, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "c:\python35\lib\site-packages\setuptools\command\easy_install.py", line 842, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "c:\python35\lib\site-packages\setuptools\command\easy_install.py", line 1070, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "c:\python35\lib\site-packages\setuptools\command\easy_install.py", line 1056, in run_setup
    run_setup(setup_script, args)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 240, in run_setup
    raise
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 176, in save_pkg_resources_state
    yield saved
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 164, in save_modules
    saved_exc.resume()
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 139, in resume
    compat.reraise(type, exc, self._tb)
  File "c:\python35\lib\site-packages\setuptools\compat.py", line 65, in reraise
    raise value.with_traceback(tb)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 152, in save_modules
    yield saved
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 64, in save_path
    yield saved
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 55, in save_argv
    yield saved
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 82, in override_temp
    yield
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 92, in pushd
    yield saved
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 193, in setup_context
    yield
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 237, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 267, in run
    return func()
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 236, in runner
    _execfile(setup_script, ns)
  File "c:\python35\lib\site-packages\setuptools\sandbox.py", line 46, in _execfile
    exec(code, globals, locals)
  File "C:\Users\LENOVO~1\AppData\Local\Temp\easy_install-n8icnhli\PyICU-1.9.7\setup.py", line 33, in <module>
    author='Rami Al-Rfou',
RuntimeError:
Please set the ICU_VERSION environment variable to the version of
ICU you have installed.

c:\Python27\python.exe setup.py install
Traceback (most recent call last):
  File "setup.py", line 14, in <module>
    with open('README.rst', encoding="utf-8") as readme_file:
TypeError: 'encoding' is an invalid keyword argument for this function

Kindly help.