Skip to content
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

protobuf 2.6.0 breaks pycaffe on OS X #1202

Closed
shelhamer opened this issue Oct 1, 2014 · 9 comments
Closed

protobuf 2.6.0 breaks pycaffe on OS X #1202

shelhamer opened this issue Oct 1, 2014 · 9 comments

Comments

@shelhamer
Copy link
Member

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
@Yangqing
Copy link
Member

Yangqing commented Oct 3, 2014

(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.)

@shelhamer
Copy link
Member Author

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
#1202 (comment).

@sanjeev87
Copy link

I am having this issue with protobuf 2.5.0 . Please let me know if there is a fix for this issue

@kloudkl
Copy link
Contributor

kloudkl commented Oct 13, 2014

If @Yangqing is right, there is another reason to take #1267 seriously.

@anguyen8
Copy link

anguyen8 commented Jan 3, 2015

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?

@dionyziz
Copy link

dionyziz commented Jan 5, 2015

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!

@anguyen8
Copy link

anguyen8 commented Jan 5, 2015

@dionyziz : I was using Python Anaconda and installed Protobuf python lib on it. My problem was fixed when I switched to not using Anaconda.

@dionyziz
Copy link

dionyziz commented Jan 5, 2015

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!

@shelhamer
Copy link
Member Author

Not sure what the problem was back then, but protobuf 2.6.1 works on OS X -- closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants