Closed dongchirua closed 6 years ago
I have the same problem on Python 3.6.6. I see above "Merged" but following the link does not hint a solution. Can someone please clarify what the solution is?
@jheffez hi! I merged the pull request but it's not on pypi yet. Maybe you can clone the master branch and install it from there?
Can you please be a bit more specific so I'm sure I'm doing the correct check? Thanks.
did pip install -U git+https://github.com/rsteca/sklearn-deap.git. Seems to fix the initial problem but now getting a lot more below. After the errors jupyter cell just sits there with the asterisk and cpu does nothing.
Jupyter output: Types [1, 1, 1] and maxint [1, 3, 2] detected --- Evolve in 24 possible combinations ---
Console output: Process SpawnPoolWorker-13: Traceback (most recent call last): File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 93, in run self._target(*self._args, self._kwargs) File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\pool.py", line 108, in worker task = get() File "C:\Users\userx\AppData\Local\Programs\Python\Python36\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\userx\py\36env\lib\site-packages\deap\creator.py'> Process SpawnPoolWorker-14: Traceback (most recent call last): File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 93, in run self._target(*self._args, *self._kwargs) File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\pool.py", line 108, in worker task = get() File "C:\Users\userx\AppData\Local\Programs\Python\Python36\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\userx\py\36env\lib\site-packages\deap\creator.py'> Process SpawnPoolWorker-15: Traceback (most recent call last): File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 93, in run self._target(self._args, self._kwargs) File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\pool.py", line 108, in worker task = get() File "C:\Users\userx\AppData\Local\Programs\Python\Python36\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\userx\py\36env\lib\site-packages\deap\creator.py'> Process SpawnPoolWorker-16: Traceback (most recent call last): File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 93, in run self._target(*self._args, *self._kwargs) File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\pool.py", line 108, in worker task = get() File "C:\Users\userx\AppData\Local\Programs\Python\Python36\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\userx\py\36env\lib\site-packages\deap\creator.py'> c:\users\userx\py\36env\lib\site-packages\sklearn\externals\joblib\externals\cloudpickle\cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp Process SpawnPoolWorker-17: Traceback (most recent call last): File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 93, in run self._target(self._args, **self._kwargs) File "C:\Users\userx\AppData\Local\Programs\Python\Python36\lib\multiprocessing\pool.py", line 108, in worker task = get() File "C:\Users\userx\AppData\Local\Programs\Python\Python36\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\userx\py\36env\lib\site-packages\deap\creator.py'>
Update: disabled multiprocessing using: n_jobs=1 and was able to get results without console errors. Any thought?
Hi! I think multiprocessing doesn't work on windows, but I have never tried it on that platform.
I use Python 2.7.15 to run
test.py
and I found an errorTypeError: Can't instantiate abstract class EvolutionaryAlgorithmSearchCV with abstract methods _run_search
Would you please help correct anything I missed, bellow is all packages I installed