[pypy-issue] Issue #2188: multiprocessing.Manager.Queue error on Win32 (pypy/pypy)

richardg867 issues-reply at bitbucket.org
Thu Nov 12 11:39:44 EST 2015


New issue 2188: multiprocessing.Manager.Queue error on Win32
https://bitbucket.org/pypy/pypy/issues/2188/multiprocessingmanagerqueue-error-on-win32

richardg867:

Attempting to create a multiprocessing.Manager.Queue on PyPy 4.0.0 for Win32 results in the following error (followed by others caused by the multiprocessing pipe being broken). While my application triggers the error, I could not reproduce it in REPL.

	Traceback (most recent call last):
	  File "...\pypy-4.0.0-win32\lib-python\2.7\multiprocessing\process.py", line 258, in _bootstrap
		self.run()
	  File "...\pypy-4.0.0-win32\lib-python\2.7\multiprocessing\process.py", line 114, in run
		self._target(*self._args, **self._kwargs)
	  File "...\pypy-4.0.0-win32\lib-python\2.7\multiprocessing\managers.py", line 558, in _run_server
		server.serve_forever()
	  File "...\pypy-4.0.0-win32\lib-python\2.7\multiprocessing\managers.py", line 179, in serve_forever
		c = self.listener.accept()
	  File "...\pypy-4.0.0-win32\lib-python\2.7\multiprocessing\connection.py", line 145, in accept
		c = self._listener.accept()
	  File "...\pypy-4.0.0-win32\lib-python\2.7\multiprocessing\connection.py", line 370, in accept
		win32.ERROR_NO_DATA):
	AttributeError: type object 'win32' has no attribute 'ERROR_NO_DATA'

After replacing the `win32.ERROR_NO_DATA` reference with constant 232 - which [corresponds to ERROR_NO_DATA](https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx) - the queue works as expected.




More information about the pypy-issue mailing list