Closed kameyer226 closed 4 years ago
Try putting
if __name__ == "__main__":
In target.py
(after imports and such, and indent the remainder of the file, most importantly with the exp.run
line in the indented portion)
It now works. Freeze_support not tested.
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.freeze_support
freeze_support does nothing unless we are packaging into a standalone exe
RunTime Error reported with target.py, changing expression in exp.run with above flag, as follows:
RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.