protobuf 2.6.0 breaks pycaffe on OS X
Stay at 2.5.0 or downgrade. Otherwise import caffe gives
/Users/shelhamer/python/caffe/proto/caffe_pb2.py in <module>()
8 from google.protobuf import message as _message
9 from google.protobuf import reflection as _reflection
---> 10 from google.protobuf import symbol_database as _symbol_database
11 from google.protobuf import descriptor_pb2
12 # @@protoc_insertion_point(imports)
ImportError: cannot import name symbol_database
(Not sure if relevant - maybe python and c++ are invoking different protobuf versions? E.g. the protoc binary is 2.6, but python is linked with protoc 2.5. I've had problems when I mixed 2.4 and 2.5 in the past.)
A version difference is a reasonable culprit but it's not the problem here: I made caffe and pycaffe with the same proto lib linking and same protoc version, 2.6.0, and it doesn't work.
There's a different error if I try different versions for one or the other.
On Fri, Oct 3, 2014 at 4:42 PM, Yangqing Jia [email protected] wrote:
(Not sure if relevant - maybe python and c++ are invoking different protobuf versions? E.g. the protoc binary is 2.6, but python is linked with protoc 2.5. I've had problems when I mixed 2.4 and 2.5 in the past.)
— Reply to this email directly or view it on GitHub https://github.com/BVLC/caffe/issues/1202#issuecomment-57881483.
I am having this issue with protobuf 2.5.0 . Please let me know if there is a fix for this issue
If @Yangqing is right, there is another reason to take #1267 seriously.
I'm having the same problem here with protobuf 2.5.0, latest caffe and CUDA 6.5. I'd appreciate if someone has a solution. Did you find a fix @sanjeev87?
I'm getting the exact same error when I try to run https://github.com/google/grr on travis. Perhaps it's something we're doing wrong with protobufs instead of a project issue?
If you find a solution, please let us know. Thanks!
@dionyziz : I was using Python Anaconda and installed Protobuf python lib on it. My problem was fixed when I switched to not using Anaconda.
This was a protobuf version error for me. I solved it by switching from protobuf==2.5.0 to protobuf==2.6.0. Thanks for getting back to me @anguyen8!
Not sure what the problem was back then, but protobuf 2.6.1 works on OS X -- closing.