cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
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!

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.