From 207f4ef7b1414b8b766ab8023a59909d633f3040 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Thu, 29 Jan 2026 17:42:55 +0100 Subject: [PATCH] Fix len() on integer when raising EasyBuildError --- easybuild/easyblocks/p/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easybuild/easyblocks/p/python.py b/easybuild/easyblocks/p/python.py index 594143b06e0..32b69db001c 100644 --- a/easybuild/easyblocks/p/python.py +++ b/easybuild/easyblocks/p/python.py @@ -394,7 +394,7 @@ def _inject_patch_ctypes_ld_library_path(self): else: msg = "The length of 'checksums' (%s) is not equal to the total amount of sources (%s) + patches (%s). " msg += "Did you forget to add a checksum for patch_ctypes_ld_library_path?" - raise EasyBuildError(msg, len(checksums), len(sources), len(len_patches + 1)) + raise EasyBuildError(msg, len(checksums), len(sources), len_patches + 1) # If LD_LIBRARY_PATH is filtered, but no patch is specified, warn the user that his may not work elif ( 'LD_LIBRARY_PATH' in filtered_env_vars and