diff --git a/python/chronos/src/bigdl/chronos/autots/__init__.py b/python/chronos/src/bigdl/chronos/autots/__init__.py index e2763cacaa1..64293534495 100644 --- a/python/chronos/src/bigdl/chronos/autots/__init__.py +++ b/python/chronos/src/bigdl/chronos/autots/__init__.py @@ -14,16 +14,14 @@ # limitations under the License. # import warnings -from bigdl.nano.utils.log4Error import invalidInputError import os if os.getenv("LD_PRELOAD", "null") != "null": - invalidInputError(False, - errMsg="Users of `bigdl.chronos.autots` should " - "unset bigdl-nano environment variables!", - fixMsg="Please run `source bigdl-nano-unset-env` " - "in your bash terminal") + warnings.warn("Users of `bigdl.chronos.autots` should " + "unset bigdl-nano environment variables!" + "Please run `source bigdl-nano-unset-env` " + "in your bash terminal") try: # TODO: make this a LazyImport