Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork339
Receiving "TypeError: cannot pickle '_thread.lock' object" with providers.Factory#718
-
I am using providers.Factory to create a service, and one of the dependencies is a class to interact with our Redis database. This line in the code seems to be the offender: that code is executing in the constructor. if I remove that line or if I change it to which doesn't help me but just an observation--then there is no error. I understand what pickling is, but I don't understand what is going on here exactly. |
BetaWas this translation helpful?Give feedback.
All reactions
😕 1
Replies: 1 comment
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
You cannot pass the Redis object directly (or whatever other object). Instead, you need to wrap it with a It would be something like this Hope it helps. |
BetaWas this translation helpful?Give feedback.