Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec'], chrootPath='/var/lib/mock/f40-build-2412722-60563/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Wrote: /builddir/build/SRPMS/python-ipykernel-6.25.1-3.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec'], chrootPath='/var/lib/mock/f40-build-2412722-60563/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xKNGBI + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ipykernel-6.25.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ipykernel-6.25.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ipykernel-6.25.1 + rm -rf /builddir/build/BUILD/ipykernel-6.25.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/ipykernel-6.25.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i '/"debugpy/d' pyproject.toml + sed -e 's|\(('\''https://docs.python.org/3/'\'', \)None)|\1'\''/usr/share/doc/python3-docs/html/objects.inv'\'')|' -e 's|\(('\''https://ipython.readthedocs.io/en/latest'\'', \)None)|\1'\''/usr/share/doc/python3-ipython-doc/html/objects.inv'\'')|' -e 's|\(('\''https://jupyter.readthedocs.io/en/latest'\'', \)None)|\1'\''/usr/share/doc/python-jupyter-client/html/objects.inv'\'')|' -i docs/conf.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.ZYieYS + umask 022 + cd /builddir/build/BUILD + cd ipykernel-6.25.1 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + echo -n + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/ipykernel-6.25.1/pyproject-wheeldir --output /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-buildrequires -x test Handling hatchling>=1.4 from build-system.requires Requirement not satisfied: hatchling>=1.4 Handling jupyter_client>=6 from build-system.requires Requirement not satisfied: jupyter_client>=6 Exiting dependency generation pass: build backend + cat /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-ipykernel-6.25.1-3.fc40.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec'], chrootPath='/var/lib/mock/f40-build-2412722-60563/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EI4Pgh + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ipykernel-6.25.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ipykernel-6.25.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ipykernel-6.25.1 + rm -rf /builddir/build/BUILD/ipykernel-6.25.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/ipykernel-6.25.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i '/"debugpy/d' pyproject.toml + sed -e 's|\(('\''https://docs.python.org/3/'\'', \)None)|\1'\''/usr/share/doc/python3-docs/html/objects.inv'\'')|' -e 's|\(('\''https://ipython.readthedocs.io/en/latest'\'', \)None)|\1'\''/usr/share/doc/python3-ipython-doc/html/objects.inv'\'')|' -e 's|\(('\''https://jupyter.readthedocs.io/en/latest'\'', \)None)|\1'\''/usr/share/doc/python-jupyter-client/html/objects.inv'\'')|' -i docs/conf.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.PCqkHe + umask 022 + cd /builddir/build/BUILD + cd ipykernel-6.25.1 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + echo -n + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/ipykernel-6.25.1/pyproject-wheeldir --output /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-buildrequires -x test Handling hatchling>=1.4 from build-system.requires Requirement satisfied: hatchling>=1.4 (installed: hatchling 1.21.1) Handling jupyter_client>=6 from build-system.requires Requirement satisfied: jupyter_client>=6 (installed: jupyter_client 7.4.9) Handling appnope; platform_system == 'Darwin' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: appnope; platform_system == 'Darwin' Handling comm>=0.1.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: comm>=0.1.1 Handling ipython>=7.23.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: ipython>=7.23.1 Handling jupyter-client>=6.1.12 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: jupyter-client>=6.1.12 (installed: jupyter-client 7.4.9) Handling jupyter-core!=5.0.*,>=4.12 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: jupyter-core!=5.0.*,>=4.12 (installed: jupyter-core 5.1.0) Handling matplotlib-inline>=0.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: matplotlib-inline>=0.1 Handling nest-asyncio from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: nest-asyncio (installed: nest-asyncio 1.6.0) Handling packaging from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: packaging (installed: packaging 23.2) Handling psutil from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: psutil Handling pyzmq>=20 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pyzmq>=20 (installed: pyzmq 25.1.0) Handling tornado>=6.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: tornado>=6.1 (installed: tornado 6.3.3) Handling traitlets>=5.4.0 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: traitlets>=5.4.0 (installed: traitlets 5.11.2) Handling coverage[toml]; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: coverage[toml]; extra == 'cov' Handling curio; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: curio; extra == 'cov' Handling matplotlib; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: matplotlib; extra == 'cov' Handling pytest-cov; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pytest-cov; extra == 'cov' Handling trio; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: trio; extra == 'cov' Handling myst-parser; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: myst-parser; extra == 'docs' Handling pydata-sphinx-theme; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pydata-sphinx-theme; extra == 'docs' Handling sphinx; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinx; extra == 'docs' Handling sphinx-autodoc-typehints; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinx-autodoc-typehints; extra == 'docs' Handling sphinxcontrib-github-alt; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinxcontrib-github-alt; extra == 'docs' Handling sphinxcontrib-spelling; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinxcontrib-spelling; extra == 'docs' Handling trio; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: trio; extra == 'docs' Handling pyqt5; extra == 'pyqt5' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pyqt5; extra == 'pyqt5' Handling pyside6; extra == 'pyside6' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pyside6; extra == 'pyside6' Handling flaky; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: flaky; extra == 'test' Handling ipyparallel; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: ipyparallel; extra == 'test' Handling pre-commit; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: pre-commit; extra == 'test' Handling pytest-asyncio; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: pytest-asyncio; extra == 'test' Handling pytest-cov; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: pytest-cov; extra == 'test' Handling pytest-timeout; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: pytest-timeout; extra == 'test' Handling pytest>=7.0; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement not satisfied: pytest>=7.0; extra == 'test' + cat /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-buildrequires + rm -rfv ipykernel-6.25.1.dist-info/ removed 'ipykernel-6.25.1.dist-info/METADATA' removed directory 'ipykernel-6.25.1.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-ipykernel-6.25.1-3.fc40.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec'], chrootPath='/var/lib/mock/f40-build-2412722-60563/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.shSsEN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ipykernel-6.25.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ipykernel-6.25.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ipykernel-6.25.1 + rm -rf /builddir/build/BUILD/ipykernel-6.25.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/ipykernel-6.25.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i '/"debugpy/d' pyproject.toml + sed -e 's|\(('\''https://docs.python.org/3/'\'', \)None)|\1'\''/usr/share/doc/python3-docs/html/objects.inv'\'')|' -e 's|\(('\''https://ipython.readthedocs.io/en/latest'\'', \)None)|\1'\''/usr/share/doc/python3-ipython-doc/html/objects.inv'\'')|' -e 's|\(('\''https://jupyter.readthedocs.io/en/latest'\'', \)None)|\1'\''/usr/share/doc/python-jupyter-client/html/objects.inv'\'')|' -i docs/conf.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.r9Q0xG + umask 022 + cd /builddir/build/BUILD + cd ipykernel-6.25.1 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + echo -n + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/ipykernel-6.25.1/pyproject-wheeldir --output /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-buildrequires -x test Handling hatchling>=1.4 from build-system.requires Requirement satisfied: hatchling>=1.4 (installed: hatchling 1.21.1) Handling jupyter_client>=6 from build-system.requires Requirement satisfied: jupyter_client>=6 (installed: jupyter_client 7.4.9) Handling appnope; platform_system == 'Darwin' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: appnope; platform_system == 'Darwin' Handling comm>=0.1.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: comm>=0.1.1 (installed: comm 0.2.1) Handling ipython>=7.23.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: ipython>=7.23.1 (installed: ipython 8.14.0) Handling jupyter-client>=6.1.12 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: jupyter-client>=6.1.12 (installed: jupyter-client 7.4.9) Handling jupyter-core!=5.0.*,>=4.12 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: jupyter-core!=5.0.*,>=4.12 (installed: jupyter-core 5.1.0) Handling matplotlib-inline>=0.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: matplotlib-inline>=0.1 (installed: matplotlib-inline 0.1.6) Handling nest-asyncio from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: nest-asyncio (installed: nest-asyncio 1.6.0) Handling packaging from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: packaging (installed: packaging 23.2) Handling psutil from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: psutil (installed: psutil 5.9.5) Handling pyzmq>=20 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pyzmq>=20 (installed: pyzmq 25.1.0) Handling tornado>=6.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: tornado>=6.1 (installed: tornado 6.3.3) Handling traitlets>=5.4.0 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: traitlets>=5.4.0 (installed: traitlets 5.11.2) Handling coverage[toml]; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: coverage[toml]; extra == 'cov' Handling curio; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: curio; extra == 'cov' Handling matplotlib; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: matplotlib; extra == 'cov' Handling pytest-cov; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pytest-cov; extra == 'cov' Handling trio; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: trio; extra == 'cov' Handling myst-parser; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: myst-parser; extra == 'docs' Handling pydata-sphinx-theme; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pydata-sphinx-theme; extra == 'docs' Handling sphinx; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinx; extra == 'docs' Handling sphinx-autodoc-typehints; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinx-autodoc-typehints; extra == 'docs' Handling sphinxcontrib-github-alt; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinxcontrib-github-alt; extra == 'docs' Handling sphinxcontrib-spelling; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinxcontrib-spelling; extra == 'docs' Handling trio; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: trio; extra == 'docs' Handling pyqt5; extra == 'pyqt5' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pyqt5; extra == 'pyqt5' Handling pyside6; extra == 'pyside6' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pyside6; extra == 'pyside6' Handling flaky; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: flaky; extra == 'test' (installed: flaky 3.7.0) Handling ipyparallel; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: ipyparallel; extra == 'test' (installed: ipyparallel 8.6.1) Handling pre-commit; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pre-commit; extra == 'test' (installed: pre-commit 3.6.0) Handling pytest-asyncio; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pytest-asyncio; extra == 'test' (installed: pytest-asyncio 0.21.0) Handling pytest-cov; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pytest-cov; extra == 'test' (installed: pytest-cov 4.0.0) Handling pytest-timeout; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pytest-timeout; extra == 'test' (installed: pytest-timeout 2.2.0) Handling pytest>=7.0; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pytest>=7.0; extra == 'test' (installed: pytest 7.3.2) + cat /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-buildrequires + rm -rfv ipykernel-6.25.1.dist-info/ removed 'ipykernel-6.25.1.dist-info/METADATA' removed directory 'ipykernel-6.25.1.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-ipykernel-6.25.1-3.fc40.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec'], chrootPath='/var/lib/mock/f40-build-2412722-60563/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.kraPA0 + umask 022 + cd /builddir/build/BUILD + cd ipykernel-6.25.1 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + echo -n + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + RPM_TOXENV=py312 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/ipykernel-6.25.1/pyproject-wheeldir --output /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-buildrequires -x test Handling hatchling>=1.4 from build-system.requires Requirement satisfied: hatchling>=1.4 (installed: hatchling 1.21.1) Handling jupyter_client>=6 from build-system.requires Requirement satisfied: jupyter_client>=6 (installed: jupyter_client 7.4.9) Handling appnope; platform_system == 'Darwin' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: appnope; platform_system == 'Darwin' Handling comm>=0.1.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: comm>=0.1.1 (installed: comm 0.2.1) Handling ipython>=7.23.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: ipython>=7.23.1 (installed: ipython 8.14.0) Handling jupyter-client>=6.1.12 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: jupyter-client>=6.1.12 (installed: jupyter-client 7.4.9) Handling jupyter-core!=5.0.*,>=4.12 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: jupyter-core!=5.0.*,>=4.12 (installed: jupyter-core 5.1.0) Handling matplotlib-inline>=0.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: matplotlib-inline>=0.1 (installed: matplotlib-inline 0.1.6) Handling nest-asyncio from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: nest-asyncio (installed: nest-asyncio 1.6.0) Handling packaging from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: packaging (installed: packaging 23.2) Handling psutil from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: psutil (installed: psutil 5.9.5) Handling pyzmq>=20 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pyzmq>=20 (installed: pyzmq 25.1.0) Handling tornado>=6.1 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: tornado>=6.1 (installed: tornado 6.3.3) Handling traitlets>=5.4.0 from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: traitlets>=5.4.0 (installed: traitlets 5.11.2) Handling coverage[toml]; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: coverage[toml]; extra == 'cov' Handling curio; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: curio; extra == 'cov' Handling matplotlib; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: matplotlib; extra == 'cov' Handling pytest-cov; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pytest-cov; extra == 'cov' Handling trio; extra == 'cov' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: trio; extra == 'cov' Handling myst-parser; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: myst-parser; extra == 'docs' Handling pydata-sphinx-theme; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pydata-sphinx-theme; extra == 'docs' Handling sphinx; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinx; extra == 'docs' Handling sphinx-autodoc-typehints; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinx-autodoc-typehints; extra == 'docs' Handling sphinxcontrib-github-alt; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinxcontrib-github-alt; extra == 'docs' Handling sphinxcontrib-spelling; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: sphinxcontrib-spelling; extra == 'docs' Handling trio; extra == 'docs' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: trio; extra == 'docs' Handling pyqt5; extra == 'pyqt5' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pyqt5; extra == 'pyqt5' Handling pyside6; extra == 'pyside6' from hook generated metadata: Requires-Dist (ipykernel) Ignoring alien requirement: pyside6; extra == 'pyside6' Handling flaky; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: flaky; extra == 'test' (installed: flaky 3.7.0) Handling ipyparallel; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: ipyparallel; extra == 'test' (installed: ipyparallel 8.6.1) Handling pre-commit; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pre-commit; extra == 'test' (installed: pre-commit 3.6.0) Handling pytest-asyncio; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pytest-asyncio; extra == 'test' (installed: pytest-asyncio 0.21.0) Handling pytest-cov; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pytest-cov; extra == 'test' (installed: pytest-cov 4.0.0) Handling pytest-timeout; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pytest-timeout; extra == 'test' (installed: pytest-timeout 2.2.0) Handling pytest>=7.0; extra == 'test' from hook generated metadata: Requires-Dist (ipykernel) Requirement satisfied: pytest>=7.0; extra == 'test' (installed: pytest 7.3.2) + cat /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-buildrequires + rm -rfv ipykernel-6.25.1.dist-info/ removed 'ipykernel-6.25.1.dist-info/METADATA' removed directory 'ipykernel-6.25.1.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cw3Pea + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ipykernel-6.25.1 + mkdir -p /builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + TMPDIR=/builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/ipykernel-6.25.1/pyproject-wheeldir Processing /builddir/build/BUILD/ipykernel-6.25.1 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: ipykernel Building wheel for ipykernel (pyproject.toml): started Running command Building wheel for ipykernel (pyproject.toml) Building wheel for ipykernel (pyproject.toml): finished with status 'done' Created wheel for ipykernel: filename=ipykernel-6.25.1-py3-none-any.whl size=153295 sha256=c80f02034c36dccca7907d41096bd01eb20b79179a66c311cdfcfa847ffc32f5 Stored in directory: /builddir/.cache/pip/wheels/af/14/fc/f2f40a5365e917d96ea129e01e51a37888695e6fbd1f972d4f Successfully built ipykernel + /usr/bin/make -O -j8 V=1 VERBOSE=1 -C docs html make: Entering directory '/builddir/build/BUILD/ipykernel-6.25.1/docs' sphinx-build -b html -d _build/doctrees . _build/html Running Sphinx v7.2.6 Initializing GitHub plugin making output directory... done myst v2.0.0: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions=set(), disable_syntax=[], all_links_external=False, url_schemes=('http', 'https', 'mailto', 'ftp'), ref_domains=None, fence_as_directive=set(), number_code_blocks=[], title_to_header=False, heading_anchors=0, heading_slug_func=None, html_meta={}, footnote_transition=True, words_per_minute=200, substitutions={}, linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area', enable_checkboxes=False, suppress_warnings=[], highlight_code_blocks=True) loading intersphinx inventory from https://docs.python.org/3/objects.inv... loading intersphinx inventory from https://ipython.readthedocs.io/en/latest/objects.inv... loading intersphinx inventory from https://jupyter.readthedocs.io/en/latest/objects.inv... The default value for `navigation_with_keys` will change to `False` in the next release. If you wish to preserve the old behavior for your site, set `navigation_with_keys=True` in the `html_theme_options` dict in your `conf.py` file. Be aware that `navigation_with_keys = True` has negative accessibility implications: https://github.com/pydata/pydata-sphinx-theme/issues/1492 building [mo]: targets for 0 po files that are out of date writing output... building [html]: targets for 6 source files that are out of date updating environment: [new config] 6 added, 0 changed, 0 removed reading sources... [ 17%] api/ipykernel reading sources... [ 33%] api/ipykernel.comm reading sources... [ 50%] api/ipykernel.inprocess reading sources... [ 67%] api/modules reading sources... [ 83%] changelog reading sources... [100%] index looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done copying assets... copying static files... done copying extra files... done done writing output... [ 17%] api/ipykernel writing output... [ 33%] api/ipykernel.comm writing output... [ 50%] api/ipykernel.inprocess writing output... [ 67%] api/modules writing output... [ 83%] changelog writing output... [100%] index generating indices... genindex py-modindex done writing additional pages... search done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 4 warnings. The HTML pages are in _build/html. Build finished. The HTML pages are in _build/html. make: Leaving directory '/builddir/build/BUILD/ipykernel-6.25.1/docs' WARNING: failed to reach any of the inventories with the following issues: intersphinx inventory 'https://jupyter.readthedocs.io/en/latest/objects.inv' not fetchable due to : HTTPSConnectionPool(host='jupyter.readthedocs.io', port=443): Max retries exceeded with url: /en/latest/objects.inv (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')) WARNING: failed to reach any of the inventories with the following issues: intersphinx inventory 'https://docs.python.org/3/objects.inv' not fetchable due to : HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded with url: /3/objects.inv (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')) WARNING: failed to reach any of the inventories with the following issues: intersphinx inventory 'https://ipython.readthedocs.io/en/latest/objects.inv' not fetchable due to : HTTPSConnectionPool(host='ipython.readthedocs.io', port=443): Max retries exceeded with url: /en/latest/objects.inv (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')) WARNING: autodoc: failed to import module 'trio_runner' from module 'ipykernel'; the following exception was raised: No module named 'trio' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.YiIobm + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch ++ dirname /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ipykernel-6.25.1 ++ xargs basename --multiple ++ ls /builddir/build/BUILD/ipykernel-6.25.1/pyproject-wheeldir/ipykernel-6.25.1-py3-none-any.whl ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=ipykernel==6.25.1 + '[' -z ipykernel==6.25.1 ']' + TMPDIR=/builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/ipykernel-6.25.1/pyproject-wheeldir ipykernel==6.25.1 Using pip 23.3.2 from /usr/lib/python3.12/site-packages/pip (python 3.12) Looking in links: /builddir/build/BUILD/ipykernel-6.25.1/pyproject-wheeldir Processing ./pyproject-wheeldir/ipykernel-6.25.1-py3-none-any.whl Installing collected packages: ipykernel Successfully installed ipykernel-6.25.1 + '[' -d /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/bin ']' + rm -f /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib/python3.12/site-packages ']' + site_dirs+=("/usr/lib/python3.12/site-packages") + '[' /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib64/python3.12/site-packages '!=' /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib/python3.12/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib64/python3.12/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.12/site-packages/ipykernel-6.25.1.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib/python3.12/site-packages/ipykernel-6.25.1.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch --record /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib/python3.12/site-packages/ipykernel-6.25.1.dist-info/RECORD --output /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-record + rm -fv /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib/python3.12/site-packages/ipykernel-6.25.1.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib/python3.12/site-packages/ipykernel-6.25.1.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib/python3.12/site-packages/ipykernel-6.25.1.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib/python3.12/site-packages/ipykernel-6.25.1.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + RPM_PERCENTAGES_COUNT=2 + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-files --output-modules /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-modules --buildroot /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch --sitelib /usr/lib/python3.12/site-packages --sitearch /usr/lib64/python3.12/site-packages --python-version 3.12 --pyproject-record /builddir/build/BUILD/python-ipykernel-6.25.1-3.fc40.noarch-pyproject-record --prefix /usr ipykernel ipykernel_launcher + mkdir -p /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel + cp -fpavr docs/_build/html /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel 'docs/_build/html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html' 'docs/_build/html/_static' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static' 'docs/_build/html/_static/pygments.css' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/pygments.css' 'docs/_build/html/_static/searchtools.js' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/searchtools.js' 'docs/_build/html/_static/doctools.js' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/doctools.js' 'docs/_build/html/_static/minus.png' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/minus.png' 'docs/_build/html/_static/sphinx_highlight.js' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/sphinx_highlight.js' 'docs/_build/html/_static/basic.css' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/basic.css' 'docs/_build/html/_static/plus.png' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/plus.png' 'docs/_build/html/_static/file.png' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/file.png' 'docs/_build/html/_static/language_data.js' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/language_data.js' 'docs/_build/html/_static/documentation_options.js' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/documentation_options.js' 'docs/_build/html/_static/scripts' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/scripts' 'docs/_build/html/_static/scripts/pydata-sphinx-theme.js.map' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/scripts/pydata-sphinx-theme.js.map' 'docs/_build/html/_static/scripts/bootstrap.js' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/scripts/bootstrap.js' 'docs/_build/html/_static/scripts/bootstrap.js.map' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/scripts/bootstrap.js.map' 'docs/_build/html/_static/scripts/pydata-sphinx-theme.js' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/scripts/pydata-sphinx-theme.js' 'docs/_build/html/_static/scripts/bootstrap.js.LICENSE.txt' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/scripts/bootstrap.js.LICENSE.txt' 'docs/_build/html/_static/styles' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/styles' 'docs/_build/html/_static/styles/pydata-sphinx-theme.css.map' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/styles/pydata-sphinx-theme.css.map' 'docs/_build/html/_static/styles/theme.css' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/styles/theme.css' 'docs/_build/html/_static/styles/pydata-sphinx-theme.css' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/styles/pydata-sphinx-theme.css' 'docs/_build/html/_static/styles/bootstrap.css.map' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/styles/bootstrap.css.map' 'docs/_build/html/_static/styles/bootstrap.css' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/styles/bootstrap.css' 'docs/_build/html/_static/webpack-macros.html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_static/webpack-macros.html' 'docs/_build/html/api' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/api' 'docs/_build/html/api/ipykernel.html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/api/ipykernel.html' 'docs/_build/html/api/ipykernel.comm.html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/api/ipykernel.comm.html' 'docs/_build/html/api/ipykernel.inprocess.html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/api/ipykernel.inprocess.html' 'docs/_build/html/api/modules.html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/api/modules.html' 'docs/_build/html/_sources' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_sources' 'docs/_build/html/_sources/api' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_sources/api' 'docs/_build/html/_sources/api/ipykernel.rst.txt' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_sources/api/ipykernel.rst.txt' 'docs/_build/html/_sources/api/ipykernel.comm.rst.txt' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_sources/api/ipykernel.comm.rst.txt' 'docs/_build/html/_sources/api/ipykernel.inprocess.rst.txt' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_sources/api/ipykernel.inprocess.rst.txt' 'docs/_build/html/_sources/api/modules.rst.txt' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_sources/api/modules.rst.txt' 'docs/_build/html/_sources/changelog.md.txt' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_sources/changelog.md.txt' 'docs/_build/html/_sources/index.rst.txt' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/_sources/index.rst.txt' 'docs/_build/html/changelog.html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/changelog.html' 'docs/_build/html/index.html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/index.html' 'docs/_build/html/genindex.html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/genindex.html' 'docs/_build/html/py-modindex.html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/py-modindex.html' 'docs/_build/html/search.html' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/search.html' 'docs/_build/html/.buildinfo' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/.buildinfo' 'docs/_build/html/searchindex.js' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/searchindex.js' 'docs/_build/html/objects.inv' -> '/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/objects.inv' + rm /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/doc/python-ipykernel/html/.buildinfo + /usr/bin/python3 -m ipykernel install --prefix /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr [InstallIPythonKernelSpecApp] WARNING | Installing to /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/jupyter/kernels, which is not in ['/builddir/.local/share/jupyter/kernels', '/usr/local/share/jupyter/kernels', '/usr/share/jupyter/kernels', '/builddir/.ipython/kernels']. The kernelspec may not be found. Installed kernelspec python3 in /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/jupyter/kernels/python3 + ls /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/jupyter/kernels/python3/ kernel.json logo-32x32.png logo-64x64.png logo-svg.svg + cat /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/share/jupyter/kernels/python3/kernel.json { "argv": [ "/usr/bin/python3", "-m", "ipykernel_launcher", "-f", "{connection_file}" ], "display_name": "Python 3 (ipykernel)", "language": "python", "metadata": { "debugger": false } }+ /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 6.25.1-3.fc40 --unique-debug-suffix -6.25.1-3.fc40.noarch --unique-debug-src-base python-ipykernel-6.25.1-3.fc40.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/ipykernel-6.25.1 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.kSBvyK + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ipykernel-6.25.1 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + PATH=/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib64/python3.12/site-packages:/builddir/build/BUILDROOT/python-ipykernel-6.25.1-3.fc40.noarch/usr/lib/python3.12/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/ipykernel-6.25.1/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=8 + /usr/bin/pytest -Wdefault ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0 rootdir: /builddir/build/BUILD/ipykernel-6.25.1 configfile: pyproject.toml testpaths: ipykernel/tests, ipykernel/inprocess/tests plugins: asyncio-0.21.0, flaky-3.7.0, timeout-2.2.0, cov-4.0.0 asyncio: mode=Mode.AUTO timeout: 300.0s timeout method: signal timeout func_only: False collected 171 items / 2 skipped ipykernel/tests/test_async.py EEEE [ 2%] ipykernel/tests/test_comm.py ... [ 4%] ipykernel/tests/test_connect.py ..... [ 7%] ipykernel/tests/test_embed_kernel.py FFFNOTE: When using the `ipython kernel` entry point, Ctrl-C will not work. To exit, you will have to explicitly quit this process, by either sending "quit" from a client, or using Ctrl-\ in UNIX-like environments. To read more about this, see https://github.com/ipython/ipython/issues/2049 To connect another client to this kernel, use: --existing kernel-424470.json F [ 9%] ipykernel/tests/test_eventloop.py EEEEss [ 12%] ipykernel/tests/test_heartbeat.py .... [ 15%] ipykernel/tests/test_io.py ......F [ 19%] ipykernel/tests/test_ipkernel_direct.py .................... [ 30%] ipykernel/tests/test_jsonutil.py sssss [ 33%] ipykernel/tests/test_kernel.py FssFFFFFFFFFFssFsFFFFFs [ 47%] ipykernel/tests/test_kernel_direct.py .................... [ 59%] ipykernel/tests/test_kernelapp.py ....s [ 61%] ipykernel/tests/test_kernelspec.py .....F....... [ 69%] ipykernel/tests/test_message_spec.py EEEEEEEEEEEEEEEEEEEEEEE [ 83%] ipykernel/tests/test_parentpoller.py .s [ 84%] ipykernel/tests/test_pickleutil.py ..... [ 87%] ipykernel/tests/test_start_kernel.py FF [ 88%] ipykernel/tests/test_zmq_shell.py .......F [ 92%] ipykernel/inprocess/tests/test_kernel.py .s..s.. [ 97%] ipykernel/inprocess/tests/test_kernelmanager.py ..... [100%] ==================================== ERRORS ==================================== ______________________ ERROR at setup of test_async_await ______________________ def setup_function(): """start the global kernel (if it isn't running) and return its client""" global KM, KC > KM, KC = start_new_kernel() ipykernel/tests/test_async.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ---------------------------- Captured stdout setup ----------------------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelapp.py", line 19, in from IPython.core.application import ( # type:ignore[attr-defined] File "/usr/lib/python3.12/site-packages/IPython/__init__.py", line 54, in from .terminal.embed import embed File "/usr/lib/python3.12/site-packages/IPython/terminal/embed.py", line 16, in from IPython.terminal.interactiveshell import TerminalInteractiveShell File "/usr/lib/python3.12/site-packages/IPython/terminal/interactiveshell.py", line 48, in from .debugger import TerminalPdb, Pdb File "/usr/lib/python3.12/site-packages/IPython/terminal/debugger.py", line 6, in from IPython.core.completer import IPCompleter File "/usr/lib/python3.12/site-packages/IPython/core/completer.py", line 250, in import jedi File "", line 1354, in _find_and_load File "", line 1325, in _find_and_load_unlocked File "", line 929, in _load_unlocked File "", line 990, in exec_module File "", line 1086, in get_code File "", line 1185, in get_data KeyboardInterrupt _______________ ERROR at setup of test_async_interrupt[asyncio] ________________ def setup_function(): """start the global kernel (if it isn't running) and return its client""" global KM, KC > KM, KC = start_new_kernel() ipykernel/tests/test_async.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ---------------------------- Captured stdout setup ----------------------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelapp.py", line 19, in from IPython.core.application import ( # type:ignore[attr-defined] File "/usr/lib/python3.12/site-packages/IPython/__init__.py", line 54, in from .terminal.embed import embed File "/usr/lib/python3.12/site-packages/IPython/terminal/embed.py", line 17, in from IPython.terminal.ipapp import load_default_config File "/usr/lib/python3.12/site-packages/IPython/terminal/ipapp.py", line 28, in from IPython.core.magics import ( File "/usr/lib/python3.12/site-packages/IPython/core/magics/__init__.py", line 18, in from .code import CodeMagics, MacroToEdit File "/usr/lib/python3.12/site-packages/IPython/core/magics/code.py", line 23, in from urllib.request import Request, urlopen File "/usr/lib64/python3.12/urllib/request.py", line 88, in import http.client File "/usr/lib64/python3.12/http/client.py", line 71, in import email.parser File "/usr/lib64/python3.12/email/parser.py", line 12, in from email.feedparser import FeedParser, BytesFeedParser File "/usr/lib64/python3.12/email/feedparser.py", line 27, in from email._policybase import compat32 File "/usr/lib64/python3.12/email/_policybase.py", line 7, in from email import header File "/usr/lib64/python3.12/email/header.py", line 16, in import email.quoprimime File "", line 1354, in _find_and_load File "", line 1325, in _find_and_load_unlocked File "", line 929, in _load_unlocked File "", line 990, in exec_module File "", line 1123, in get_code File "", line 754, in _compile_bytecode File "", line 491, in _verbose_message KeyboardInterrupt _________________ ERROR at setup of test_async_interrupt[trio] _________________ def setup_function(): """start the global kernel (if it isn't running) and return its client""" global KM, KC > KM, KC = start_new_kernel() ipykernel/tests/test_async.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ---------------------------- Captured stdout setup ----------------------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelapp.py", line 19, in from IPython.core.application import ( # type:ignore[attr-defined] File "/usr/lib/python3.12/site-packages/IPython/__init__.py", line 54, in from .terminal.embed import embed File "/usr/lib/python3.12/site-packages/IPython/terminal/embed.py", line 16, in from IPython.terminal.interactiveshell import TerminalInteractiveShell File "/usr/lib/python3.12/site-packages/IPython/terminal/interactiveshell.py", line 48, in from .debugger import TerminalPdb, Pdb File "/usr/lib/python3.12/site-packages/IPython/terminal/debugger.py", line 6, in from IPython.core.completer import IPCompleter File "/usr/lib/python3.12/site-packages/IPython/core/completer.py", line 250, in import jedi File "/usr/lib/python3.12/site-packages/jedi/__init__.py", line 32, in from jedi.api import Script, Interpreter, set_debug_function, preload_module File "/usr/lib/python3.12/site-packages/jedi/api/__init__.py", line 21, in from jedi.api import classes File "/usr/lib/python3.12/site-packages/jedi/api/classes.py", line 24, in from jedi.inference.utils import unite File "/usr/lib/python3.12/site-packages/jedi/inference/__init__.py", line 70, in from jedi.inference import imports File "/usr/lib/python3.12/site-packages/jedi/inference/imports.py", line 29, in from jedi.inference.gradual.typeshed import import_module_decorator, \ File "/usr/lib/python3.12/site-packages/jedi/inference/gradual/typeshed.py", line 12, in from jedi.inference.gradual.stub_value import TypingModuleWrapper, StubModuleValue File "/usr/lib/python3.12/site-packages/jedi/inference/gradual/stub_value.py", line 5, in from jedi.inference.gradual.typing import TypingModuleFilterWrapper File "/usr/lib/python3.12/site-packages/jedi/inference/gradual/typing.py", line 19, in from jedi.inference.gradual.base import BaseTypingValue, \ File "/usr/lib/python3.12/site-packages/jedi/inference/gradual/base.py", line 373, in class BaseTypingValue(LazyValueWrapper): KeyboardInterrupt ________________ ERROR at setup of test_async_interrupt[curio] _________________ def setup_function(): """start the global kernel (if it isn't running) and return its client""" global KM, KC > KM, KC = start_new_kernel() ipykernel/tests/test_async.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ---------------------------- Captured stdout setup ----------------------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelapp.py", line 19, in from IPython.core.application import ( # type:ignore[attr-defined] File "/usr/lib/python3.12/site-packages/IPython/__init__.py", line 54, in from .terminal.embed import embed File "/usr/lib/python3.12/site-packages/IPython/terminal/embed.py", line 16, in from IPython.terminal.interactiveshell import TerminalInteractiveShell File "/usr/lib/python3.12/site-packages/IPython/terminal/interactiveshell.py", line 48, in from .debugger import TerminalPdb, Pdb File "/usr/lib/python3.12/site-packages/IPython/terminal/debugger.py", line 6, in from IPython.core.completer import IPCompleter File "/usr/lib/python3.12/site-packages/IPython/core/completer.py", line 250, in import jedi File "/usr/lib/python3.12/site-packages/jedi/__init__.py", line 32, in from jedi.api import Script, Interpreter, set_debug_function, preload_module File "/usr/lib/python3.12/site-packages/jedi/api/__init__.py", line 21, in from jedi.api import classes File "/usr/lib/python3.12/site-packages/jedi/api/classes.py", line 33, in from jedi.api.helpers import filter_follow_imports File "", line 1354, in _find_and_load File "", line 1325, in _find_and_load_unlocked File "", line 929, in _load_unlocked File "", line 990, in exec_module File "", line 1086, in get_code File "", line 1185, in get_data KeyboardInterrupt ___________________ ERROR at setup of test_asyncio_interrupt ___________________ def setup(): """start the global kernel (if it isn't running) and return its client""" global KM, KC > KM, KC = start_new_kernel() ipykernel/tests/test_eventloop.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ________________________ ERROR at setup of test_tk_loop ________________________ def setup(): """start the global kernel (if it isn't running) and return its client""" global KM, KC > KM, KC = start_new_kernel() ipykernel/tests/test_eventloop.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _____________________ ERROR at setup of test_asyncio_loop ______________________ def setup(): """start the global kernel (if it isn't running) and return its client""" global KM, KC > KM, KC = start_new_kernel() ipykernel/tests/test_eventloop.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ______________________ ERROR at setup of test_enable_gui _______________________ def setup(): """start the global kernel (if it isn't running) and return its client""" global KM, KC > KM, KC = start_new_kernel() ipykernel/tests/test_eventloop.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ________________________ ERROR at setup of test_execute ________________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ____________________ ERROR at setup of test_execute_silent _____________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _____________________ ERROR at setup of test_execute_error _____________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ______________________ ERROR at setup of test_execute_inc ______________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _________________ ERROR at setup of test_execute_stop_on_error _________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _______________ ERROR at setup of test_non_execute_stop_on_error _______________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ___________________ ERROR at setup of test_user_expressions ____________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _________________ ERROR at setup of test_user_expressions_fail _________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _________________________ ERROR at setup of test_oinfo _________________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ______________________ ERROR at setup of test_oinfo_found ______________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _____________________ ERROR at setup of test_oinfo_detail ______________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ____________________ ERROR at setup of test_oinfo_not_found ____________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _______________________ ERROR at setup of test_complete ________________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError __________________ ERROR at setup of test_kernel_info_request __________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ____________________ ERROR at setup of test_connect_request ____________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ___________________ ERROR at setup of test_comm_info_request ___________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ____________________ ERROR at setup of test_single_payload _____________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ______________________ ERROR at setup of test_is_complete ______________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _____________________ ERROR at setup of test_history_range _____________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _____________________ ERROR at setup of test_history_tail ______________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ____________________ ERROR at setup of test_history_search _____________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ________________________ ERROR at setup of test_stream _________________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _____________________ ERROR at setup of test_display_data ______________________ def setup(): global KC > KC = start_global_kernel() ipykernel/tests/test_message_spec.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError =================================== FAILURES =================================== ___________________________ test_embed_kernel_basic ____________________________ @flaky(max_runs=3) def test_embed_kernel_basic(): """IPython.embed_kernel() is basically functional""" cmd = "\n".join( [ "from IPython import embed_kernel", "def go():", " a=5", ' b="hi there"', " embed_kernel()", "go()", "", ] )  > with setup_kernel(cmd) as client: ipykernel/tests/test_embed_kernel.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = 'from IPython import embed_kernel\ndef go():\n a=5\n b="hi there"\n embed_kernel()\ngo()\n' @contextmanager def setup_kernel(cmd): """start an embedded kernel in a subprocess, and wait for it to be ready  Returns ------- kernel_manager: connected KernelManager instance """  def connection_file_ready(connection_file): """Check if connection_file is a readable json file.""" if not os.path.exists(connection_file): return False try: with open(connection_file) as f: json.load(f) return True except ValueError: return False  kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") try: connection_file = os.path.join( paths.jupyter_runtime_dir(), "kernel-%i.json" % kernel.pid, ) # wait for connection file to exist, timeout after 5s tic = time.time() while ( not connection_file_ready(connection_file) and kernel.poll() is None and time.time() < tic + SETUP_TIMEOUT ): time.sleep(0.1)  # Wait 100ms for the writing to finish time.sleep(0.1)  if kernel.poll() is not None: o, e = kernel.communicate() raise OSError("Kernel failed to start:\n%s" % e)  if not os.path.exists(connection_file): if kernel.poll() is None: kernel.terminate() > raise OSError("Connection file %r never arrived" % connection_file) E OSError: Connection file '/builddir/.local/share/jupyter/runtime/kernel-424530.json' never arrived ipykernel/tests/test_embed_kernel.py:74: OSError _________________________ test_embed_kernel_namespace __________________________ @flaky(max_runs=3) def test_embed_kernel_namespace(): """IPython.embed_kernel() inherits calling namespace""" cmd = "\n".join( [ "from IPython import embed_kernel", "def go():", " a=5", ' b="hi there"', " embed_kernel()", "go()", "", ] )  > with setup_kernel(cmd) as client: ipykernel/tests/test_embed_kernel.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = 'from IPython import embed_kernel\ndef go():\n a=5\n b="hi there"\n embed_kernel()\ngo()\n' @contextmanager def setup_kernel(cmd): """start an embedded kernel in a subprocess, and wait for it to be ready  Returns ------- kernel_manager: connected KernelManager instance """  def connection_file_ready(connection_file): """Check if connection_file is a readable json file.""" if not os.path.exists(connection_file): return False try: with open(connection_file) as f: json.load(f) return True except ValueError: return False  kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") try: connection_file = os.path.join( paths.jupyter_runtime_dir(), "kernel-%i.json" % kernel.pid, ) # wait for connection file to exist, timeout after 5s tic = time.time() while ( not connection_file_ready(connection_file) and kernel.poll() is None and time.time() < tic + SETUP_TIMEOUT ): time.sleep(0.1)  # Wait 100ms for the writing to finish time.sleep(0.1)  if kernel.poll() is not None: o, e = kernel.communicate() raise OSError("Kernel failed to start:\n%s" % e)  if not os.path.exists(connection_file): if kernel.poll() is None: kernel.terminate() > raise OSError("Connection file %r never arrived" % connection_file) E OSError: Connection file '/builddir/.local/share/jupyter/runtime/kernel-424535.json' never arrived ipykernel/tests/test_embed_kernel.py:74: OSError _________________________ test_embed_kernel_reentrant __________________________ @flaky(max_runs=3) def test_embed_kernel_reentrant(): """IPython.embed_kernel() can be called multiple times""" cmd = "\n".join( [ "from IPython import embed_kernel", "count = 0", "def go():", " global count", " embed_kernel()", " count = count + 1", "", "while True: go()", "", ] )  > with setup_kernel(cmd) as client: ipykernel/tests/test_embed_kernel.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = 'from IPython import embed_kernel\ncount = 0\ndef go():\n global count\n embed_kernel()\n count = count + 1\n\nwhile True: go()\n' @contextmanager def setup_kernel(cmd): """start an embedded kernel in a subprocess, and wait for it to be ready  Returns ------- kernel_manager: connected KernelManager instance """  def connection_file_ready(connection_file): """Check if connection_file is a readable json file.""" if not os.path.exists(connection_file): return False try: with open(connection_file) as f: json.load(f) return True except ValueError: return False  kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") try: connection_file = os.path.join( paths.jupyter_runtime_dir(), "kernel-%i.json" % kernel.pid, ) # wait for connection file to exist, timeout after 5s tic = time.time() while ( not connection_file_ready(connection_file) and kernel.poll() is None and time.time() < tic + SETUP_TIMEOUT ): time.sleep(0.1)  # Wait 100ms for the writing to finish time.sleep(0.1)  if kernel.poll() is not None: o, e = kernel.communicate() raise OSError("Kernel failed to start:\n%s" % e)  if not os.path.exists(connection_file): if kernel.poll() is None: kernel.terminate() > raise OSError("Connection file %r never arrived" % connection_file) E OSError: Connection file '/builddir/.local/share/jupyter/runtime/kernel-424544.json' never arrived ipykernel/tests/test_embed_kernel.py:74: OSError ____________________________ test_embed_kernel_func ____________________________ def test_embed_kernel_func(): from types import ModuleType  module = ModuleType("test")  def trigger_stop(): time.sleep(1) app = IPKernelApp.instance() app.io_loop.add_callback(app.io_loop.stop) IPKernelApp.clear_instance()  thread = threading.Thread(target=trigger_stop) thread.start()  > embed_kernel(module, outstream_class=None) ipykernel/tests/test_embed_kernel.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ipykernel/embed.py:57: in embed_kernel app.start() ipykernel/kernelapp.py:736: in start self.io_loop.start() /usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py:195: in start self.asyncio_loop.run_forever() /usr/lib/python3.12/site-packages/nest_asyncio.py:81: in run_forever self._run_once() /usr/lib/python3.12/site-packages/nest_asyncio.py:115: in _run_once event_list = self._selector.select(timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , timeout = -1 def select(self, timeout=None): if timeout is None: timeout = -1 elif timeout <= 0: timeout = 0 else: # epoll_wait() has a resolution of 1 millisecond, round away # from zero to wait *at least* timeout seconds. timeout = math.ceil(timeout * 1e3) * 1e-3  # epoll_wait() expects `maxevents` to be greater than zero; # we want to make sure that `select()` can be called when no # FD is registered. max_ev = max(len(self._fd_to_key), 1)  ready = [] try: > fd_event_list = self._selector.poll(timeout, max_ev) E Failed: Timeout >300.0s /usr/lib64/python3.12/selectors.py:468: Failed ----------------------------- Captured stderr call ----------------------------- [IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled +++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ ~~~~~~~~~~~ Stack of IPythonHistorySavingThread (72057591487787392) ~~~~~~~~~~~~ File "/usr/lib64/python3.12/threading.py", line 1009, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.12/threading.py", line 1052, in _bootstrap_inner self.run() File "/usr/lib/python3.12/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/usr/lib/python3.12/site-packages/IPython/core/history.py", line 60, in only_when_enabled return f(self, *a, **kw) File "/usr/lib/python3.12/site-packages/IPython/core/history.py", line 884, in run self.history_manager.save_flag.wait() File "/usr/lib64/python3.12/threading.py", line 634, in wait signaled = self._cond.wait(timeout) File "/usr/lib64/python3.12/threading.py", line 334, in wait waiter.acquire() ~~~~~~~~~~~~~~~~~~~~~ Stack of Control (72057591840084352) ~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.12/threading.py", line 1009, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.12/threading.py", line 1052, in _bootstrap_inner self.run() File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/control.py", line 23, in run self.io_loop.start() File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 195, in start self.asyncio_loop.run_forever() File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 81, in run_forever self._run_once() File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 115, in _run_once event_list = self._selector.select(timeout) File "/usr/lib64/python3.12/selectors.py", line 468, in select fd_event_list = self._selector.poll(timeout, max_ev) ~~~~~~~~~~~~~~~~~~~~ Stack of Heartbeat (72057591865262464) ~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.12/threading.py", line 1009, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.12/threading.py", line 1052, in _bootstrap_inner self.run() File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/heartbeat.py", line 106, in run zmq.device(zmq.QUEUE, self.socket, self.socket) ~~~~~~~~~~~~~~~~~~~~~~ Stack of IOPub (72057591873655168) ~~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.12/threading.py", line 1009, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.12/threading.py", line 1052, in _bootstrap_inner self.run() File "/usr/lib64/python3.12/threading.py", line 989, in run self._target(*self._args, **self._kwargs) File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/iostream.py", line 86, in _thread_main self.io_loop.start() File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 195, in start self.asyncio_loop.run_forever() File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 81, in run_forever self._run_once() File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 115, in _run_once event_list = self._selector.select(timeout) File "/usr/lib64/python3.12/selectors.py", line 468, in select fd_event_list = self._selector.poll(timeout, max_ev) ~~~~~~~~~~~ Stack of IPythonHistorySavingThread (72057591882047872) ~~~~~~~~~~~~ File "/usr/lib64/python3.12/threading.py", line 1009, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.12/threading.py", line 1052, in _bootstrap_inner self.run() File "/usr/lib/python3.12/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/usr/lib/python3.12/site-packages/IPython/core/history.py", line 60, in only_when_enabled return f(self, *a, **kw) File "/usr/lib/python3.12/site-packages/IPython/core/history.py", line 884, in run self.history_manager.save_flag.wait() File "/usr/lib64/python3.12/threading.py", line 634, in wait signaled = self._cond.wait(timeout) File "/usr/lib64/python3.12/threading.py", line 334, in wait waiter.acquire() +++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ _______________________________ test_echo_watch ________________________________ ctx = @pytest.mark.skipif(sys.platform.startswith("win"), reason="Windows") def test_echo_watch(ctx): """Test echo on underlying FD while capturing the same FD  Test runs in a subprocess to avoid messing with pytest output capturing. """ s = ctx.socket(zmq.PULL) port = s.bind_to_random_port("tcp://127.0.0.1") url = f"tcp://127.0.0.1:{port}" session = Session(key=b'abc') messages = [] stdout_chunks = [] with s: env = dict(os.environ) env["IOPUB_URL"] = url env["PYTHONUNBUFFERED"] = "1" env.pop("PYTEST_CURRENT_TEST", None) > p = subprocess.run( [ sys.executable, "-c", f"import {__name__}; {__name__}.subprocess_test_echo_watch()", ], env=env, capture_output=True, text=True, timeout=10, ) ipykernel/tests/test_io.py:211: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/subprocess.py:550: in run stdout, stderr = process.communicate(input, timeout=timeout) /usr/lib64/python3.12/subprocess.py:1209: in communicate stdout, stderr = self._communicate(input, endtime, timeout) /usr/lib64/python3.12/subprocess.py:2109: in _communicate self._check_timeout(endtime, orig_timeout, stdout, stderr) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = endtime = 8087389.023360045, orig_timeout = 10, stdout_seq = [], stderr_seq = [] skip_check_and_raise = False def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq, skip_check_and_raise=False): """Convenience for checking if a timeout has expired.""" if endtime is None: return if skip_check_and_raise or _time() > endtime: > raise TimeoutExpired( self.args, orig_timeout, output=b''.join(stdout_seq) if stdout_seq else None, stderr=b''.join(stderr_seq) if stderr_seq else None) E subprocess.TimeoutExpired: Command '['/usr/bin/python3', '-c', 'import ipykernel.tests.test_io; ipykernel.tests.test_io.subprocess_test_echo_watch()']' timed out after 10 seconds /usr/lib64/python3.12/subprocess.py:1253: TimeoutExpired ______________________________ test_simple_print _______________________________ def test_simple_print(): """simple print statement in kernel""" > with kernel() as kc: ipykernel/tests/test_kernel.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) ipykernel/tests/utils.py:117: in kernel yield start_global_kernel() ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ________________________________ test_sys_path _________________________________ def test_sys_path(): """test that sys.path doesn't get messed up by default""" > with kernel() as kc: ipykernel/tests/test_kernel.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) ipykernel/tests/utils.py:117: in kernel yield start_global_kernel() ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError __________________________ test_sys_path_profile_dir ___________________________ def test_sys_path_profile_dir(): """test that sys.path doesn't get messed up when `--profile-dir` is specified"""  > with new_kernel(["--profile-dir", locate_profile("default")]) as kc: ipykernel/tests/test_kernel.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:717: in run_kernel km, kc = start_new_kernel(**kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ____________________________ test_subprocess_print _____________________________ @flaky(max_runs=3) @pytest.mark.skipif( sys.platform == "win32" or (sys.platform == "darwin" and sys.version_info >= (3, 8)), reason="subprocess prints fail on Windows and MacOS Python 3.8+", ) def test_subprocess_print(): """printing from forked mp.Process""" > with new_kernel() as kc: ipykernel/tests/test_kernel.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:717: in run_kernel km, kc = start_new_kernel(**kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ___________________________ test_subprocess_noprint ____________________________ @flaky(max_runs=3) def test_subprocess_noprint(): """mp.Process without print doesn't trigger iostream mp_mode""" > with kernel() as kc: ipykernel/tests/test_kernel.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) ipykernel/tests/utils.py:117: in kernel yield start_global_kernel() ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ____________________________ test_subprocess_error _____________________________ @flaky(max_runs=3) @pytest.mark.skipif( sys.platform == "win32" or (sys.platform == "darwin" and sys.version_info >= (3, 8)), reason="subprocess prints fail on Windows and MacOS Python 3.8+", ) def test_subprocess_error(): """error in mp.Process doesn't crash""" > with new_kernel() as kc: ipykernel/tests/test_kernel.py:174: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:717: in run_kernel km, kc = start_new_kernel(**kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ________________________________ test_raw_input ________________________________ def test_raw_input(): """test input""" > with kernel() as kc: ipykernel/tests/test_kernel.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) ipykernel/tests/utils.py:117: in kernel yield start_global_kernel() ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ______________________________ test_save_history _______________________________ def test_save_history(): # Saving history from the kernel with %hist -f was failing because of # unicode problems on Python 2. > with kernel() as kc, TemporaryDirectory() as td: ipykernel/tests/test_kernel.py:220: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) ipykernel/tests/utils.py:117: in kernel yield start_global_kernel() ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ___________________________ test_smoke_faulthandler ____________________________ def test_smoke_faulthandler(): faulthadler = pytest.importorskip("faulthandler", reason="this test needs faulthandler") > with kernel() as kc: ipykernel/tests/test_kernel.py:236: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) ipykernel/tests/utils.py:117: in kernel yield start_global_kernel() ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _______________________________ test_help_output _______________________________ def test_help_output(): """ipython kernel --help-all works""" cmd = [sys.executable, "-m", "IPython", "kernel", "--help-all"] > proc = subprocess.run(cmd, timeout=30, capture_output=True) ipykernel/tests/test_kernel.py:255: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/subprocess.py:550: in run stdout, stderr = process.communicate(input, timeout=timeout) /usr/lib64/python3.12/subprocess.py:1209: in communicate stdout, stderr = self._communicate(input, endtime, timeout) /usr/lib64/python3.12/subprocess.py:2109: in _communicate self._check_timeout(endtime, orig_timeout, stdout, stderr) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = endtime = 8088729.684209272, orig_timeout = 30, stdout_seq = [], stderr_seq = [] skip_check_and_raise = False def _check_timeout(self, endtime, orig_timeout, stdout_seq, stderr_seq, skip_check_and_raise=False): """Convenience for checking if a timeout has expired.""" if endtime is None: return if skip_check_and_raise or _time() > endtime: > raise TimeoutExpired( self.args, orig_timeout, output=b''.join(stdout_seq) if stdout_seq else None, stderr=b''.join(stderr_seq) if stderr_seq else None) E subprocess.TimeoutExpired: Command '['/usr/bin/python3', '-m', 'IPython', 'kernel', '--help-all']' timed out after 30 seconds /usr/lib64/python3.12/subprocess.py:1253: TimeoutExpired _______________________________ test_is_complete _______________________________ def test_is_complete(): > with kernel() as kc: ipykernel/tests/test_kernel.py:263: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) ipykernel/tests/utils.py:117: in kernel yield start_global_kernel() ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ______________________________ test_message_order ______________________________ def test_message_order(): N = 100 # number of messages to test > with kernel() as kc: ipykernel/tests/test_kernel.py:328: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) ipykernel/tests/utils.py:117: in kernel yield start_global_kernel() ipykernel/tests/utils.py:100: in start_global_kernel KM, KC = start_new_kernel() ipykernel/tests/utils.py:37: in start_new_kernel return manager.start_new_kernel(startup_timeout=STARTUP_TIMEOUT, **kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ________________________________ test_shutdown _________________________________ @pytest.mark.skipif( platform.python_implementation() == "PyPy", reason="does not work on PyPy", ) def test_shutdown(): """Kernel exits after polite shutdown_request""" > with new_kernel() as kc: ipykernel/tests/test_kernel.py:382: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:717: in run_kernel km, kc = start_new_kernel(**kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _________________________ test_interrupt_during_input __________________________ def test_interrupt_during_input(): """ The kernel exits after being interrupted while waiting in input().  input() appears to have issues other functions don't, and it needs to be interruptible in order for pdb to be interruptible. """ > with new_kernel() as kc: ipykernel/tests/test_kernel.py:402: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:717: in run_kernel km, kc = start_new_kernel(**kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _________________________ test_interrupt_with_message __________________________ @pytest.mark.skipif(os.name == "nt", reason="Message based interrupt not supported on Windows") def test_interrupt_with_message(): > with new_kernel() as kc: ipykernel/tests/test_kernel.py:416: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:717: in run_kernel km, kc = start_new_kernel(**kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _____________________ test_interrupt_during_pdb_set_trace ______________________ @pytest.mark.skipif( "__pypy__" in sys.builtin_module_names, reason="fails on pypy", ) def test_interrupt_during_pdb_set_trace(): """ The kernel exits after being interrupted while waiting in pdb.set_trace().  Merely testing input() isn't enough, pdb has its own issues that need to be handled in addition.  This test will fail with versions of IPython < 7.14.0. """ > with new_kernel() as kc: ipykernel/tests/test_kernel.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:717: in run_kernel km, kc = start_new_kernel(**kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError _________________________ test_control_thread_priority _________________________ def test_control_thread_priority(): N = 5 > with new_kernel() as kc: ipykernel/tests/test_kernel.py:460: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:717: in run_kernel km, kc = start_new_kernel(**kwargs) /usr/lib/python3.12/site-packages/jupyter_client/manager.py:680: in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = timeout = 60 async def _async_wait_for_ready(self, timeout: t.Optional[float] = None) -> None: """Waits for a response when a client is blocked  - Sets future time for timeout - Blocks on shell channel until a message is received - Exit if the kernel has died - If client times out before receiving a message from the kernel, send RuntimeError - Flush the IOPub channel """ if timeout is None: timeout = float("inf") abs_timeout = time.time() + timeout  from .manager import KernelManager  if not isinstance(self.parent, KernelManager): # This Client was not created by a KernelManager, # so wait for kernel to become responsive to heartbeats # before checking for kernel_info reply while not await ensure_async(self.is_alive()): if time.time() > abs_timeout: raise RuntimeError( "Kernel didn't respond to heartbeats in %d seconds and timed out" % timeout ) await asyncio.sleep(0.2)  # Wait for kernel info reply on shell channel while True: self.kernel_info() try: msg = await self.shell_channel.get_msg(timeout=1) except Empty: pass else: if msg["msg_type"] == "kernel_info_reply": # Checking that IOPub is connected. If it is not connected, start over. try: await self.iopub_channel.get_msg(timeout=0.2) except Empty: pass else: self._handle_kernel_info_reply(msg) break  if not await ensure_async(self.is_alive()): raise RuntimeError("Kernel died before replying to kernel_info")  # Check if current time is ready check time plus timeout if time.time() > abs_timeout: > raise RuntimeError("Kernel didn't respond in %d seconds" % timeout) E RuntimeError: Kernel didn't respond in 60 seconds /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ___________________________ test_install_kernelspec ____________________________ def test_install_kernelspec(): path = tempfile.mkdtemp() try: > InstallIPythonKernelSpecApp.launch_instance(argv=["--prefix", path]) ipykernel/tests/test_kernelspec.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/traitlets/config/application.py:1051: in launch_instance app = cls.instance(**kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = , args = () kwargs = {} @classmethod def instance(cls: type[CT], *args: t.Any, **kwargs: t.Any) -> CT: """Returns a global instance of this class.  This method create a new instance if none have previously been created and returns a previously created instance is one already exists.  The arguments and keyword arguments passed to this method are passed on to the :meth:`__init__` method of the class upon instantiation.  Examples -------- Create a singleton class using instance, and retrieve it::  >>> from traitlets.config.configurable import SingletonConfigurable >>> class Foo(SingletonConfigurable): pass >>> foo = Foo.instance() >>> foo == Foo.instance() True  Create a subclass that is retrived using the base class instance::  >>> class Bar(SingletonConfigurable): pass >>> class Bam(Bar): pass >>> bam = Bam.instance() >>> bam == Bar.instance() True """ # Create and save the instance if cls._instance is None: inst = cls(*args, **kwargs) # Now make sure that the instance will also be returned by # parent classes' _instance attribute. for subclass in cls._walk_mro(): subclass._instance = inst  if isinstance(cls._instance, cls): return cls._instance else: > raise MultipleInstanceError( f"An incompatible sibling of '{cls.__name__}' is already instantiated" f" as singleton: {type(cls._instance).__name__}" ) E traitlets.config.configurable.MultipleInstanceError: An incompatible sibling of 'InstallIPythonKernelSpecApp' is already instantiated as singleton: IPKernelApp /usr/lib/python3.12/site-packages/traitlets/config/configurable.py:584: MultipleInstanceError _______________________ test_ipython_start_kernel_userns _______________________ @flaky(max_runs=3) def test_ipython_start_kernel_userns(): cmd = dedent( """ from ipykernel.kernelapp import launch_new_instance ns = {"tre": 123} launch_new_instance(user_ns=ns) """ )  > with setup_kernel(cmd) as client: ipykernel/tests/test_start_kernel.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = '\nfrom ipykernel.kernelapp import launch_new_instance\nns = {"tre": 123}\nlaunch_new_instance(user_ns=ns)\n' @contextmanager def setup_kernel(cmd): """start an embedded kernel in a subprocess, and wait for it to be ready  Returns ------- kernel_manager: connected KernelManager instance """  def connection_file_ready(connection_file): """Check if connection_file is a readable json file.""" if not os.path.exists(connection_file): return False try: with open(connection_file) as f: json.load(f) return True except ValueError: return False  kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") try: connection_file = os.path.join( paths.jupyter_runtime_dir(), "kernel-%i.json" % kernel.pid, ) # wait for connection file to exist, timeout after 5s tic = time.time() while ( not connection_file_ready(connection_file) and kernel.poll() is None and time.time() < tic + SETUP_TIMEOUT ): time.sleep(0.1)  # Wait 100ms for the writing to finish time.sleep(0.1)  if kernel.poll() is not None: o, e = kernel.communicate() raise OSError("Kernel failed to start:\n%s" % e)  if not os.path.exists(connection_file): if kernel.poll() is None: kernel.terminate() > raise OSError("Connection file %r never arrived" % connection_file) E OSError: Connection file '/builddir/.local/share/jupyter/runtime/kernel-425202.json' never arrived ipykernel/tests/test_embed_kernel.py:74: OSError _____________________ test_ipython_start_kernel_no_userns ______________________ @flaky(max_runs=3) def test_ipython_start_kernel_no_userns(): # Issue #4188 - user_ns should be passed to shell as None, not {} cmd = dedent( """ from ipykernel.kernelapp import launch_new_instance launch_new_instance() """ )  > with setup_kernel(cmd) as client: ipykernel/tests/test_start_kernel.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cmd = '\nfrom ipykernel.kernelapp import launch_new_instance\nlaunch_new_instance()\n' @contextmanager def setup_kernel(cmd): """start an embedded kernel in a subprocess, and wait for it to be ready  Returns ------- kernel_manager: connected KernelManager instance """  def connection_file_ready(connection_file): """Check if connection_file is a readable json file.""" if not os.path.exists(connection_file): return False try: with open(connection_file) as f: json.load(f) return True except ValueError: return False  kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") try: connection_file = os.path.join( paths.jupyter_runtime_dir(), "kernel-%i.json" % kernel.pid, ) # wait for connection file to exist, timeout after 5s tic = time.time() while ( not connection_file_ready(connection_file) and kernel.poll() is None and time.time() < tic + SETUP_TIMEOUT ): time.sleep(0.1)  # Wait 100ms for the writing to finish time.sleep(0.1)  if kernel.poll() is not None: o, e = kernel.communicate() raise OSError("Kernel failed to start:\n%s" % e)  if not os.path.exists(connection_file): if kernel.poll() is None: kernel.terminate() > raise OSError("Connection file %r never arrived" % connection_file) E OSError: Connection file '/builddir/.local/share/jupyter/runtime/kernel-425281.json' never arrived ipykernel/tests/test_embed_kernel.py:74: OSError __________________________ test_zmq_interactive_shell __________________________ kernel = def test_zmq_interactive_shell(kernel): shell = ZMQInteractiveShell()  > with pytest.raises(RuntimeError): E Failed: DID NOT RAISE ipykernel/tests/test_zmq_shell.py:236: Failed --------------------------- Captured stderr teardown --------------------------- ERROR:tornado.application:Exception in callback functools.partial(>) Traceback (most recent call last): File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 738, in _run_callback ret = callback() ^^^^^^^^^^ File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 478, in enter_eventloop schedule_next() File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 475, in schedule_next self.io_loop.call_later(0.001, advance_eventloop) File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 597, in call_later return self.call_at(self.time() + delay, callback, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 206, in call_at return self.asyncio_loop.call_later( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 738, in call_later timer = self.call_at(self.time() + delay, callback, *args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 751, in call_at self._check_closed() File "/usr/lib64/python3.12/asyncio/base_events.py", line 519, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed ERROR:tornado.application:Exception in callback functools.partial(>) Traceback (most recent call last): File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 738, in _run_callback ret = callback() ^^^^^^^^^^ File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 478, in enter_eventloop schedule_next() File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 475, in schedule_next self.io_loop.call_later(0.001, advance_eventloop) File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 597, in call_later return self.call_at(self.time() + delay, callback, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 206, in call_at return self.asyncio_loop.call_later( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 738, in call_later timer = self.call_at(self.time() + delay, callback, *args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 751, in call_at self._check_closed() File "/usr/lib64/python3.12/asyncio/base_events.py", line 519, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed ERROR:tornado.application:Exception in callback functools.partial(>) Traceback (most recent call last): File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 738, in _run_callback ret = callback() ^^^^^^^^^^ File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 478, in enter_eventloop schedule_next() File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 475, in schedule_next self.io_loop.call_later(0.001, advance_eventloop) File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 597, in call_later return self.call_at(self.time() + delay, callback, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 206, in call_at return self.asyncio_loop.call_later( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 738, in call_later timer = self.call_at(self.time() + delay, callback, *args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 751, in call_at self._check_closed() File "/usr/lib64/python3.12/asyncio/base_events.py", line 519, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed ERROR:tornado.application:Exception in callback functools.partial(>) Traceback (most recent call last): File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 738, in _run_callback ret = callback() ^^^^^^^^^^ File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 478, in enter_eventloop schedule_next() File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 475, in schedule_next self.io_loop.call_later(0.001, advance_eventloop) File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 597, in call_later return self.call_at(self.time() + delay, callback, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 206, in call_at return self.asyncio_loop.call_later( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 738, in call_later timer = self.call_at(self.time() + delay, callback, *args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 751, in call_at self._check_closed() File "/usr/lib64/python3.12/asyncio/base_events.py", line 519, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed ERROR:tornado.application:Exception in callback functools.partial(>) Traceback (most recent call last): File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 738, in _run_callback ret = callback() ^^^^^^^^^^ File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 478, in enter_eventloop schedule_next() File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 475, in schedule_next self.io_loop.call_later(0.001, advance_eventloop) File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 597, in call_later return self.call_at(self.time() + delay, callback, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 206, in call_at return self.asyncio_loop.call_later( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 738, in call_later timer = self.call_at(self.time() + delay, callback, *args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 751, in call_at self._check_closed() File "/usr/lib64/python3.12/asyncio/base_events.py", line 519, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed ---------------------------- Captured log teardown ----------------------------- ERROR tornado.application:ioloop.py:758 Exception in callback functools.partial(>) Traceback (most recent call last): File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 738, in _run_callback ret = callback() ^^^^^^^^^^ File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 478, in enter_eventloop schedule_next() File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/kernelbase.py", line 475, in schedule_next self.io_loop.call_later(0.001, advance_eventloop) File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 597, in call_later return self.call_at(self.time() + delay, callback, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 206, in call_at return self.asyncio_loop.call_later( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 738, in call_later timer = self.call_at(self.time() + delay, callback, *args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/base_events.py", line 751, in call_at self._check_closed() File "/usr/lib64/python3.12/asyncio/base_events.py", line 519, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed =============================== warnings summary =============================== ../../../../usr/lib/python3.12/site-packages/jupyter_client/connect.py:27 /usr/lib/python3.12/site-packages/jupyter_client/connect.py:27: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs given by the platformdirs library. To remove this warning and see the appropriate new directories, set the environment variable `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. The use of platformdirs will be the default in `jupyter_core` v6 from jupyter_core.paths import jupyter_data_dir ipykernel/tests/test_async.py::test_async_await /usr/lib/python3.12/site-packages/jupyter_client/utils.py:18: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop_policy().get_event_loop() ipykernel/tests/test_async.py: 4 warnings ipykernel/tests/test_comm.py: 3 warnings ipykernel/tests/test_embed_kernel.py: 1 warning ipykernel/tests/test_eventloop.py: 1 warning ipykernel/tests/test_io.py: 6 warnings ipykernel/tests/test_ipkernel_direct.py: 24 warnings ipykernel/tests/test_kernel.py: 22 warnings ipykernel/tests/test_kernel_direct.py: 20 warnings ipykernel/tests/test_kernelapp.py: 2 warnings ipykernel/tests/test_message_spec.py: 1 warning ipykernel/tests/test_zmq_shell.py: 7 warnings ipykernel/inprocess/tests/test_kernel.py: 6 warnings ipykernel/inprocess/tests/test_kernelmanager.py: 6 warnings /usr/lib/python3.12/site-packages/jupyter_client/session.py:203: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). return datetime.utcnow().replace(tzinfo=utc) ipykernel/tests/test_comm.py: 1 warning ipykernel/tests/test_embed_kernel.py: 1 warning ipykernel/tests/test_ipkernel_direct.py: 18 warnings ipykernel/tests/test_zmq_shell.py: 2 warnings ipykernel/inprocess/tests/test_kernel.py: 1 warning /usr/lib/python3.12/site-packages/IPython/core/history.py:570: DeprecationWarning: The default datetime adapter is deprecated as of Python 3.12; see the sqlite3 documentation for suggested replacement recipes cur = conn.execute( ipykernel/tests/test_embed_kernel.py::test_embed_kernel_func /usr/lib/python3.12/site-packages/traitlets/traitlets.py:1404: DeprecationWarning: Passing unrecognized arguments to super(IPythonKernel).__init__(debugpy_stream=). object.__init__() takes exactly one argument (the instance to initialize) This is deprecated in traitlets 4.2.This error will be raised in a future release of traitlets. warn( ipykernel/tests/test_embed_kernel.py::test_embed_kernel_func /usr/lib/python3.12/site-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-5 (trigger_stop) Traceback (most recent call last): File "/usr/lib64/python3.12/threading.py", line 1052, in _bootstrap_inner self.run() File "/usr/lib64/python3.12/threading.py", line 989, in run self._target(*self._args, **self._kwargs) File "/builddir/build/BUILD/ipykernel-6.25.1/ipykernel/tests/test_embed_kernel.py", line 209, in trigger_stop app.io_loop.add_callback(app.io_loop.stop) ^^^^^^^^^^^ AttributeError: 'IPKernelApp' object has no attribute 'io_loop'. Did you mean: 'trio_loop'? warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) ipykernel/tests/test_io.py::test_outstream /usr/lib64/python3.12/site-packages/zmq/eventloop/zmqstream.py:576: UserWarning: Unregistering FD 92 after closing socket. This could result in unregistering handlers for the wrong socket. Please use stream.close() instead of closing the socket directly. self.close() ipykernel/tests/test_ipkernel_direct.py::test_complete_request /usr/lib/python3.12/site-packages/IPython/core/completer.py:3011: PendingDeprecationWarning: `Completer.complete` is pending deprecation since IPython 6.0 and will be replaced by `Completer.completions`. warnings.warn('`Completer.complete` is pending deprecation since ' ipykernel/tests/test_zmq_shell.py::test_magics /usr/lib64/python3.12/pty.py:95: DeprecationWarning: This process (pid=424470) is multi-threaded, use of forkpty() may lead to deadlocks in the child. pid, fd = os.forkpty() ipykernel/inprocess/tests/test_kernel.py::test_getpass_stream /builddir/build/BUILD/ipykernel-6.25.1/ipykernel/inprocess/tests/test_kernel.py:114: UserWarning: The `stream` parameter of `getpass.getpass` will have no effect when using ipykernel kernel.getpass(stream="non empty") -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ===Flaky Test Report=== test_embed_kernel_basic failed (2 runs remaining out of 3). Connection file '/builddir/.local/share/jupyter/runtime/kernel-424521.json' never arrived [, , ] test_embed_kernel_basic failed (1 runs remaining out of 3). Connection file '/builddir/.local/share/jupyter/runtime/kernel-424524.json' never arrived [, , ] test_embed_kernel_basic failed; it passed 0 out of the required 1 times. Connection file '/builddir/.local/share/jupyter/runtime/kernel-424530.json' never arrived [, , ] test_embed_kernel_namespace failed (2 runs remaining out of 3). Connection file '/builddir/.local/share/jupyter/runtime/kernel-424533.json' never arrived [, , ] test_embed_kernel_namespace failed (1 runs remaining out of 3). Connection file '/builddir/.local/share/jupyter/runtime/kernel-424534.json' never arrived [, , ] test_embed_kernel_namespace failed; it passed 0 out of the required 1 times. Connection file '/builddir/.local/share/jupyter/runtime/kernel-424535.json' never arrived [, , ] test_embed_kernel_reentrant failed (2 runs remaining out of 3). Connection file '/builddir/.local/share/jupyter/runtime/kernel-424540.json' never arrived [, , ] test_embed_kernel_reentrant failed (1 runs remaining out of 3). Connection file '/builddir/.local/share/jupyter/runtime/kernel-424542.json' never arrived [, , ] test_embed_kernel_reentrant failed; it passed 0 out of the required 1 times. Connection file '/builddir/.local/share/jupyter/runtime/kernel-424544.json' never arrived [, , ] test_subprocess_print failed (2 runs remaining out of 3). Kernel didn't respond in 60 seconds [, , , , , , , , , ] test_subprocess_print failed (1 runs remaining out of 3). Kernel didn't respond in 60 seconds [, , , , , , , , , ] test_subprocess_print failed; it passed 0 out of the required 1 times. Kernel didn't respond in 60 seconds [, , , , , , , , , ] test_subprocess_noprint failed (2 runs remaining out of 3). Kernel didn't respond in 60 seconds [, , , , , , , , , , , ] test_subprocess_noprint failed (1 runs remaining out of 3). Kernel didn't respond in 60 seconds [, , , , , , , , , , , ] test_subprocess_noprint failed; it passed 0 out of the required 1 times. Kernel didn't respond in 60 seconds [, , , , , , , , , , , ] test_subprocess_error failed (2 runs remaining out of 3). Kernel didn't respond in 60 seconds [, , , , , , , , , ] test_subprocess_error failed (1 runs remaining out of 3). Kernel didn't respond in 60 seconds [, , , , , , , , , ] test_subprocess_error failed; it passed 0 out of the required 1 times. Kernel didn't respond in 60 seconds [, , , , , , , , , ] test_ipython_start_kernel_userns failed (2 runs remaining out of 3). Connection file '/builddir/.local/share/jupyter/runtime/kernel-425196.json' never arrived [, , ] test_ipython_start_kernel_userns failed (1 runs remaining out of 3). Connection file '/builddir/.local/share/jupyter/runtime/kernel-425200.json' never arrived [, , ] test_ipython_start_kernel_userns failed; it passed 0 out of the required 1 times. Connection file '/builddir/.local/share/jupyter/runtime/kernel-425202.json' never arrived [, , ] test_ipython_start_kernel_no_userns failed (2 runs remaining out of 3). Connection file '/builddir/.local/share/jupyter/runtime/kernel-425204.json' never arrived [, , ] test_ipython_start_kernel_no_userns failed (1 runs remaining out of 3). Connection file '/builddir/.local/share/jupyter/runtime/kernel-425228.json' never arrived [, , ] test_ipython_start_kernel_no_userns failed; it passed 0 out of the required 1 times. Connection file '/builddir/.local/share/jupyter/runtime/kernel-425281.json' never arrived [, , ] test_interface passed 1 out of the required 1 times. Success! ===End Flaky Test Report=== ============================= slowest 10 durations ============================= 300.62s call ipykernel/tests/test_embed_kernel.py::test_embed_kernel_func 70.99s setup ipykernel/tests/test_async.py::test_async_await 68.07s call ipykernel/tests/test_kernel.py::test_raw_input 67.39s call ipykernel/tests/test_ipkernel_direct.py::test_complete_request 67.29s setup ipykernel/tests/test_eventloop.py::test_asyncio_interrupt 67.22s call ipykernel/tests/test_kernel.py::test_sys_path 67.16s call ipykernel/tests/test_kernel.py::test_control_thread_priority 67.13s call ipykernel/tests/test_kernel.py::test_is_complete 67.01s call ipykernel/tests/test_kernel.py::test_subprocess_noprint 66.82s call ipykernel/tests/test_kernel.py::test_subprocess_error =========================== short test summary info ============================ SKIPPED [2] ipykernel/tests/test_debugger.py:10: could not import 'debugpy': No module named 'debugpy' SKIPPED [1] ipykernel/tests/test_eventloop.py:123: MacOS-only SKIPPED [1] ipykernel/tests/test_eventloop.py:128: No viable version of PyQt or PySide installed. SKIPPED [1] ipykernel/tests/test_jsonutil.py:36: json_clean is a no-op SKIPPED [1] ipykernel/tests/test_jsonutil.py:72: json_clean is a no-op SKIPPED [1] ipykernel/tests/test_jsonutil.py:99: json_clean is a no-op SKIPPED [1] ipykernel/tests/test_jsonutil.py:105: json_clean is a no-op SKIPPED [1] ipykernel/tests/test_jsonutil.py:116: json_clean is a no-op SKIPPED [1] ipykernel/tests/test_kernel.py:61: Currently don't capture during test as pytest does its own capturing SKIPPED [1] ipykernel/tests/test_kernel.py:73: Currently don't capture during test as pytest does its own capturing SKIPPED [1] ipykernel/tests/test_kernel.py:286: only run on Windows SKIPPED [1] ipykernel/tests/test_kernel.py:314: this test requires matplotlib SKIPPED [1] ipykernel/tests/test_kernel.py:345: test only on windows SKIPPED [1] ipykernel/tests/test_kernel.py:529: Stalls on linux SKIPPED [1] ipykernel/tests/test_kernelapp.py:121: requires trio SKIPPED [1] ipykernel/tests/test_parentpoller.py:29: only works on windows SKIPPED [1] ipykernel/inprocess/tests/test_kernel.py:57: This test requires matplotlib SKIPPED [1] ipykernel/inprocess/tests/test_kernel.py:91: Currently don't capture during test as pytest does its own capturing ERROR ipykernel/tests/test_async.py::test_async_await - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_async.py::test_async_interrupt[asyncio] - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_async.py::test_async_interrupt[trio] - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_async.py::test_async_interrupt[curio] - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_eventloop.py::test_asyncio_interrupt - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_eventloop.py::test_tk_loop - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_eventloop.py::test_asyncio_loop - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_eventloop.py::test_enable_gui - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_execute - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_execute_silent - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_execute_error - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_execute_inc - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_execute_stop_on_error - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_non_execute_stop_on_error - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_user_expressions - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_user_expressions_fail - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_oinfo - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_oinfo_found - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_oinfo_detail - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_oinfo_not_found - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_complete - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_kernel_info_request - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_connect_request - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_comm_info_request - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_single_payload - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_is_complete - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_history_range - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_history_tail - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_history_search - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_stream - RuntimeError: Kernel didn't respond in 60 seconds ERROR ipykernel/tests/test_message_spec.py::test_display_data - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_embed_kernel.py::test_embed_kernel_basic - OSError: Connection file '/builddir/.local/share/jupyter/runtime/kernel-424... FAILED ipykernel/tests/test_embed_kernel.py::test_embed_kernel_namespace - OSError: Connection file '/builddir/.local/share/jupyter/runtime/kernel-424... FAILED ipykernel/tests/test_embed_kernel.py::test_embed_kernel_reentrant - OSError: Connection file '/builddir/.local/share/jupyter/runtime/kernel-424... FAILED ipykernel/tests/test_embed_kernel.py::test_embed_kernel_func - Failed: Timeout >300.0s FAILED ipykernel/tests/test_io.py::test_echo_watch - subprocess.TimeoutExpired: Command '['/usr/bin/python3', '-c', 'import ipyk... FAILED ipykernel/tests/test_kernel.py::test_simple_print - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_sys_path - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_sys_path_profile_dir - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_subprocess_print - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_subprocess_noprint - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_subprocess_error - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_raw_input - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_save_history - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_smoke_faulthandler - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_help_output - subprocess.TimeoutExpired: Command '['/usr/bin/python3', '-m', 'IPython', '... FAILED ipykernel/tests/test_kernel.py::test_is_complete - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_message_order - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_shutdown - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_interrupt_during_input - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_interrupt_with_message - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_interrupt_during_pdb_set_trace - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernel.py::test_control_thread_priority - RuntimeError: Kernel didn't respond in 60 seconds FAILED ipykernel/tests/test_kernelspec.py::test_install_kernelspec - traitlets.config.configurable.MultipleInstanceError: An incompatible siblin... FAILED ipykernel/tests/test_start_kernel.py::test_ipython_start_kernel_userns - OSError: Connection file '/builddir/.local/share/jupyter/runtime/kernel-425... FAILED ipykernel/tests/test_start_kernel.py::test_ipython_start_kernel_no_userns - OSError: Connection file '/builddir/.local/share/jupyter/runtime/kernel-425... FAILED ipykernel/tests/test_zmq_shell.py::test_zmq_interactive_shell - Failed: DID NOT RAISE = 26 failed, 97 passed, 19 skipped, 134 warnings, 31 errors in 4029.94s (1:07:09) = error: Bad exit status from /var/tmp/rpm-tmp.kSBvyK (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.kSBvyK (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-ipykernel.spec