allenai / scispacy

A full spaCy pipeline and models for scientific/biomedical documents.
https://allenai.github.io/scispacy/
Apache License 2.0
1.68k stars 225 forks source link

Models not published with the latest spacy version #400

Closed Zethson closed 2 years ago

Zethson commented 2 years ago

Hi,

I'm trying to add the models such as en_core_sci_sm into my environment, but the resolution fails. This is because the models were not built with the latest spacy version which already fixed this typer issue.

Would it be possible that you release new versions of the models with the latest spacy version?

Would be highly highly appreciated!

  SolverProblemError

      Because no versions of spacy match >3.0.1,<3.0.2 || >3.0.2,<3.0.3 || >3.0.3,<3.0.4 || >3.0.4,<3.0.5 || >3.0.5,<3.0.6 || >3.0.6,<3.0.7 || >3.0.7,<3.1.0
   and spacy (3.0.1) depends on typer (>=0.3.0,<0.4.0), spacy (>=3.0.1,<3.0.2 || >3.0.2,<3.0.3 || >3.0.3,<3.0.4 || >3.0.4,<3.0.5 || >3.0.5,<3.0.6 || >3.0.6,<3.0.7 || >3.0.7,<3.1.0) requires typer (>=0.3.0,<0.4.0).
      And because spacy (3.0.2) depends on typer (>=0.3.0,<0.4.0), spacy (>=3.0.1,<3.0.3 || >3.0.3,<3.0.4 || >3.0.4,<3.0.5 || >3.0.5,<3.0.6 || >3.0.6,<3.0.7 || >3.0.7,<3.1.0) requires typer (>=0.3.0,<0.4.0).
      And because spacy (3.0.3) depends on typer (>=0.3.0,<0.4.0)
   and spacy (3.0.4) depends on typer (>=0.3.0,<0.4.0), spacy (>=3.0.1,<3.0.5 || >3.0.5,<3.0.6 || >3.0.6,<3.0.7 || >3.0.7,<3.1.0) requires typer (>=0.3.0,<0.4.0).
      And because spacy (3.0.5) depends on typer (>=0.3.0,<0.4.0)
   and spacy (3.0.6) depends on typer (>=0.3.0,<0.4.0), spacy (>=3.0.1,<3.0.7 || >3.0.7,<3.1.0) requires typer (>=0.3.0,<0.4.0).
  (1) So, because en-core-sci-sm (0.4.0) depends on spacy (>=3.0.1,<3.1.0)
   and spacy (3.0.7) depends on typer (>=0.3.0,<0.4.0), en-core-sci-sm (0.4.0) requires typer (>=0.3.0,<0.4.0).

      Because no versions of typer match >0.3.0,<0.3.1 || >0.3.1,<0.3.2 || >0.3.2,<0.4.0
   and typer (0.3.0) depends on click (>=7.1.1,<7.2.0), typer (>=0.3.0,<0.3.1 || >0.3.1,<0.3.2 || >0.3.2,<0.4.0) requires click (>=7.1.1,<7.2.0).
      And because typer (0.3.1) depends on click (>=7.1.1,<7.2.0)
   and typer (0.3.2) depends on click (>=7.1.1,<7.2.0), typer (>=0.3.0,<0.4.0) requires click (>=7.1.1,<7.2.0).
      And because en-core-sci-sm (0.4.0) requires typer (>=0.3.0,<0.4.0) (1), en-core-sci-sm (0.4.0) requires click (>=7.1.1,<7.2.0)
      So, because ehrapy depends on both click (^8.0.2) and en-core-sci-sm (0.4.0), version solving failed.

  at ~/miniconda3/envs/ehrapy/lib/python3.8/site-packages/poetry/puzzle/solver.py:241 in _solve
      237│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240│         except SolveFailure as e:
    → 241│             raise SolverProblemError(e)
      242│ 
      243│         results = dict(
      244│             depth_first_search(
      245│                 PackageNode(self._package, packages), aggregate_package_nodes

Thanks.

dakinggg commented 2 years ago

if you can force it to install anyways, the models should work fine with the latest spacy version. I'll try to get to upgrading it sometime soon, but can't give you any timeline. sorry about that

dakinggg commented 2 years ago

The upgrade is done, except that I am having some issues with pypi. You can use master if you need the upgrade now.

Zethson commented 2 years ago

Thanks!