ImportError: You used to compile with protoc --python_out=./ ./caffe.proto #5735

Open
meanmee opened this Issue Jul 4, 2017 · 1 comment

Comments

Projects
None yet
2 participants

meanmee commented Jul 4, 2017

I am trying to convert a caffe model to mxnet model using conver_model.py provided by mxnet/tools/caffe_converter.But the following error raised, I googled it but seems no one has the problem same to me. Can anyone solve it? thanks vvery much!

Traceback (most recent call last):
File "convert_model.py", line 6, in
import caffe_parser
File "/home/wuxiaomin/anaconda2/lib/python2.7/site-packages/mxnet/tools/caffe_converter/caffe_parser.py", line 12, in
raise ImportError('You used to compile with protoc --python_out=./ ./caffe.proto')
ImportError: You used to compile with protoc --python_out=./ ./caffe.proto

Your system configuration

Operating system: Ubuntu 16.04
Compiler: gcc5.4
CUDA version (if applicable): 8.0
CUDNN version (if applicable):
BLAS: openBLAS
Python

Looks like it is not able to import the required package.
Could you please check if the following works on python prompt:

import caffe
from caffe.proto import caffe_pb2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment