Closed amithadiraju1694 closed 4 years ago
The suggestion I had made to you earlier was to use the master
version of dill
on GitHub, as there was a patch for this particular issue. Now, that patch is in a new release of dill, so you should just be able to update your dill
with pip
(or, equivalently, get the latest pathos
release). Reopen if this doesn't solve it for you. This is a duplicate of #129
I'm trying to run a function on multiple processes using Process class from multi process. Inside my function, I'm importing a custom class that I created as part of my project. For obvious reasons, multi process's run function can't identify my custom class. I've checked multiple git issues related to this, but none of the suggested solutions worked for me. I have 6 cores on my machine, and would like to parallelise each instance of my function across 5 different cores.
My Environment:
`OS: Windows 10
multiprocess version: 0.70.9
pathos version: 0.2.5
dill version: 0.3.1.1
Python version: 3.7.1 `
My Code:
my environment is on jupyter notebooks, "import_ipynb" is pypi package to import other jupyter notebooks into workspace, "DTRegressor" is the custom class that I'm importing inside my function. Variable 'Splits' is just a dictionary with tuple of arrays.
Stack Trace:
I also tried the Pool class, with some suggestions from @mmckerns , but they didn't work for me. Some one please let me know how do I fix this issue, or is it at all fixable. TIA ! :)