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

Solver returns NoSolutionError with a constraint that does not exist #62

Closed
maxvt opened this issue Oct 7, 2016 · 5 comments
Closed

Comments

@maxvt
Copy link

maxvt commented Oct 7, 2016

Hi all, I'm having a Berkshelf issue that so far has been traced into the solver. This is with Berkshelf 4.3.5 but with Solve bumped to 3.0.1 and molinillo at 0.5.1.

This is a rather complex graph but the problem is simple. nginx-2.2.0 introduces a requirement for build-essential (~> 1.4). Another required package, homebrew-1.10.0, does not have any dependencies but the resolution fails with build-essential (>= 2.1.2) required by homebrew-1.10.0. I have ascertained, by prying into the artifacts of the graph just before Solve.it! is called, that the artifact with name homebrew and version 1.10.0 does not have any dependencies. Homebrew does introduce a dependency to build-essential in a later version.

Any suggestions on how to investigate this further?

@maxvt
Copy link
Author

maxvt commented Oct 7, 2016

Homebrew-relevant lines from the solver log:

Creating possibility state for homebrew (>= 0.0.0) (29 remaining)
Attempting to activate homebrew-2.1.2
Activated homebrew at homebrew-2.1.2
Requiring nested dependencies (build-essential (>= 2.1.2))
Creating possibility state for homebrew (= 1.10.0) (1 remaining)
Attempting to activate homebrew-1.10.0
Found existing spec (homebrew-2.1.2)
Activated homebrew at homebrew-1.10.0
Requiring nested dependencies ()
Creating possibility state for homebrew (>= 0.0.0) (29 remaining)
Attempting to activate homebrew-2.1.2
Found existing spec (homebrew-1.10.0)
Creating possibility state for build-essential (>= 2.1.2) (24 remaining)

@nmattam
Copy link

nmattam commented Jan 13, 2017

I ran into the same issue today with Berkshelf 4.3.5 and Solve 2.0.3. However, I was able to fix it when I locked Solve to 2.0.2.

@thommay
Copy link
Contributor

thommay commented Dec 19, 2017

First of all - my apologies that this has been open so long. Solve and molinilo have been pretty extensively changed since this bug was raised; are you still seeing this?

@maxvt
Copy link
Author

maxvt commented Dec 19, 2017

We abandoned our attempts to fix Molinillo and require the gecode solver in our Berksfile, which fixed our problem.

solver :gecode, :required

@nmattam
Copy link

nmattam commented Dec 20, 2017

I'm currently using Berkshelf 6.3.1 and solve 4.0.0 and not seeing this issue.

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

4 participants