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
Valued Contributor III
Valued Contributor III

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

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!