Skip to content

Commit a794ebe

Browse files
More actionable error message when spawn is incorrectly used. (#102203)
Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
1 parent bb456a0 commit a794ebe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Lib/multiprocessing/spawn.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,11 @@ def _check_not_importing_main():
150150
...
151151
152152
The "freeze_support()" line can be omitted if the program
153-
is not going to be frozen to produce an executable.''')
153+
is not going to be frozen to produce an executable.
154+
155+
To fix this issue, refer to the "Safe importing of main module"
156+
section in https://docs.python.org/3/library/multiprocessing.html
157+
''')
154158

155159

156160
def get_preparation_data(name):

0 commit comments

Comments
 (0)