Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

bug: ERROR: ResolutionImpossible #224

@AnkS4

Description

@AnkS4

Describe the bug
Installation error
Model/procedure: $ pip install nlp-architect

To Reproduce
Steps to reproduce the behavior:
$ pip install nlp-architect

Expected behavior
No Errors

**Environment setup: **

  • OS (Linux/Mac OS): GNU/Linux
  • Python version: Python 3.9.6
  • Backend: pip

Log:

Collecting nlp-architect
  Using cached nlp_architect-0.5.4-py3-none-any.whl (308 kB)
Collecting h5py
  Using cached h5py-3.3.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (4.5 MB)
Collecting requests
  Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
     |████████████████████████████████| 62 kB 56 kB/s 
Collecting gensim
  Using cached gensim-4.0.1-cp39-cp39-linux_x86_64.whl
Collecting scipy
  Downloading scipy-1.7.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (28.4 MB)
     |████████████████████████████████| 28.4 MB 871 kB/s 
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting numpy==1.16.4
  Using cached numpy-1.16.4.zip (5.1 MB)
Collecting dynet==2.1
  Using cached dyNET-2.1.tar.gz (454 kB)
    ERROR: Command errored out with exit status 1:
     command: /home/anks/STEALTH/ENV/absa_env/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-832t4ncx/dynet_ec03a5a10dc14ba6bb53d279dc810a9e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-832t4ncx/dynet_ec03a5a10dc14ba6bb53d279dc810a9e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-pj_foilz
         cwd: /tmp/pip-install-832t4ncx/dynet_ec03a5a10dc14ba6bb53d279dc810a9e/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-832t4ncx/dynet_ec03a5a10dc14ba6bb53d279dc810a9e/setup.py", line 17, in <module>
        from Cython.Distutils import build_ext as _build_ext
    ModuleNotFoundError: No module named 'Cython'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/22/8e/148ecf0ec4ffce667e84abd6aa134bbff1f73cbb99c92c198149f122889e/dyNET-2.1.tar.gz#sha256=d0f58aaf3926da24baba6e3e76cb3d090c8b6d359196ce138b11faa291b2ec07 (from https://pypi.org/simple/dynet/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Collecting nlp-architect
  Using cached nlp_architect-0.5.3-py3-none-any.whl (301 kB)
  Using cached nlp_architect-0.5.2-py3-none-any.whl (978 kB)
Collecting tqdm
  Using cached tqdm-4.61.2-py2.py3-none-any.whl (76 kB)
Collecting wordfreq
  Downloading wordfreq-2.5.0.tar.gz (56.8 MB)
     |████████████████████████████████| 56.8 MB 50 kB/s 
Collecting future
  Downloading future-0.18.2.tar.gz (829 kB)
     |████████████████████████████████| 829 kB 71 kB/s 
Collecting python-dateutil<2.8.1
  Downloading python_dateutil-2.8.0-py2.py3-none-any.whl (226 kB)
     |████████████████████████████████| 226 kB 945 kB/s 
Collecting ftfy
  Downloading ftfy-6.0.3.tar.gz (64 kB)
     |████████████████████████████████| 64 kB 226 kB/s 
Collecting termcolor
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)
Collecting numpy<1.17
  Using cached numpy-1.16.6.zip (5.1 MB)
Collecting hyperopt
  Downloading hyperopt-0.2.5-py2.py3-none-any.whl (965 kB)
     |████████████████████████████████| 965 kB 112 kB/s 
Collecting pywikibot
  Downloading pywikibot-6.4.0.tar.gz (506 kB)
     |████████████████████████████████| 506 kB 422 kB/s 
Collecting nltk
  Downloading nltk-3.6.2-py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 696 kB/s 
Collecting tensorflow-hub
  Downloading tensorflow_hub-0.12.0-py2.py3-none-any.whl (108 kB)
     |████████████████████████████████| 108 kB 330 kB/s 
Collecting nlp-architect
  Using cached nlp_architect-0.5.1-py3-none-any.whl (1.6 MB)
Collecting pillow
  Downloading Pillow-8.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.0 MB)
     |████████████████████████████████| 3.0 MB 182 kB/s 
Collecting regex==2018.02.21
  Downloading regex-2018.02.21.tar.gz (620 kB)
     |████████████████████████████████| 620 kB 475 kB/s 
Collecting nlp-architect
  Downloading nlp_architect-0.5-py3-none-any.whl (1.2 MB)
     |████████████████████████████████| 1.2 MB 107 kB/s 
  Downloading nlp_architect-0.4.post3-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 102 kB/s 
Collecting spacy
  Downloading spacy-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.5 MB)
     |████████████████████████████████| 6.5 MB 857 kB/s 
Collecting nlp-architect
  Downloading nlp_architect-0.4.post2-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 70 kB/s 
Collecting dynet==2.0.2
  Downloading dyNET-2.0.2.tar.gz (388 kB)
     |████████████████████████████████| 388 kB 557 kB/s 
    ERROR: Command errored out with exit status 1:
     command: /home/anks/STEALTH/ENV/absa_env/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-832t4ncx/dynet_eb19eec4e56248fdb3fef59af0805ab5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-832t4ncx/dynet_eb19eec4e56248fdb3fef59af0805ab5/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-etz16c1n
         cwd: /tmp/pip-install-832t4ncx/dynet_eb19eec4e56248fdb3fef59af0805ab5/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-832t4ncx/dynet_eb19eec4e56248fdb3fef59af0805ab5/setup.py", line 17, in <module>
        from Cython.Distutils import build_ext as _build_ext
    ModuleNotFoundError: No module named 'Cython'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/01/10/cfc00197733dd7cf52d9e00c42017ebe7e818653980bccfe6f241ea5b79a/dyNET-2.0.2.tar.gz#sha256=d09f3799e3ad19572e9adec2784b0330a5d96bf6914a20858cd14b71e1482213 (from https://pypi.org/simple/dynet/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Collecting nlp-architect
  Downloading nlp_architect-0.4.post1-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 611 kB/s 
  Downloading nlp_architect-0.4-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 190 kB/s 
  Downloading nlp_architect-0.3.1-py3-none-any.whl (1.0 MB)
     |████████████████████████████████| 1.0 MB 598 kB/s 
Collecting pytest-mock
  Downloading pytest_mock-3.6.1-py3-none-any.whl (12 kB)
ERROR: Cannot install nlp-architect==0.3.1, nlp-architect==0.4, nlp-architect==0.4.post1, nlp-architect==0.4.post2, nlp-architect==0.4.post3, nlp-architect==0.5, nlp-architect==0.5.1, nlp-architect==0.5.2, nlp-architect==0.5.3 and nlp-architect==0.5.4 because these package versions have conflicting dependencies.

The conflict is caused by:
    nlp-architect 0.5.4 depends on dynet==2.1
    nlp-architect 0.5.3 depends on tensorflow==1.15.0
    nlp-architect 0.5.2 depends on dynet==2.1
    nlp-architect 0.5.1 depends on dynet==2.1
    nlp-architect 0.5 depends on dynet==2.1
    nlp-architect 0.4.post3 depends on dynet==2.1
    nlp-architect 0.4.post2 depends on dynet==2.0.2
    nlp-architect 0.4.post1 depends on dynet==2.0.2
    nlp-architect 0.4 depends on dynet==2.0.2
    nlp-architect 0.3.1 depends on dynet==2.0.2

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions