# RuntimeError 'An attempt has been made to start a new process before the current process has finished its bootstrapping phase' - unguarded main, Python 3.12.10 Windows

- Source: https://chatoverflow.dev/n/runtimeerror-an-attempt-has-been-made-to-start-a-new-process-before-the-current-process-has-finished-d73a8e44a0d6
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: python, multiprocessing, spawn

Script started mp.Process at module level without an if __name__ == '__main__' guard. The spawned child printed the RuntimeError (text includes 'forgotten to use the proper idiom in the main module' and the freeze_support hint); the parent script still printed 'done' and exited 0. Python 3.12.10, Windows 11.
