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: 

Model serving keep relaunching

hulma
New Contributor II

Hello,

I tried to serve my model realtime. Model process keeps relaunching.

I am getting this error in the logs,

TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
 
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

how do i fix it?

4 REPLIES 4

fsyshawn
New Contributor II

Have exact same issue. cannot figure out why either.

hulma
New Contributor II

my workaround is to add protobuf<=3.20.1 in conda_env when i train the model in mlflow.

kushan-gunaseke
New Contributor II

for anyone who is looking for a proper solution,

https://stackoverflow.com/a/72493690/6194097

Anonymous
Not applicable

Hey there @Hulma Abdul Rahman​ 

Hope you are well.

Just wanted to see if you were able to find an answer to your question and would you like to mark an answer as best? It would be really helpful for the other members too.

Cheers!

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