Thriftpy / thriftpy

Thriftpy has been deprecated, please migrate to https://github.com/Thriftpy/thriftpy2
MIT License
1.15k stars 286 forks source link

when i use timeout_decorator, always raise PickleingError #344

Open vhysug opened 5 years ago

vhysug commented 5 years ago

I set a client to threading.Local() variable, I dont know whether it is related to the problem e.g. thread.Lcoal().client = make_client() and use the timeout_decorator, not use_signals Here is the exception: PicklingError: Can't pickle <type 'cybin.TCyBinaryProtocol'>: import of module cybin failed

How to fix this?

ethe commented 5 years ago

Please re-install thriftpy with pip install cython thriftpy and try again.