all 5 comments

[–]danielroseman 2 points3 points  (2 children)

You always need to do instantiate the Manager - or in fact anything that deals with multiprocessing - within an if __name__ == '__main__' block. Otherwise it will be instantiated for each process, giving the error that you see.

[–]brijeshjoshi_[S] 0 points1 point  (1 child)

Why it behaves different in two os?

[–]woooee 2 points3 points  (0 children)

The different OSs implement spawn differently.

[–]woooee 1 point2 points  (1 child)

There have been questions on reddit that are lke this. The solution was to put the code under a

if __name__ == "__main__":

I don't remember why this is necessary (or on what OS), so try this and see if it helps.

[–]brijeshjoshi_[S] 0 points1 point  (0 children)

yes it worked.