[Python-modules-team] Bug#893385: ipykernel FTBFS: test failures

Adrian Bunk bunk at debian.org
Sun Mar 18 13:06:16 UTC 2018


Source: ipykernel
Version: 4.8.2-2
Severity: serious
Control: affects -1 src:jupyter-notebook

Some recent change in unstable makes ipykernel FTBFS:

https://tests.reproducible-builds.org/debian/history/ipykernel.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/ipykernel.html

...
======================================================================
ERROR: IPython.embed_kernel() is basically functional
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/test_embed_kernel.py", line 76, in test_embed_kernel_basic
    with setup_kernel(cmd) as client:
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/test_embed_kernel.py", line 46, in setup_kernel
    raise IOError("Kernel failed to start:\n%s" % e)
IOError: Kernel failed to start:
Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "<string>", line 5, in go
  File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line 91, in embed_kernel
    real_embed_kernel(module=module, local_ns=local_ns, **kwargs)
  File "ipykernel/embed.py", line 38, in embed_kernel
    app.initialize([])
  File "<decorator-gen-121>", line 2, in initialize
  File "/usr/lib/python2.7/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "ipykernel/kernelapp.py", line 452, in initialize
    zmq_ioloop.install()
  File "/usr/lib/python2.7/dist-packages/zmq/eventloop/ioloop.py", line 210, in install
    assert (not ioloop.IOLoop.initialized()) or \
AttributeError: type object 'IOLoop' has no attribute 'initialized'


======================================================================
ERROR: IPython.embed_kernel() inherits calling namespace
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/test_embed_kernel.py", line 108, in test_embed_kernel_namespace
    with setup_kernel(cmd) as client:
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/test_embed_kernel.py", line 46, in setup_kernel
    raise IOError("Kernel failed to start:\n%s" % e)
IOError: Kernel failed to start:
Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "<string>", line 5, in go
  File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line 91, in embed_kernel
    real_embed_kernel(module=module, local_ns=local_ns, **kwargs)
  File "ipykernel/embed.py", line 38, in embed_kernel
    app.initialize([])
  File "<decorator-gen-121>", line 2, in initialize
  File "/usr/lib/python2.7/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "ipykernel/kernelapp.py", line 452, in initialize
    zmq_ioloop.install()
  File "/usr/lib/python2.7/dist-packages/zmq/eventloop/ioloop.py", line 210, in install
    assert (not ioloop.IOLoop.initialized()) or \
AttributeError: type object 'IOLoop' has no attribute 'initialized'


======================================================================
ERROR: IPython.embed_kernel() can be called multiple times
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/test_embed_kernel.py", line 146, in test_embed_kernel_reentrant
    with setup_kernel(cmd) as client:
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/test_embed_kernel.py", line 46, in setup_kernel
    raise IOError("Kernel failed to start:\n%s" % e)
IOError: Kernel failed to start:
Traceback (most recent call last):
  File "<string>", line 8, in <module>
  File "<string>", line 5, in go
  File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line 91, in embed_kernel
    real_embed_kernel(module=module, local_ns=local_ns, **kwargs)
  File "ipykernel/embed.py", line 38, in embed_kernel
    app.initialize([])
  File "<decorator-gen-121>", line 2, in initialize
  File "/usr/lib/python2.7/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "ipykernel/kernelapp.py", line 452, in initialize
    zmq_ioloop.install()
  File "/usr/lib/python2.7/dist-packages/zmq/eventloop/ioloop.py", line 210, in install
    assert (not ioloop.IOLoop.initialized()) or \
AttributeError: type object 'IOLoop' has no attribute 'initialized'


======================================================================
ERROR: test suite for <module 'ipykernel.tests.test_eventloop' from '/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/test_eventloop.py'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 209, in run
    self.setUp()
  File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 292, in setUp
    self.setupContext(ancestor)
  File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 315, in setupContext
    try_run(context, names)
  File "/usr/lib/python2.7/dist-packages/nose/util.py", line 471, in try_run
    return func()
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/test_eventloop.py", line 15, in setup
    KM, KC = start_new_kernel()
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/utils.py", line 41, in start_new_kernel
    return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs)
  File "/usr/lib/python2.7/dist-packages/jupyter_client/manager.py", line 471, in start_new_kernel
    kc.wait_for_ready(timeout=startup_timeout)
  File "/usr/lib/python2.7/dist-packages/jupyter_client/blocking/client.py", line 120, in wait_for_ready
    raise RuntimeError('Kernel died before replying to kernel_info')
RuntimeError: Kernel died before replying to kernel_info
-------------------- >> begin captured logging << --------------------
traitlets: DEBUG: Starting kernel: [u'/usr/bin/python2.7', u'-m', u'ipykernel_launcher', u'-f', u'/tmp/tmp6Q6riw.json']
traitlets: DEBUG: Connecting to: tcp://127.0.0.1:34747
traitlets: DEBUG: connecting shell channel to tcp://127.0.0.1:34749
traitlets: DEBUG: Connecting to: tcp://127.0.0.1:34749
traitlets: DEBUG: connecting iopub channel to tcp://127.0.0.1:55891
traitlets: DEBUG: Connecting to: tcp://127.0.0.1:55891
traitlets: DEBUG: connecting stdin channel to tcp://127.0.0.1:54657
traitlets: DEBUG: Connecting to: tcp://127.0.0.1:54657
traitlets: DEBUG: connecting heartbeat channel to tcp://127.0.0.1:34963
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: simple print statement in kernel
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/test_kernel.py", line 42, in test_simple_print
    with kernel() as kc:
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/utils.py", line 104, in kernel
    yield start_global_kernel()
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/utils.py", line 88, in start_global_kernel
    KM, KC = start_new_kernel()
  File "/build/1st/ipykernel-4.8.2/.pybuild/cpython2_2.7/build/ipykernel/tests/utils.py", line 41, in start_new_kernel
    return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs)
  File "/usr/lib/python2.7/dist-packages/jupyter_client/manager.py", line 471, in start_new_kernel
    kc.wait_for_ready(timeout=startup_timeout)
  File "/usr/lib/python2.7/dist-packages/jupyter_client/blocking/client.py", line 120, in wait_for_ready
    raise RuntimeError('Kernel died before replying to kernel_info')
RuntimeError: Kernel died before replying to kernel_info
-------------------- >> begin captured logging << --------------------
traitlets: DEBUG: Starting kernel: [u'/usr/bin/python2.7', u'-m', u'ipykernel_launcher', u'-f', u'/tmp/tmpsYBJuT.json']
traitlets: DEBUG: Connecting to: tcp://127.0.0.1:58943
traitlets: DEBUG: connecting shell channel to tcp://127.0.0.1:36615
traitlets: DEBUG: Connecting to: tcp://127.0.0.1:36615
traitlets: DEBUG: connecting iopub channel to tcp://127.0.0.1:47469
traitlets: DEBUG: Connecting to: tcp://127.0.0.1:47469
traitlets: DEBUG: connecting stdin channel to tcp://127.0.0.1:56429
traitlets: DEBUG: Connecting to: tcp://127.0.0.1:56429
traitlets: DEBUG: connecting heartbeat channel to tcp://127.0.0.1:39085
--------------------- >> end captured logging << ---------------------
...



More information about the Python-modules-team mailing list