From bf38d9efb2aabd62e894fb8e6c7bea6335fda928 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Wed, 16 Oct 2024 13:31:58 -0400 Subject: [PATCH] rf(py314): Replace deprecated pkgutil.find_loader --- fmriprep/cli/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fmriprep/cli/parser.py b/fmriprep/cli/parser.py index 26506d63..a734c454 100644 --- a/fmriprep/cli/parser.py +++ b/fmriprep/cli/parser.py @@ -794,9 +794,9 @@ def parse_args(args=None, namespace=None): config.from_dict(vars(opts), init=['nipype']) if not config.execution.notrack: - import pkgutil + import importlib.util - if pkgutil.find_loader('sentry_sdk') is None: + if importlib.util.find_spec('sentry_sdk') is None: config.execution.notrack = True config.loggers.cli.warning('Telemetry disabled because sentry_sdk is not installed.') else: