Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just installed Google protocol buffer on my snow leopard mac. When going into the python shell

import protobuf

produces an unknown module error. I'm using the python which came with snow leopard:


Should I specify a PYTHON_PATH variable before installation and if so what should it be?


share|improve this question

The module is not called protobuf, but google.protobuf. In the extracted source tarball, there's an examples directory. Run make python and check out the files, and to get you started. Hope this helps!

share|improve this answer
Thanks. That clarification really helped. Lesson learnt about following examples as well ;-) – user25594 Jan 21 '10 at 13:07

You must log in to answer this question.