What version of protoc is required ?
lovekesh-thakur opened this issue · 0 comments
While running the command
./caffe-enet/build/tools/caffe train -solver ./prototxts/enet_solver_encoder.prototxt
I am getting the following error.
Traceback (most recent call last):
File "/home/madan/git_repos/ENet/caffe-enet/python/spatial_dropout.py", line 3, in
import caffe, json
File "/home/madan/git_repos/ENet/caffe-enet/python/caffe/init.py", line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/home/madan/git_repos/ENet/caffe-enet/python/caffe/pycaffe.py", line 15, in
import caffe.io
File "/home/madan/git_repos/ENet/caffe-enet/python/caffe/io.py", line 8, in
from caffe.proto import caffe_pb2
File "/home/madan/git_repos/ENet/caffe-enet/python/caffe/proto/caffe_pb2.py", line 853, in
options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\020\001')), file=DESCRIPTOR),
TypeError: init() got an unexpected keyword argument 'file'
I have compiled protobuf from source.
Here's my result from command 'which protoc'
/usr/local/bin/protoc
My current version is 3.5.0.
Please help guys. I have already spent half day working on this.
[EDIT]
I rebuild the protobuf with version 3.3 and it worked.
Thanks