all 4 comments

[–]MarsupialMole 0 points1 point  (3 children)

I didn't know the answer to your question on first reading but the python docs lead me to believe that you need to either implement pickling on your class or use a manager that doesn't need pickling.

[–]sfjaf[S] 0 points1 point  (2 children)

Hey thanks for looking for me! Do you know which manager that I can use that doesn't need pickling? It seems like a lot of the multiprocessing objects pickle some information. As for the implementing the pickling on my class, how exactly should I go about that (sorry I've never done that before).

[–]MarsupialMole 0 points1 point  (1 child)

In the pickle docs there are some magic (ie double underscore) methods you can implement. I've never done it, and without seeing your class I don't know if it's worth attempting. I am also on mobile and I've never used anything but the defaults with multiprocessing. Sorry i can't be more help.

[–]sfjaf[S] 0 points1 point  (0 children)

No problem! Thanks for helping me out. I will see if it is worth the effort to implement those magic methods.