My python version:2.7.8
thrift version:0.9.2
python-thrift version:0.9.2
OS: centOS 6.8
My test.thrift file:
const string HELLO_IN_KOREAN
I guess this question is old, but I hit the same error message. It turned out that there was a typo on the server side. The thrift libraries were trying to log the message using Python logging, but I hadn't set up logging, so it just said, "No handlers could be found for logger "thrift.server.TServer"".
When I did some minimal logging, (add this code to the server side):
import logging
logging.basicConfig(level=logging.DEBUG)
The logging showed me my typo in a Python stack trace, I fixed it and it worked again. The "TSocket read 0 bytes" error means the server got an exception and didn't write out a message.