diff --git a/python/ucxx/ucxx/__init__.py b/python/ucxx/ucxx/__init__.py index 4f42d44a..fbb4c2d0 100644 --- a/python/ucxx/ucxx/__init__.py +++ b/python/ucxx/ucxx/__init__.py @@ -103,10 +103,13 @@ def _is_mig_device(handle): from ._version import __git_commit__, __version__ +__ucx_min_version__ = "1.15.0" __ucx_version__ = "%d.%d.%d" % get_ucx_version() -if get_ucx_version() < (1, 11, 1): +if get_ucx_version() < tuple(int(i) for i in __ucx_min_version__.split(".")): raise ImportError( f"Support for UCX {__ucx_version__} has ended. Please upgrade to " - "1.11.1 or newer." + f"{__ucx_min_version__} or newer. If you believe the wrong version " + "is being loaded, please check the path from where UCX is loaded " + "by rerunning with the environment variable `UCX_LOG_LEVEL=debug`." )