cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error: from databricks import lakehouse_monitoring

Puent3
New Contributor II
We are using the following import: "from databricks import lakehouse_monitoring". We are receiving this error:
ImportError: cannot import name 'lakehouse_monitoring' from 'databricks.sdk' (/databricks/python/lib/python3.11/site-packages/databricks/sdk/__init__.py)
 
Puent3_0-1738878577910.png

 

It was working fine until January 22nd, and from that day on, it started throwing the following error without us having modified anything
We have been investigating and haven’t found any information indicating that the lakehouse_monitoring module has been deprecated or modified. The runtime in our cluster is: Databricks Runtime15.4.
If you could shed some light on this, we would appreciate it
Thank you in advance
4 REPLIES 4

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @Puent3,

Can you try installing below dependency first and then import the module? 

Hi @Alberto_Umana,

I get the same error, installing jinja2

Puent3_0-1738914144355.png

 

MadhuB
Contributor III

I wasnt able to find that module. However there are options under sdk. Refer to Lakehouse monitoring SDK reference 

 

%python

import databricks
print(dir(databricks.sdk))

 

Puent3
New Contributor II

Hi @MadhuB,

It seems that it is no longer in the Databricks module, but I would like to understand why this is happening and try to keep the implemented code.

Thanks for your help.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now