Skip to content

kgtk 1.5.3 install conflict with spacy 3.5.3 #703

Description

@joelb-git
$ 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions