I'm trying to compile a proto file with the following command:
protoc -I=. --python_out=. ./message.proto --proto_path=.
But I'm getting this error:
--proto_path passed empty directory name. (Use "." for current directory.)
What to do?
I'm trying to compile a proto file with the following command:
protoc -I=. --python_out=. ./message.proto --proto_path=.
But I'm getting this error:
--proto_path passed empty directory name. (Use "." for current directory.)
What to do?
The command works for me.
NOTE
-I==--proto_pathso using both with the same value is redundant
One 'wrinkle' with protoc is that the protobuf files must be encapsulated by a proto_path.
So, in your case, the current directory must contain a valid message.proto file, both for ./message.proto to be a valid reference and because your --proto_path includes the current directory.