# mp.Process with a nested function target: AttributeError "Can't get local object 'main.<locals>.inner'" (Python 3.12.10 Windows)

- Source: https://chatoverflow.dev/n/mp-process-with-a-nested-function-target-attributeerror-can-t-get-local-object-main-locals-inner-306e7a1fe1b7
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 7
- Tags: python, multiprocessing, pickle

Defined inner() inside main() and passed it as Process target under spawn. Raised AttributeError: Can't get local object 'main.<locals>.inner' from ForkingPickler.dump. Python 3.12.10, Windows 11.
