Read Protocol Buffers file using Python
<p>My goal is to parse Protocol Buffers file with an extension <em>filename</em>.pb.string. Downloaded Protobuff using Homebrew on Mac. Ran protoc --version and have libprotoc 3.1.0 version.</p>

<p>But when I run Python it says cannot find a module. I changed my .pb file name to _pb2.py and import the module in my Python Script.</p>

<pre><code>import filename_pb2 as proto
</code></pre>

<p>I am using Google Docs but still not having any luck. I am also having issues with compiling Protobuf .so files via Python. I am just not able to process how Protobuf and Python link together. Can someone please guide me?</p>

<p><strong>Python Error</strong> </p>

<pre><code>import response_123_pb2 as proto
ImportError: No module named response_123_pb2
</code></pre>