Skip to content

Commit

Permalink
More actionable error message when spawn is incorrectly used. (python…
Browse files Browse the repository at this point in the history
…#102203)

Co-authored-by: Yuxin Wu <[email protected]>
Co-authored-by: Oleg Iarygin <[email protected]>
  • Loading branch information
3 people authored Aug 16, 2023
1 parent bb456a0 commit a794ebe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Lib/multiprocessing/spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ def _check_not_importing_main():
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.''')
is not going to be frozen to produce an executable.
To fix this issue, refer to the "Safe importing of main module"
section in https://docs.python.org/3/library/multiprocessing.html
''')


def get_preparation_data(name):
Expand Down

0 comments on commit a794ebe

Please sign in to comment.