lfz / DSB2017

The solution of team 'grt123' in DSB2017
MIT License
1.23k stars 418 forks source link

RuntimeError: generator raised StopIteration #113

Open wushuo1997 opened 5 years ago

wushuo1997 commented 5 years ago

I am running main.py on pycharm after I set 'n_worker_preprocessing':2,'use_exsiting_preprocessing':1 in config_submit.py

However it keeps report the runtime error above. I think there must be sth wrong with the setting of 'use_exsiting_preprocessing':1 since the interpreter reports:

Traceback (most recent call last): File "/Users/wushuo/Documents/DSB2017-master/main.py", line 26, in use_existing=config_submit['use_exsiting_preprocessing']) File "/Users/wushuo/Documents/DSB2017-master/preprocessing/full_prep.py", line 125, in fullprep =pool.map(partial_savenpy,range(N)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/pool.py", line 268, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/pool.py", line 657, in get raise self._value RuntimeError: generator raised StopIteration

could anyone help me?I'm in a hurry now.

thank you very much in advance!!