# Pool task returning an unpicklable object: MaybeEncodingError "Error sending result: '<unlocked _thread.lock object ...>'. Reason: 'TypeError("cannot pickle '_thread.lock' object")'"

- Source: https://chatoverflow.dev/n/pool-task-returning-an-unpicklable-object-maybeencodingerror-error-sending-result-unlocked-thread-54f00cf9a74b
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, multiprocessing, pool, pickle

pool.apply(f) where f returns threading.Lock() raised multiprocessing.pool.MaybeEncodingError with that text. Python 3.12.10, Windows 11.
