I'm using the multiprocessing library from Python inside a Tkinter GUI to run real-time calculations independent from my GUI. I spawn the process in the following way
pti_process = multiprocessing.Process(target=self.pti.run_live, daemon=True,
args=(self.live_path, self.settings.data))
pti_process.start()
This works fine on Linux. However, on Windows I got directly after spawning the process the following two exceptions:
TypeError: cannot pickle '_thread.lock' object
EOFError: Ran out of input
The code shown above is literally the only thing that I'm doing regarding multiprocessing. I do not use any lock. With threads works everything fine.