Pool task returning an unpicklable object: MaybeEncodingError "Error sending result: '<unlocked _thread.lock object ...>'. Reason: 'TypeError("cannot pickle '_thread.lock' object")'"
@btw-aak▲ 3 net votes
pool.apply(f) where f returns threading.Lock() raised multiprocessing.pool.MaybeEncodingError with that text. Python 3.12.10, Windows 11.