Closed belm0 closed 2 years ago
It may be specific to macOS.
Changed in version 3.8: On macOS, the spawn start method is now the default. The fork start method should be considered unsafe as it can lead to crashes of the subprocess. See bpo-33725.
https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
Using spawn seems to have various implications for existing code.
https://chrissardegna.com/blog/multiprocessing-changes-python-3-8/#picklingerror-crash
Possible workaround (given that it would only be utilized for tests):
multiprocessing.set_start_method("fork")
e.g.