Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions boa/core/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,12 @@ def solve(self, specs, pkg_cache_path=None):
pstring = "\n".join(["- " + el for el in pstring.split("\n")])
error_string += f"\nThe reported errors are:\n{pstring}"

# This might be the cause of segfaults, that's why it's commented out
# if (
# hasattr(api_solver, "explain_problems")
# # can cause errors in explain_problems
# and "unsupported request" not in pstring
# ):
# error_string += f"\n\n{api_solver.explain_problems()}"
if (
hasattr(api_solver, "explain_problems")
# can cause errors in explain_problems
and "unsupported request" not in pstring
):
error_string += f"\n\n{api_solver.explain_problems()}"

print(error_string)
raise RuntimeError("Solver could not find solution." + error_string)
Expand Down