kgtk icon indicating copy to clipboard operation
kgtk copied to clipboard

kgtk 1.5.3 install conflict with spacy 3.5.3

Open joelb-git opened this issue 1 year ago • 0 comments

$ cat environment-buggy.yml
name: kgkt-spacy-conflict
channels:
  - conda-forge
  - defaults
dependencies:
  - python==3.9.13
  - pip==23.0.1
  - pip:
    - spacy==3.5.3
    - kgtk==1.5.3

$ conda env create -f environment-buggy.yml
...
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of spacy to determine which version is compatible with other requirements. This could take a while.

The conflict is caused by:
    spacy 3.5.3 depends on thinc<8.2.0 and >=8.1.8
    kgtk 1.5.3 depends on thinc==7.4.0

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


Pip subprocess error:
ERROR: Cannot install -r /Users/joelb/views/knic-notebooks/condaenv.r5f23yfg.requirements.txt (line 1) and -r /Users/joelb/views/knic-notebooks/condaenv.r5f23yfg.requirements.txt (line 2) because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

failed

CondaEnvException: Pip failed

A workaround which seems work (for install and runtime) is to install kgtk first with conda/pip, then install spacy from the command line with pip.

joelb-git avatar Jun 22 '23 15:06 joelb-git