Databrick automl AssertionError:
Environment: Azure Databricks 5.3 (includes Apache Spark 2.4.0, Scala 2.11) Python Version 3
Refer to below notebook, I cannot import automl automl-databricks-local-01.ipynb Could you advise how to fix this issue.
azureml-sdk with automated ml Source: Upload Python Egg or PyPi PyPi Name: azureml-sdk[automl_databricks] Select Install Library
===========================
import azureml.core print("SDK Version:", azureml.core.VERSION)
SDK Version: 1.0.45
=========================
from azureml.train.automl import AutoMLConfig from azureml.train.automl.run import AutoMLRun
Error:
/databricks/python/lib/python3.5/site-packages/azureml/train/automl/automl.py in
/databricks/python/lib/python3.5/site-packages/azureml/automl/core/_vendor/automl/client/core/common/datasets.py in
/databricks/python/lib/python3.5/site-packages/azureml/automl/core/_vendor/automl/client/core/common/problem_info.py in
15 TimeConstraintEnforcement as time_constraint
/databricks/python/lib/python3.5/site-packages/azureml/automl/core/_vendor/automl/client/core/common/resource_limits.py in
/databricks/python/lib/python3.5/site-packages/azureml/automl/core/_vendor/automl/client/core/common/resource_limits.py in SafeEnforceLimits() 57 except ImportError as e: 58 # this is the error we're expecting ---> 59 assert str(e) == "No module named 'resource'" 60 ok = False 61
AssertionError:
@kritdikoon are you still facing this issue? I tried recreating a new cluster today and was not able to reproduce your error. Can you please delete the SDK package and try attaching azureml-sdk[automl_databricks] to the same cluster? Feel free to reach out to [email protected] if you have additional questions.
Closed per Aniththa