Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kgtk 1.5.3 install conflict with spacy 3.5.3 #703

Open
joelb-git opened this issue Jun 22, 2023 · 0 comments
Open

kgtk 1.5.3 install conflict with spacy 3.5.3 #703

joelb-git opened this issue Jun 22, 2023 · 0 comments

Comments

@joelb-git
Copy link

$ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant