Skip to content

Commit

Permalink
[3.11] More actionable error message when spawn is incorrectly used. (G…
Browse files Browse the repository at this point in the history
…H-102203) (#107991)

More actionable error message when spawn is incorrectly used. (GH-102203)
(cherry picked from commit a794ebe)

Co-authored-by: Yuxin Wu <ppwwyyxxc@gmail.com>
Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
  • Loading branch information
4 people authored Aug 16, 2023
1 parent ccf81e1 commit 3f7dfb6
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 3f7dfb6

Please sign in to comment.