我安装了python 2.7并尝试使用happybase与hbase thrift服务器进行通信。
python2.7 test.py
Traceback (most recent call last):
File "test.py", line 5, in <module>
for key, data in table.rows([b'row01']):
File "/home/qa/happybase/happybase/table.py", line 162, in rows
self.name, rows, columns, {})
File "/usr/local/lib/python2.7/site-packages/thriftpy-0.3.8-py2.7-linux-x86_64.egg/thriftpy/thrift.py", line 160, in _req
return self._recv(_api)
File "/usr/local/lib/python2.7/site-packages/thriftpy-0.3.8-py2.7-linux-x86_64.egg/thriftpy/thrift.py", line 172, in _recv
fname, mtype, rseqid = self._iprot.read_message_begin()
File "thriftpy/protocol/cybin/cybin.pyx", line 439, in cybin.TCyBinaryProtocol.read_message_begin (thriftpy/protocol/cybin/cybin.c:6457)
cybin.ProtocolError: No protocol version header
/usr/local/lib/python2.7/site-packages/thriftpy-0.3.8-py2.7-linux-x86_64.egg
下没有cybin.c克隆https://github.com/eleme/thriftpy.git
cybin.c也不存在。
有关如何克服错误的建议表示赞赏