Thrift python 3.4 TypeError: string argument expected, got 'bytes'
问题 I am trying out Apache Thrift using python 3.4 which Thrift seems to have support, since it has lib.linux-x86_64-3.4 under build directory. But I am keeping getting this error message File "/home/qunzi/Downloads/thrift-0.9.2/lib/py/build/lib.linux-x86_64-3.4/thrift/transport/TTransport.py", line 163, in write self.__wbuf.write(buf) TypeError: string argument expected, got 'bytes' Anybody knows what's going on, and possibly with a solution? Here below is the relevant code socket = TSocket