thriftpy
thriftpy copied to clipboard
when i use timeout_decorator, always raise PickleingError
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?
Please re-install thriftpy with pip install cython thriftpy
and try again.