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

Upgrade SpaCy dependencies #145

Closed
Zethson opened this issue Oct 9, 2021 · 1 comment · Fixed by #146
Closed

Upgrade SpaCy dependencies #145

Zethson opened this issue Oct 9, 2021 · 1 comment · Fixed by #146

Comments

@Zethson
Copy link
Contributor

Zethson commented Oct 9, 2021

When trying to add MedCAT as a dependency to my project I run into:

Using version ^1.1.3 for medcat

Updating dependencies
Resolving dependencies... (29.8s)

  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).
      Because no versions of medcat match >1.1.3,<2.0.0
   and medcat (1.1.3) depends on spacy (>=3.0.1,<3.1.0), medcat (>=1.1.3,<2.0.0) requires spacy (>=3.0.1,<3.1.0).
      Thus, medcat (>=1.1.3,<2.0.0) requires typer (>=0.3.0,<0.4.0) or spacy (3.0.7).
  (1) So, because spacy (3.0.7) depends on typer (>=0.3.0,<0.4.0), medcat (>=1.1.3,<2.0.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 medcat (>=1.1.3,<2.0.0) requires typer (>=0.3.0,<0.4.0) (1), medcat (>=1.1.3,<2.0.0) requires click (>=7.1.1,<7.2.0)
      So, because ehrapy depends on both click (^8.0.2) and medcat (^1.1.3), version solving failed.

From what I can see you are pinning a version of spaCy which requires typer <=0.4.0
The latest spaCy allows for typer dependencies up to 0.5.0. This version has added support for click 8.x : fastapi/typer@b972981

Could you please upgrade the spaCy version, (test whether it works with Click 8.x) and release a new version?

This would be highly appreciated. Happy to provide more detailed if required. I urgently need this to work with my environment.

Thanks!

@Zethson Zethson changed the title Relax MedCAT dependency versions Upgrade SpaCy dependencies Oct 9, 2021
@w-is-h
Copy link
Collaborator

w-is-h commented Oct 9, 2021

Hi @Zethson happy to review/approve the PR if your tests go through.

mart-r pushed a commit to mart-r/MedCAT that referenced this issue Jun 14, 2023
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

Successfully merging a pull request may close this issue.

2 participants