-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pickling in parallel.py #122
Comments
Hrm, that's strange. The reason why Granted, the confusing nature of |
I will try a minimal example using a VM to see if I can recreate my error. |
I cannot recreate on an Ubuntu VM (using Docker). I will investigate further. |
Ok that's pretty strange. I've done all my developing and testing on Arch Linux, if that helps as a point of reference. |
So on windows if I call
I get
when calling When I take the exact same code by mounting it onto an Ubuntu VM, I have no problems. E: |
I'm not sure what the history of
parallel.py
is, but I tried running it with some data files and I ran into the issues that nothing would work as is because of pickling.I understand the problem is that, for instance, in the
initialize
function we start a process with targetmodel.brain
, but Python cannot pickle bound methods. Bound methods are any kind of method that belong to a class that aren't classmethods- in other words, any method that requiresself
as one of the arguments.I was easily able to edit the code from
scripts/star.py
to avoid this issue, but I'm curious if/how this has worked before since this pickle problem has existed for as long as I've used python.The text was updated successfully, but these errors were encountered: