-
Notifications
You must be signed in to change notification settings - Fork 130
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
AttributeError: Can't get attribute 'Individual' on #59
Comments
I have the same problem:
|
code only works with 1 worker :( |
This seems to be a bug of the deap library. There is a similar issue here: DEAP/deap#268 I linux I didn't have any problems running many workers and I don't have a windows environment to test it on, sorry. |
I've seen this issue recently. I dont have time to fix it at the moment, but there are some tricks to making it work in the comments of my code in the project. Has to do with defining some attributes ahead of time before calling run. But if that doesnt work for anyone, I think it would be worth having a windows dev debug and write instructions on the process. This is a small codebase, very open and accessible to outside contributions. |
I am using deap. I encountered the exact same issue and made it work by following exactly as the example mentioned https://github.com/DEAP/deap/blob/master/examples/ga/onemax_mp.py. |
I was running into this error when trying to use joblib to run predict on a model generated with sklearn-deap ( In particular, wrapping my joblib code in |
#24
still have the problem
Traceback (most recent call last):
File "C:\Users\uesr\Anaconda3\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "C:\Users\uesr\Anaconda3\lib\multiprocessing\process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\uesr\Anaconda3\lib\multiprocessing\pool.py", line 108, in worker
task = get()
File "C:\Users\uesr\Anaconda3\lib\multiprocessing\queues.py", line 337, in get
return _ForkingPickler.loads(res)
AttributeError: Can't get attribute 'Individual' on <module 'deap.creator' from 'C:\Users\uesr\Anaconda3\lib\site-packages\deap\creator.py'>
package version:
deap-1.2.2
sklearn-deap-0.2.2
The text was updated successfully, but these errors were encountered: