diff --git a/boa/core/solver.py b/boa/core/solver.py index ef7cf9d1..ad40aa75 100644 --- a/boa/core/solver.py +++ b/boa/core/solver.py @@ -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)