diff --git a/src/sagemaker/workflow/utilities.py b/src/sagemaker/workflow/utilities.py index 4fc98eb29a..961972da4d 100644 --- a/src/sagemaker/workflow/utilities.py +++ b/src/sagemaker/workflow/utilities.py @@ -21,7 +21,15 @@ import hashlib from urllib.parse import unquote, urlparse from contextlib import contextmanager -from _hashlib import HASH as Hash + +try: + # _hashlib is an internal python module, and is not present in + # statically linked interpreters. + from _hashlib import HASH as Hash +except ImportError: + import typing + + Hash = typing.Any from sagemaker.utils import base_from_name from sagemaker.workflow.parameters import Parameter