I've installed Thrift on my Mac using Homebrew: brew install thrift --with-python
That did some work and finished w/o errors reported. I have thrift on my path.
I write a simple python client from a tutorial: (there is some python thrift code in gen-py)
#!/usr/bin/python
import sys
sys.path.append("./gen-py")
from thrift import Thrift
from thrift.transport import TSocket
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
# rest of program...
When run I get this error:
Traceback (most recent call last):
File "./hey.py", line 8, in <module>
from thrift import Thrift
ImportError: No module named thrift
Did I installed python correctly using Homebrew? Is there a way I can verify the python/thrift integration is installed properly?