连接到 PyPy3 多处理远程管理器时出错



我正在尝试运行 pypy3 中多处理文档中的远程管理器示例代码,但连接客户端时出错。

Traceback (most recent call last):  
File "C:/temp/testpypy/mp_client.py", line 7, in <module>
m.connect()
File "C:Pythonpypy3-v6.0.0-win32lib-python3multiprocessingmanagers.py", line 455, in connect
conn = Client(self._address, authkey=self._authkey)
File "C:Pythonpypy3-v6.0.0-win32lib-python3multiprocessingconnection.py", line 493, in Client
answer_challenge(c, authkey)
File "C:Pythonpypy3-v6.0.0-win32lib-python3multiprocessingconnection.py", line 732, in answer_challenge
message = connection.recv_bytes(256)         # reject large message
File "C:Pythonpypy3-v6.0.0-win32lib-python3multiprocessingconnection.py", line 216, in recv_bytes
buf = self._recv_bytes(maxlength)
File "C:Pythonpypy3-v6.0.0-win32lib-python3multiprocessingconnection.py", line 407, in _recv_bytes
buf = self._recv(4)
File "C:Pythonpypy3-v6.0.0-win32lib-python3multiprocessingconnection.py", line 386, in _recv
buf.write(chunk)
TypeError: 'str' does not support the buffer interface

如果我尝试从CPython解释器连接到它(这是我的最终目标(,我会收到以下错误:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:Python3.5.4.2WinPythonpython-3.5.4.amd64libmultiprocessingmanagers.py", line 455, in connect
conn = Client(self._address, authkey=self._authkey)
File "c:Python3.5.4.2WinPythonpython-3.5.4.amd64libmultiprocessingconnection.py", line 493, in Client
answer_challenge(c, authkey)
File "c:Python3.5.4.2WinPythonpython-3.5.4.amd64libmultiprocessingconnection.py", line 737, in answer_challenge
response = connection.recv_bytes(256)        # reject large message
File "c:Python3.5.4.2WinPythonpython-3.5.4.amd64libmultiprocessingconnection.py", line 218, in recv_bytes
self._bad_message_length()
File "c:Python3.5.4.2WinPythonpython-3.5.4.amd64libmultiprocessingconnection.py", line 151, in _bad_message_length
raise OSError("bad message length")
OSError: bad message length

原来是PyPy3中的一个错误。

这是固定票: https://bitbucket.org/pypy/pypy/issues/2841/remote-multprocessing-issue#comment-45861347

相关内容

  • 没有找到相关文章

最新更新