Broken pipe error with multiprocessing.Queue

后端 未结 3 1295
猫巷女王i
猫巷女王i 2020-12-31 10:18

In python2.7, multiprocessing.Queue throws a broken error when initialized from inside a function. I am providing a minimal example that reproduces the problem.



        
3条回答
  •  被撕碎了的回忆
    2020-12-31 10:31

    With a delay using time.sleep(0.1) as suggested by @HarryPotFleur, this problem is solved. However, I tested the code with python3 and the broken pipe issue does not happen at all in python3. I think this was reported as a bug and later got fixed.

提交回复
热议问题