Problem with multiprocessing.Process on Windows

Issue #2919 duplicate
Peter Gerell
created an issue

The following simple program fails when using pypy3-v6.

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'

Comments (1)

  1. Log in to comment