cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
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
Databricks Employee
Databricks Employee

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
Databricks Employee
Databricks Employee

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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group