Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/hskj/anaconda3/lib/python3.5/site-packages/happybase/connection.py", line 242, in tables
names = self.client.getTableNames()
File "/hskj/anaconda3/lib/python3.5/site-packages/thriftpy/thrift.py", line 198, in _req
return self._recv(_api)
File "/hskj/anaconda3/lib/python3.5/site-packages/thriftpy/thrift.py", line 210, 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:6470)
cybin.ProtocolError: No protocol version header
1条答案
按热度按时间yqhsw0fo1#
这个问题似乎与“严格读/写”标志的使用有关。标准节俭二进制协议有一个非标准的“cybin”实现,错误在这个特定的代码块中:
如果没有尝试过,我想在示例化cybin协议时,将“strict read”标志设置为false(而不是true)应该可以做到这一点。