[pypy-issue] Issue #2919: Problem with multiprocessing.Process on Windows (pypy/pypy)

Peter Gerell issues-reply at bitbucket.org
Mon Nov 26 07:21:29 EST 2018


New issue 2919: Problem with multiprocessing.Process on Windows
https://bitbucket.org/pypy/pypy/issues/2919/problem-with-multiprocessingprocess-on

Peter Gerell:

The following simple program fails when using pypy3-v6.

```
#!python
from multiprocessing import Process, freeze_support

def func():
    print(42)

if __name__ == '__main__':
    freeze_support()
    p = Process(target=func)
    p.start()
    p.join()
```

~~~~
C:\Test>c:\pypy3\pypy3 test.py
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\pypy3\lib-python\3\multiprocessing\spawn.py", line 100, in spawn_main
    new_handle = steal_handle(parent_pid, pipe_handle)
  File "c:\pypy3\lib-python\3\multiprocessing\reduction.py", line 80, in steal_handle
    source_process_handle = _winapi.OpenProcess(
AttributeError: module '_winapi' has no attribute 'OpenProcess'

~~~~




More information about the pypy-issue mailing list