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

Cannot install package: resolution impossible because optax has new version #613

Closed
IamJeffG opened this issue Feb 5, 2024 · 2 comments
Closed

Comments

@IamJeffG
Copy link

IamJeffG commented Feb 5, 2024

I came in this morning and can no longer install the perch package. I tracked it down to this commit in a transitive dependency: google-deepmind/optax@beae523

In short:

  • chirp requires optax < 0.2.0
  • chirp requires scenic
  • scenic requires the latest version of optax, which is 0.2.0.dev, i.e. conflicting with chirp's own requirement.

scenic doesn't have tagged releases that perch can specify, so a resolution to this issue is probably going to have to require the scenic authors to constrain their own dependency on optax (unlikely?) or say perch itself can accept optax 0.2.*.

$ pip install "chirp @ git+https://github.com/google-research/perch.git@77edeff5800be0cc1af81bf8c078f70a1ad82f79"
<snip a bunch of logs>
ERROR: Cannot install chirp and chirp==0.1.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    chirp 0.1.0 depends on optax<0.2.0 and >=0.1.7
    flax 0.7.4 depends on optax
    scenic 0.0.1 depends on optax 0.2.0.dev0 (from git+https://github.com/google-deepmind/optax.git@main)

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

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
IamJeffG added a commit to IamJeffG/scenic that referenced this issue Feb 6, 2024
IamJeffG added a commit to IamJeffG/scenic that referenced this issue Feb 6, 2024
IamJeffG added a commit to ConservationMetrics/perch that referenced this issue Feb 7, 2024
IamJeffG added a commit to ConservationMetrics/perch that referenced this issue Feb 12, 2024
@sdenton4
Copy link
Collaborator

BTW, I believe this is fixed by a recent commit:
3cdb69a

@IamJeffG
Copy link
Author

Confirmed fixed, closing.

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

2 participants