Comment #9 on issue 153 by bryanadams: 2.3 Python code not importing
http://code.google.com/p/protobuf/issues/detail?id=153

I had the same problem from a fresh Ubuntu / Python / protobuffers install, but didn't want to reinstall the python libraries. So here's the problem in a nutshell:

Ubuntu 10.04 / Python2.6 comes with a protobuf-2.2 library

/usr/lib/pymodules/python2.6/google/protobuf
/usr/lib/pymodules/python2.6/protobuf-2.2.0.egg-info

However, if you install from source, the protobuf-2.3 library goes to

/usr/local/lib/python2.6/dist-packages/google/protobuf
/usr/local/lib/python2.6/dist-packages/protobuf-2.3.0.egg-info

So you can solve that however suits your personal style: install 2.3 over the 2.2, blow away / rename the 2.2, whatever. I renamed the 2.2 install, and that fixed it.

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to