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

时间:2018-05-15 15:03:16

标签: python multiprocessing python-3.5 pypy

我正在尝试从pypy3中的多处理文档运行remote manager example code,但是连接客户端时出错。

Traceback (most recent call last):  
  File "C:/temp/testpypy/mp_client.py", line 7, in <module>
  m.connect()
  File "C:\Python\pypy3-v6.0.0-win32\lib-python\3\multiprocessing\managers.py", line 455, in connect
    conn = Client(self._address, authkey=self._authkey)
  File "C:\Python\pypy3-v6.0.0-win32\lib-python\3\multiprocessing\connection.py", line 493, in Client
    answer_challenge(c, authkey)
  File "C:\Python\pypy3-v6.0.0-win32\lib-python\3\multiprocessing\connection.py", line 732, in answer_challenge
    message = connection.recv_bytes(256)         # reject large message
  File "C:\Python\pypy3-v6.0.0-win32\lib-python\3\multiprocessing\connection.py", line 216, in recv_bytes
    buf = self._recv_bytes(maxlength)
  File "C:\Python\pypy3-v6.0.0-win32\lib-python\3\multiprocessing\connection.py", line 407, in _recv_bytes
    buf = self._recv(4)
  File "C:\Python\pypy3-v6.0.0-win32\lib-python\3\multiprocessing\connection.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:\Python\3.5.4.2\WinPython\python-3.5.4.amd64\lib\multiprocessing\managers.py", line 455, in connect
     conn = Client(self._address, authkey=self._authkey)
  File "c:\Python\3.5.4.2\WinPython\python-3.5.4.amd64\lib\multiprocessing\connection.py", line 493, in Client
     answer_challenge(c, authkey)
  File "c:\Python\3.5.4.2\WinPython\python-3.5.4.amd64\lib\multiprocessing\connection.py", line 737, in answer_challenge
     response = connection.recv_bytes(256)        # reject large message
  File "c:\Python\3.5.4.2\WinPython\python-3.5.4.amd64\lib\multiprocessing\connection.py", line 218, in recv_bytes
     self._bad_message_length()
  File "c:\Python\3.5.4.2\WinPython\python-3.5.4.amd64\lib\multiprocessing\connection.py", line 151, in _bad_message_length
     raise OSError("bad message length")
OSError: bad message length

1 个答案:

答案 0 :(得分:0)