multiprocessing gives AssertionError: daemonic processes are not allowed to have children

后端 未结 2 1186
一向
一向 2021-01-19 00:03

I am trying to use multiprocessing for the first time. So I thought I would make a very simple test example which factors 100 different numbers.

from multipr         


        
2条回答
  •  梦毁少年i
    2021-01-19 00:12

    I came here because my unittest raises

    AssertionError: daemonic processes are not allowed to have children
    

    This is because I have used multiprocessing and I did not close and join the pool properly, after close and join everything is fine now.

提交回复
热议问题