Jan_Vainer:

I am on Ubuntu


That’s weird, as your stack trace seems to contain Windows paths, e.g.:
C:\ProgramData\Miniconda3\lib\multiprocessing\reduction.py

I haven’t seen this issue on Ubuntu, if no lambdas were used, so could you post an executable code snippet (for Ubuntu), which would yield this error?