DEAP / deap

Distributed Evolutionary Algorithms in Python
http://deap.readthedocs.org/
GNU Lesser General Public License v3.0
5.82k stars 1.13k forks source link

WARNING Pickling Error: Can't pickle <function map at 0x1091b6a60> #324

Open zhangzy2018 opened 5 years ago

zhangzy2018 commented 5 years ago

when I run the example scripts < onemax_island_scoop.py >, some error occur,

[2019-01-03 19:38:06,924] launcher (127.0.0.1:62649) INFO Root process is done. [2019-01-03 19:38:06,925] launcher (127.0.0.1:62649) INFO Finished cleaning spawned subprocesses. localhost:test_dis1 zhangzy$ python -m scoop test1.py [2019-01-03 19:42:04,861] launcher INFO SCOOP 0.7 1.1 on darwin using Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)], API: 1013 [2019-01-03 19:42:04,861] launcher INFO Deploying 4 worker(s) over 1 host(s). [2019-01-03 19:42:04,861] launcher INFO Worker distribution: [2019-01-03 19:42:04,861] launcher INFO 127.0.0.1: 3 + origin [2019-01-03 19:42:05,210] scoopzmq (b'127.0.0.1:49608') WARNING Pickling Error: Can't pickle <function map at 0x1091b6a60>: it's not the same object as scoop.futures.map [2019-01-03 19:42:05,210] scoopzmq (b'127.0.0.1:49608') WARNING Pickling Error: Can't pickle <function map at 0x1091b6a60>: it's not the same object as scoop.futures.map [2019-01-03 19:42:05,211] scoopzmq (b'127.0.0.1:49608') WARNING Pickling Error: Can't pickle <function map at 0x1091b6a60>: it's not the same object as scoop.futures.map [2019-01-03 19:42:05,211] scoopzmq (b'127.0.0.1:49608') ERROR A worker exited unexpectedly. Read the worker logs for more information. SCOOP pool will now shutdown. Traceback (most recent call last): Traceback (most recent call last):

can someone help me?

gfviegas commented 4 years ago

@zhangzy2018 Im having the same issue... were you able to work it out?