cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
cancel
Showing results for 
Search instead for 
Did you mean: 

Import mlflow Error

tanjil
New Contributor III

Hello, 

I am trying to replicate this motebook in my environment: 

mlflow-end-to-end-example - Databricks

 

However, I am getting the following error when I run "import mlflow": 

"TypeError: bases must be types"

How can I solve this issue? 

Thank you, 

Tanjil 

3 REPLIES 3

Walter_C
Valued Contributor II
Valued Contributor II

Can you share the specific cell of the notebook where you are receiving this error? Have you modified the code or it is the same? Do you have any particular libraries installed on the cluster you are using for the testing?

tanjil
New Contributor III

The error is generated in cell 21, in the line "import mlflow".

No modifications have been made to the code.
Cluster details: 
10.4 LTS (includes Apache Spark 3.2.1, Scala 2.12) 

Kumaran
Valued Contributor III
Valued Contributor III

Hello @tanjil 

 

Thank you for contacting databricks community support. Could you check what version of protobuf you have?

If you are using 10.4 ML cluster, the MLflow 1.x is not compatible with protobuf 4.x. The default version of protobuf in MLR 10.4 is 3.17.2. We recommend that you can either downgrade protobuf to 3.17.2 or upgrade MLflow to 2.x. Thanks

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.