Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't build proto file into descriptor pool

I am working on AI project, but I am still not very experienced in python.

I am trying to build and test this project.

I followed all instructions, but I still get this error when i try to launch the python script :

TypeError: Couldn't build proto file into descriptor pool! Invalid proto descriptor for file "tensorflow_serving/apis/classification.proto": tensorflow_serving/apis/classification.proto: Import "tensorflow_serving/apis/model.proto" has not been loaded. tensorflow.serving.ClassificationRequest.model_spec: "tensorflow.serving.ModelSpec" seems to be defined in "model.proto", which is not imported by "tensorflow_serving/apis/classification.proto". To use it here, please add the necessary import.

Would any one have an idea about what I missed ?

like image 811
kamel B Avatar asked Sep 27 '17 19:09

kamel B


1 Answers

I ran into a simular issue, this seems to be caused by upgrading tensorflow and non compatible old dependencies.

You can try to create a clean enviroment (depending on your system). For me it was a uncompatible version of tensorboard (that was installed with Anaconda and not pip). A uninstall / or reinstall fixed the issue.

like image 105
fehrlich Avatar answered Sep 18 '22 11:09

fehrlich