Closed riyadparvez closed 2 years ago
Hello,
the exception is explaining the problem.
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
As per the documentation, pebble is affected by the same limitations of the multiprocessing
library. In particular, on OSes such as MAC and Windows, the if __name__ == '__main__':
guard it's required to be placed in your code:
https://docs.python.org/3/library/multiprocessing.html#the-spawn-and-forkserver-start-methods
I am on Mac M1 chip. I am using python 3.9.
I've tried the example listed on README page:
Here's the stack trace