Open htzheng opened 5 years ago
hi@htzheng,i have the same problem.Have you solved it?
when
make ops
, I encounter the following issue. From facebookarchive/caffe2#1684, I fully understand it's caused by inconstancy between protobuf runtime library and source code. However, I do want to know which specific protobuf version should I use?I have tried
conda install protobuf=3.5.1
andconda install protobuf=3.2.0
, but neither workThe error looks like these:
from /fileserver//Cloth_lib/DensePose-master/detectron/ops/zero_even_op.cc:17: /fileserver//local/anaconda2/envs/densepose/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
error This file was generated by a newer version of protoc which is
^ /fileserver//local/anaconda2/envs/densepose/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
error incompatible with your Protocol Buffer headers. Please update
^ /fileserver//local/anaconda2/envs/densepose/lib/python2.7/site-packages/torch/lib/include/caffe2/proto/caffe2.pb.h:14:2: error: #error your headers.
Did you install caffe2 from source code or conda install
? For the latter case, an installation guide can be found here.
you should use protobuf version==3.6.1
when
make ops
, I encounter the following issue. From https://github.com/caffe2/caffe2/issues/1684, I fully understand it's caused by inconstancy between protobuf runtime library and source code. However, I do want to know which specific protobuf version should I use?I have tried
conda install protobuf=3.5.1
andconda install protobuf=3.2.0
, but neither workThe error looks like these: