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
protoc error #43
Comments
2.6.1 is OK. def get_caffe_pb():
dir = get_dataset_path('caffe')
caffe_pb_file = os.path.join(dir, 'caffe_pb2.py')
if not os.path.isfile(caffe_pb_file):
proto_path = download(CAFFE_PROTO_URL, dir)
ret = os.system('cd {} && protoc caffe.proto --python_out .'.format(dir))
assert ret == 0, \
"caffe proto compilation failed! Did you install protoc?" Maybe it failed to download the file successfully. Or maybe protoc isn't in your path. You can also run |
protoc is in my path. The error is in compiling the caffe.proto file which I hadnt noticed before. I get this error message upon compiling: Any chance they updated the caffe.proto file (the file was last updated 4 months ago). Any chance you could upload your caffe.proto file in this repo? Need help. |
protocolbuffers/protobuf#592 Does this help? |
No, the link ends with "Will update our parser to ignore BOM". I dont know if protoc 2.6.1 incorporates this. I downloaded protoc 3.1.0 and I still get the above error. I wonder how it works for other people using protoc 2.6.1. |
It works for others because caffe.proto doesn't have BOM. |
Broken proto file. Closed. |
Which version of protoc is required by tensorpack/tensorpack/utils/loadcaffe.py line 119?
I have 2.6.1 and I get an error saying
"caffe proto compilation failed! Did you install protoc?"
AssertionError: caffe proto compilation failed! Did you install protoc?
I am on Ubuntu 16.04, running CUDA 8 and CUDNN 5.
The text was updated successfully, but these errors were encountered: