4👍
✅
reduction.py
is failing to serialize objects containing lambdas. After a little research it seems that this is related to an issue with multiprocessing in a Windows environment (and is not limited to this example.)
One way to work around the issue is in reduction.py
replace: import pickle
with import dill as pickle
The dill package can serialize these objects where pickle fails. However, I would not suggest this for a production environment without digging in to make sure this change doesn’t break anything else.
Source:stackexchange.com