Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

when i use timeout_decorator, always raise PickleingError #344

Open
vhysug opened this issue Oct 19, 2018 · 1 comment
Open

when i use timeout_decorator, always raise PickleingError #344

vhysug opened this issue Oct 19, 2018 · 1 comment

Comments

@vhysug
Copy link

vhysug commented Oct 19, 2018

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
Copy link
Member

ethe commented Oct 22, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants