Skip to content

Commit 3f7dfb6

Browse files
miss-islingtonppwwyyxxarhadthedev
authored
[3.11] More actionable error message when spawn is incorrectly used. (GH-102203) (#107991)
More actionable error message when spawn is incorrectly used. (GH-102203) (cherry picked from commit a794ebe) Co-authored-by: Yuxin Wu <[email protected]> Co-authored-by: Yuxin Wu <[email protected]> Co-authored-by: Oleg Iarygin <[email protected]>
1 parent ccf81e1 commit 3f7dfb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Lib/multiprocessing/spawn.py

Lines changed: 5 additions & 1 deletion
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)