ipython / ipyparallel

IPython Parallel: Interactive Parallel Computing in Python

Home Page:https://ipyparallel.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pytest -v failed about ipyparallel@8.4.1 on centos8_aarch64

Tom-python0121 opened this issue · comments

Hello,I meet a problem:pytest -v failed about ipyparallel@8.4.1 on centos8_aarch64

Steps to reproduce the issue

[root@localhost [ipyparallel]# pytest -v
……
FAILED ipyparallel/tests/test_magics.py::TestParallelMagics::test_cellpx_block_args - KeyError: 'ename'
FAILED ipyparallel/tests/test_magics.py::TestParallelMagics::test_cellpx_error_stream - KeyError: 'ename'
FAILED ipyparallel/tests/test_magics.py::TestParallelMagics::test_cellpx_keyboard_interrupt_SIGKILL - KeyError: 'ename'
FAILED ipyparallel/tests/test_magics.py::TestParallelMagics::test_cellpx_keyboard_interrupt_signal_0 - KeyError: 'ename'
FAILED ipyparallel/tests/test_magics.py::TestParallelMagics::test_cellpx_keyboard_interrupt_signal_9 - KeyError: 'ename'
FAILED ipyparallel/tests/test_magics.py::TestParallelMagics::test_px_blocking - KeyError: 'ename'
FAILED ipyparallel/tests/test_magics.py::TestParallelMagics::test_px_pylab - KeyError: 'ename'
=============================================================== 7 failed, 440 passed, 35 skipped, 3 xfailed, 8 xpassed in 369.06s (0:06:09) ================================================================

detail:
================================================================================================= FAILURES =================================================================================================
________________________________________________________________________________ TestParallelMagics.test_cellpx_block_args _________________________________________________________________________________
ipyparallel/tests/clienttest.py:195: in setUp
    self.client.clear(block=True)
ipyparallel/client/client.py:1706: in clear
    return self._send_control_request(
ipyparallel/client/client.py:1680: in _send_control_request
    raise self._unwrap_exception(msg['content'])
ipyparallel/client/client.py:802: in _unwrap_exception
    e = error.unwrap_exception(content)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

content = {'status': 'aborted'}

    def unwrap_exception(content):
        err = RemoteError(
>           content['ename'],
            content['evalue'],
            '\n'.join(content['traceback']),
            content.get('engine_info', {}),
        )
E       KeyError: 'ename'

ipyparallel/error.py:266: KeyError
------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------
2022-08-10 16:30:48.566 [IPController] client::client b'\x00k\x8bEr' requested 'connection_request'
2022-08-10 16:30:48.566 [IPController] client::client [b'\x00k\x8bEr'] connected
2022-08-10 16:30:48.576 [IPController] client::client b'\x00k\x8bEs' requested 'connection_request'
2022-08-10 16:30:48.576 [IPController] client::client [b'\x00k\x8bEs'] connected
2022-08-10 16:30:48.583 [IPController] monitor traffic: b'incontrol'
2022-08-10 16:30:48.583 [IPController] monitor traffic: b'incontrol'
2022-08-10 16:30:48.584 [IPEngine] Control received: {'header': {'msg_id': '1ba2f80e-660753547f08186a9ca7359b_2479216_1', 'msg_type': 'clear_request', 'username': 'root', 'session': '1ba2f80e-660753547f08186a9ca7359b', 'date': '2022-08-10T08:30:48.581549Z', 'version': '5.3'}, 'msg_id': '1ba2f80e-660753547f08186a9ca7359b_2479216_1', 'msg_type': 'clear_request', 'parent_header': {}, 'metadata': {}, 'content': {}, 'buffers': []}
2022-08-10 16:30:48.585 [IPEngine] Control received: {'header': {'msg_id': '1ba2f80e-660753547f08186a9ca7359b_2479216_2', 'msg_type': 'clear_request', 'username': 'root', 'session': '1ba2f80e-660753547f08186a9ca7359b', 'date': '2022-08-10T08:30:48.581838Z', 'version': '5.3'}, 'msg_id': '1ba2f80e-660753547f08186a9ca7359b_2479216_2', 'msg_type': 'clear_request', 'parent_header': {}, 'metadata': {}, 'content': {}, 'buffers': []}
2022-08-10 16:30:48.585 [IPEngine] Aborting 1ba2f80e-660753547f08186a9ca7359b_2479216_1: clear_request
2022-08-10 16:30:48.587 [IPController] monitor traffic: b'outcontrol'
2022-08-10 16:30:48.587 [IPController] monitor traffic: b'iopub'
2022-08-10 16:30:48.588 [IPController] monitor traffic: b'iopub'
----------------------------------------------------------------------------------------- Captured stderr teardown -----------------------------------------------------------------------------------------
2022-08-10 16:30:48.624 [IPController] monitor traffic: b'iopub'
2022-08-10 16:30:48.627 [IPController] monitor traffic: b'iopub'
2022-08-10 16:30:48.628 [IPController] monitor traffic: b'outcontrol'
2022-08-10 16:30:48.640 [IPEngine] Finishing abort
------------------------------------------------------------------------------------------ Captured log teardown -------------------------------------------------------------------------------------------
ERROR    asyncio:base_events.py:1707 Exception in callback BaseAsyncIOLoop._handle_events(67, 1)
handle: <Handle BaseAsyncIOLoop._handle_events(67, 1)>
Traceback (most recent call last):
  File "/home/spack/opt/spack/linux-centos8-aarch64/gcc-8.5.0/python-3.8.8-m3k3pvne56yo7wyd7a3bwf7mugupszik/lib/python3.8/asyncio/events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "/home/spack/opt/spack/linux-centos8-aarch64/gcc-8.5.0/py-tornado-6.1.0-xagd6dhl7oifyjgwo77az6lejhtn75ef/lib/python3.8/site-packages/tornado/platform/asyncio.py", line 189, in _handle_events
    handler_func(fileobj, events)
  File "/home/spack/opt/spack/linux-centos8-aarch64/gcc-8.5.0/py-pyzmq-18.1.0-5fdt3uwhrnc5shxexkf74nkvuaitprft/lib/python3.8/site-packages/zmq/eventloop/zmqstream.py", line 452, in _handle_events
    zmq_events = self.socket.EVENTS
  File "/home/spack/opt/spack/linux-centos8-aarch64/gcc-8.5.0/py-pyzmq-18.1.0-5fdt3uwhrnc5shxexkf74nkvuaitprft/lib/python3.8/site-packages/zmq/sugar/attrsettr.py", line 48, in __getattr__
    return self._get_attr_opt(upper_key, opt)
  File "/home/spack/opt/spack/linux-centos8-aarch64/gcc-8.5.0/py-pyzmq-18.1.0-5fdt3uwhrnc5shxexkf74nkvuaitprft/lib/python3.8/site-packages/zmq/sugar/attrsettr.py", line 52, in _get_attr_opt
    return self.get(opt)
  File "zmq/backend/cython/socket.pyx", line 472, in zmq.backend.cython.socket.Socket.get
  File "zmq/backend/cython/socket.pyx", line 135, in zmq.backend.cython.socket._check_closed
zmq.error.ZMQError: Socket operation on non-socket

So the test failed. Can you help me see it?