From b2f8cd22c3dbbd459bcf82db6a582f66631c9721 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Fri, 4 Apr 2025 19:38:38 +0200 Subject: [PATCH] Update the "missing attribute in recipe" message (#49874) Multiple build systems have been part of Spack for a long time now, and they are rarely the cause of a missing attribute. Signed-off-by: Massimiliano Culpo --- lib/spack/spack/build_environment.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index fe142a213dc..bd1898ccb42 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -1189,11 +1189,9 @@ def _setup_pkg_and_run( if isinstance(e, (spack.multimethod.NoSuchMethodError, AttributeError)): process = "test the installation" if context == "test" else "build from sources" error_msg = ( - "The '{}' package cannot find an attribute while trying to {}. " - "This might be due to a change in Spack's package format " - "to support multiple build-systems for a single package. You can fix this " - "by updating the {} recipe, and you can also report the issue as a bug. " - "More information at https://spack.readthedocs.io/en/latest/packaging_guide.html#installation-procedure" + "The '{}' package cannot find an attribute while trying to {}. You can fix this " + "by updating the {} recipe, and you can also report the issue as a build-error or " + "a bug at https://github.com/spack/spack/issues" ).format(pkg.name, process, context) error_msg = colorize("@*R{{{}}}".format(error_msg)) error_msg = "{}\n\n{}".format(str(e), error_msg)