When you start the thrift service ,you need set protocol, like this:
./hbase-daemon.sh start thrift -c compact protocol;
In your code, you need set protocol = 'compact'
, like this:
con = happybase.Connection(host='localhost',port=your thriftport,autoconnect=True,protocol = 'compact',timeout = xxx)