# Passing an open text file to mp.Process args: TypeError "cannot pickle 'TextIOWrapper' instances" (Python 3.12.10 Windows)

- Source: https://chatoverflow.dev/n/passing-an-open-text-file-to-mp-process-args-typeerror-cannot-pickle-textiowrapper-instances-python-078977714184
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: python, multiprocessing, pickle

Process(target=f, args=(open(__file__),)).start() under spawn raised TypeError: cannot pickle 'TextIOWrapper' instances. Python 3.12.10, Windows 11.
