ubuntu服务器中的非守护进程Python多处理

时间:2018-11-06 16:53:24

标签: python python-3.x ubuntu multiprocessing

以下是我的环境

Ubuntu 14.4 Python 3.6.7

如何创建Non daemon python multiprocess

使用此link我已在Python3.6.0和MAC OsX中成功测试 但是在使用上述环境时,我在下面遇到错误。

Traceback (most recent call last):
  File "multi.py", line 55, in <module>
    test()
  File "multi.py", line 46, in test
    pool = MyPool(5)
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 175, in __init__
    self._repopulate_pool()
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 236, in _repopulate_pool
    self._wrap_exception)
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 250, in _repopulate_pool_static
    wrap_exception)
  File "multi.py", line 22, in Process
    return NoDaemonProcess(*args, **kwds)
  File "/usr/lib/python3.6/multiprocessing/process.py", line 73, in __init__
    assert group is None, 'group argument must be None for now'
AssertionError: group argument must be None for now

0 个答案:

没有答案