-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiprocessing code looks to be broken on windows #194
Comments
apparently this is a "feature" of the underlying multiprocessing library, changing my code to
fixes it. might want to drop a warning in the docs tho. |
Thanks for the report, will make a note in the documentation. |
@jbellis, I'm sorry, could you help my smooth brain understand what I have to modify from the workflow to fix this?
Tried to integrate what you wrote but I don't understand where to put it and what to replace
|
Just put everything (or everything except the imports, either way) in an "if name == 'main'" block. https://stackoverflow.com/questions/419163/what-does-if-name-main-do this prevents multiprocessing from entering an infinite loop when it imports the script in the subprocesses: https://stackoverflow.com/questions/20222534/python-multiprocessing-on-windows-if-name-main |
->
and then
The text was updated successfully, but these errors were encountered: