Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile protocol buffers #18

Closed
padmalcom opened this issue Jun 23, 2021 · 2 comments
Closed

Cannot compile protocol buffers #18

padmalcom opened this issue Jun 23, 2021 · 2 comments

Comments

@padmalcom
Copy link

Hi, thanks for your framework. I followed the installation guide but got problems when compiling the protocol buffers. I followed the instructions exactly as you specified, except that I'm working on CentOS whereas you seem to work in Ubuntu.

(deeplab2) [user1@localhost deeplab2]$ pwd
/home/user1/deeplab2/deeplab2
(deeplab2) [user1@localhost deeplab2]$ cd ..
(deeplab2) [user1@localhost deeplab2]$ ls
cocoapi deeplab2 init.sh models
(deeplab2) [user1@localhost deeplab2]$ protoc deeplab2/*.proto --python_out=.
deeplab2/model.proto:178:3: Expected "required", "optional", or "repeated".
deeplab2/model.proto:178:27: Missing field number.
deeplab2/config.proto: Import "deeplab2/model.proto" was not found or had errors.
deeplab2/config.proto:31:12: "ModelOptions" is not defined.

Is it possible that I use the wrong protoc version?

(deeplab2) [user1@localhost deeplab2]$ protoc --version
libprotoc 2.5.0

@markweberdev
Copy link
Collaborator

Hi,

The protoc version could be the issue. I am running 3.6.1. Please have a look here to find newer versions. If this solves the compilation error, please let us know so we can update the requirements regarding the protobuf compiler.

Best,
Mark

@padmalcom
Copy link
Author

Hi Mark,
thank you, I just compiled protoc from github and could get rid of the error messages.

(deeplab2) [user1@localhost protobuf]$ /usr/local/bin/protoc --version
libprotoc 3.17.3
(deeplab2) [user1@localhost deeplab2]$ /usr/local/bin/protoc deeplab2/*.proto --python_out=.
(deeplab2) [user1@localhost deeplab2]$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants