Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-nbclient.spec'], chrootPath='/var/lib/mock/f40-build-2711549-71853/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=997gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'd9210baee18c4fd284d7028f03971ad4', '-D', '/var/lib/mock/f40-build-2711549-71853/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-nbclient.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Wrote: /builddir/build/SRPMS/python-nbclient-0.9.0-4.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-nbclient.spec'], chrootPath='/var/lib/mock/f40-build-2711549-71853/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=997gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueraiseExc=FalseprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '1b8f2604286d48d08c2cd110651656b4', '-D', '/var/lib/mock/f40-build-2711549-71853/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target noarch --nodeps /builddir/build/SPECS/python-nbclient.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} 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.dlks0b + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nbclient-0.9.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/nbclient-0.9.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd nbclient-0.9.0 + rm -rf /builddir/build/BUILD/nbclient-0.9.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/nbclient-0.9.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf nbclient.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.4nUt7Q + umask 022 + cd /builddir/build/BUILD + cd nbclient-0.9.0 + 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 --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/nbclient-0.9.0/.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/nbclient-0.9.0/.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/nbclient-0.9.0/pyproject-wheeldir --output /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-buildrequires -x test Handling hatchling>=1.10.0 from build-system.requires Requirement not satisfied: hatchling>=1.10.0 Exiting dependency generation pass: build backend + cat /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-nbclient-0.9.0-4.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 --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-nbclient.spec'], chrootPath='/var/lib/mock/f40-build-2711549-71853/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=997gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueraiseExc=FalseprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'd06dfd1adce04085ac3d91c476f378cc', '-D', '/var/lib/mock/f40-build-2711549-71853/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -br --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-nbclient.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} 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.qeHGpU + umask 022 + cd /builddir/build/BUILD + cd nbclient-0.9.0 + 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 --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/nbclient-0.9.0/.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/nbclient-0.9.0/.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/nbclient-0.9.0/pyproject-wheeldir --output /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-buildrequires -x test Handling hatchling>=1.10.0 from build-system.requires Requirement satisfied: hatchling>=1.10.0 (installed: hatchling 1.21.1) Handling jupyter-client>=6.1.12 from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: jupyter-client>=6.1.12 Handling jupyter-core!=5.0.*,>=4.12 from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: jupyter-core!=5.0.*,>=4.12 Handling nbformat>=5.1 from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: nbformat>=5.1 Handling traitlets>=5.4 from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: traitlets>=5.4 Handling pre-commit; extra == 'dev' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: pre-commit; extra == 'dev' Handling autodoc-traits; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: autodoc-traits; extra == 'docs' Handling mock; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: mock; extra == 'docs' Handling moto; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: moto; extra == 'docs' Handling myst-parser; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: myst-parser; extra == 'docs' Handling nbclient[test]; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: nbclient[test]; extra == 'docs' Handling sphinx-book-theme; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: sphinx-book-theme; extra == 'docs' Handling sphinx>=1.7; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: sphinx>=1.7; extra == 'docs' Handling sphinxcontrib-spelling; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: sphinxcontrib-spelling; extra == 'docs' Handling flaky; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: flaky; extra == 'test' Handling ipykernel>=6.19.3; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: ipykernel>=6.19.3; extra == 'test' Handling ipython; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: ipython; extra == 'test' Handling ipywidgets; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: ipywidgets; extra == 'test' Handling nbconvert>=7.0.0; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: nbconvert>=7.0.0; extra == 'test' Handling pytest-asyncio; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: pytest-asyncio; extra == 'test' Handling pytest-cov>=4.0; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: pytest-cov>=4.0; extra == 'test' Handling pytest>=7.0; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: pytest>=7.0; extra == 'test' Handling testpath; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: testpath; extra == 'test' Handling xmltodict; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement not satisfied: xmltodict; extra == 'test' + cat /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-buildrequires + rm -rfv nbclient-0.9.0.dist-info/ removed 'nbclient-0.9.0.dist-info/METADATA' removed directory 'nbclient-0.9.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-nbclient-0.9.0-4.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 --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-nbclient.spec'], chrootPath='/var/lib/mock/f40-build-2711549-71853/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=997gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueraiseExc=FalseprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '36f17e06169a48d3970b9cb7ef4dc52f', '-D', '/var/lib/mock/f40-build-2711549-71853/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -br --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-nbclient.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} 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.U0zfv6 + umask 022 + cd /builddir/build/BUILD + cd nbclient-0.9.0 + 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 --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/nbclient-0.9.0/.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/nbclient-0.9.0/.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/nbclient-0.9.0/pyproject-wheeldir --output /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-buildrequires -x test Handling hatchling>=1.10.0 from build-system.requires Requirement satisfied: hatchling>=1.10.0 (installed: hatchling 1.21.1) Handling jupyter-client>=6.1.12 from hook generated metadata: Requires-Dist (nbclient) 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 (nbclient) Requirement satisfied: jupyter-core!=5.0.*,>=4.12 (installed: jupyter-core 5.1.0) Handling nbformat>=5.1 from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: nbformat>=5.1 (installed: nbformat 5.9.2) Handling traitlets>=5.4 from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: traitlets>=5.4 (installed: traitlets 5.11.2) Handling pre-commit; extra == 'dev' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: pre-commit; extra == 'dev' Handling autodoc-traits; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: autodoc-traits; extra == 'docs' Handling mock; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: mock; extra == 'docs' Handling moto; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: moto; extra == 'docs' Handling myst-parser; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: myst-parser; extra == 'docs' Handling nbclient[test]; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: nbclient[test]; extra == 'docs' Handling sphinx-book-theme; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: sphinx-book-theme; extra == 'docs' Handling sphinx>=1.7; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: sphinx>=1.7; extra == 'docs' Handling sphinxcontrib-spelling; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: sphinxcontrib-spelling; extra == 'docs' Handling flaky; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: flaky; extra == 'test' (installed: flaky 3.7.0) Handling ipykernel>=6.19.3; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: ipykernel>=6.19.3; extra == 'test' (installed: ipykernel 6.25.1) Handling ipython; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: ipython; extra == 'test' (installed: ipython 8.14.0) Handling ipywidgets; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: ipywidgets; extra == 'test' (installed: ipywidgets 8.0.7) Handling nbconvert>=7.0.0; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: nbconvert>=7.0.0; extra == 'test' (installed: nbconvert 7.2.5) Handling pytest-asyncio; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: pytest-asyncio; extra == 'test' (installed: pytest-asyncio 0.21.0) Handling pytest-cov>=4.0; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: pytest-cov>=4.0; extra == 'test' (installed: pytest-cov 4.0.0) Handling pytest>=7.0; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: pytest>=7.0; extra == 'test' (installed: pytest 7.4.3) Handling testpath; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: testpath; extra == 'test' (installed: testpath 0.6.0) Handling xmltodict; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: xmltodict; extra == 'test' (installed: xmltodict 0.13.0) + cat /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-buildrequires + rm -rfv nbclient-0.9.0.dist-info/ removed 'nbclient-0.9.0.dist-info/METADATA' removed directory 'nbclient-0.9.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-nbclient-0.9.0-4.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-nbclient.spec'], chrootPath='/var/lib/mock/f40-build-2711549-71853/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=997gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'bb8a8093ea014a6cb0a49b4545a37b9c', '-D', '/var/lib/mock/f40-build-2711549-71853/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-nbclient.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} 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.jwEe68 + umask 022 + cd /builddir/build/BUILD + cd nbclient-0.9.0 + 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 --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/nbclient-0.9.0/.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/nbclient-0.9.0/.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/nbclient-0.9.0/pyproject-wheeldir --output /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-buildrequires -x test Handling hatchling>=1.10.0 from build-system.requires Requirement satisfied: hatchling>=1.10.0 (installed: hatchling 1.21.1) Handling jupyter-client>=6.1.12 from hook generated metadata: Requires-Dist (nbclient) 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 (nbclient) Requirement satisfied: jupyter-core!=5.0.*,>=4.12 (installed: jupyter-core 5.1.0) Handling nbformat>=5.1 from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: nbformat>=5.1 (installed: nbformat 5.9.2) Handling traitlets>=5.4 from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: traitlets>=5.4 (installed: traitlets 5.11.2) Handling pre-commit; extra == 'dev' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: pre-commit; extra == 'dev' Handling autodoc-traits; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: autodoc-traits; extra == 'docs' Handling mock; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: mock; extra == 'docs' Handling moto; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: moto; extra == 'docs' Handling myst-parser; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: myst-parser; extra == 'docs' Handling nbclient[test]; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: nbclient[test]; extra == 'docs' Handling sphinx-book-theme; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: sphinx-book-theme; extra == 'docs' Handling sphinx>=1.7; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: sphinx>=1.7; extra == 'docs' Handling sphinxcontrib-spelling; extra == 'docs' from hook generated metadata: Requires-Dist (nbclient) Ignoring alien requirement: sphinxcontrib-spelling; extra == 'docs' Handling flaky; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: flaky; extra == 'test' (installed: flaky 3.7.0) Handling ipykernel>=6.19.3; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: ipykernel>=6.19.3; extra == 'test' (installed: ipykernel 6.25.1) Handling ipython; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: ipython; extra == 'test' (installed: ipython 8.14.0) Handling ipywidgets; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: ipywidgets; extra == 'test' (installed: ipywidgets 8.0.7) Handling nbconvert>=7.0.0; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: nbconvert>=7.0.0; extra == 'test' (installed: nbconvert 7.2.5) Handling pytest-asyncio; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: pytest-asyncio; extra == 'test' (installed: pytest-asyncio 0.21.0) Handling pytest-cov>=4.0; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: pytest-cov>=4.0; extra == 'test' (installed: pytest-cov 4.0.0) Handling pytest>=7.0; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: pytest>=7.0; extra == 'test' (installed: pytest 7.4.3) Handling testpath; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: testpath; extra == 'test' (installed: testpath 0.6.0) Handling xmltodict; extra == 'test' from hook generated metadata: Requires-Dist (nbclient) Requirement satisfied: xmltodict; extra == 'test' (installed: xmltodict 0.13.0) + cat /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-buildrequires + rm -rfv nbclient-0.9.0.dist-info/ removed 'nbclient-0.9.0.dist-info/METADATA' removed directory 'nbclient-0.9.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hsHRJ3 + 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 --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 nbclient-0.9.0 + mkdir -p /builddir/build/BUILD/nbclient-0.9.0/.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/nbclient-0.9.0/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/nbclient-0.9.0/pyproject-wheeldir Processing /builddir/build/BUILD/nbclient-0.9.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: nbclient Building wheel for nbclient (pyproject.toml): started Running command Building wheel for nbclient (pyproject.toml) Building wheel for nbclient (pyproject.toml): finished with status 'done' Created wheel for nbclient: filename=nbclient-0.9.0-py3-none-any.whl size=24743 sha256=e657ff162337dab276d26853cf1bfaa0d98dcf4e90cdeeb8301a93475967b614 Stored in directory: /builddir/.cache/pip/wheels/7b/61/7c/2173124ac3e4a88db3d16d38f9c1565b823ba98d0a42672c1b Successfully built nbclient + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.UKZXJg + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch ++ dirname /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.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 --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 nbclient-0.9.0 ++ ls /builddir/build/BUILD/nbclient-0.9.0/pyproject-wheeldir/nbclient-0.9.0-py3-none-any.whl ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' ++ xargs basename --multiple + specifier=nbclient==0.9.0 + '[' -z nbclient==0.9.0 ']' + TMPDIR=/builddir/build/BUILD/nbclient-0.9.0/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.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/nbclient-0.9.0/pyproject-wheeldir nbclient==0.9.0 Using pip 23.3.2 from /usr/lib/python3.12/site-packages/pip (python 3.12) Looking in links: /builddir/build/BUILD/nbclient-0.9.0/pyproject-wheeldir Processing ./pyproject-wheeldir/nbclient-0.9.0-py3-none-any.whl Installing collected packages: nbclient Creating /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/bin changing mode of /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/bin/jupyter-execute to 755 Successfully installed nbclient-0.9.0 + '[' -d /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/bin ']' + '[' -z P ']' + shebang_flags=-kaP + /usr/bin/python3 -B /usr/lib/rpm/redhat/pathfix.py -pni /usr/bin/python3 -kaP /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/bin/jupyter-execute /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/bin/jupyter-execute: updating + rm -rfv /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/bin/__pycache__ + rm -f /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib/python3.12/site-packages ']' + site_dirs+=("/usr/lib/python3.12/site-packages") + '[' /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib64/python3.12/site-packages '!=' /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib/python3.12/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib64/python3.12/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.12/site-packages/nbclient-0.9.0.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib/python3.12/site-packages/nbclient-0.9.0.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-nbclient-0.9.0-4.fc40.noarch --record /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib/python3.12/site-packages/nbclient-0.9.0.dist-info/RECORD --output /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-record + rm -fv /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib/python3.12/site-packages/nbclient-0.9.0.dist-info/RECORD removed '/builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib/python3.12/site-packages/nbclient-0.9.0.dist-info/RECORD' + rm -fv /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib/python3.12/site-packages/nbclient-0.9.0.dist-info/REQUESTED removed '/builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib/python3.12/site-packages/nbclient-0.9.0.dist-info/REQUESTED' ++ cut -f1 '-d ' ++ wc -l /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-ghost-distinfo + 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-nbclient-0.9.0-4.fc40.noarch-pyproject-files --output-modules /builddir/build/BUILD/python-nbclient-0.9.0-4.fc40.noarch-pyproject-modules --buildroot /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.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-nbclient-0.9.0-4.fc40.noarch-pyproject-record --prefix /usr nbclient + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 0.9.0-4.fc40 --unique-debug-suffix -0.9.0-4.fc40.noarch --unique-debug-src-base python-nbclient-0.9.0-4.fc40.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/nbclient-0.9.0 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 -j32 Bytecompiling .py files below /builddir/build/BUILDROOT/python-nbclient-0.9.0-4.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.NtOMG0 + 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 --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 nbclient-0.9.0 + 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-nbclient-0.9.0-4.fc40.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib64/python3.12/site-packages:/builddir/build/BUILDROOT/python-nbclient-0.9.0-4.fc40.noarch/usr/lib/python3.12/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/nbclient-0.9.0/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=32 + /usr/bin/pytest -vv ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.4.3, pluggy-1.3.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/nbclient-0.9.0 configfile: pyproject.toml testpaths: tests plugins: asyncio-0.21.0, flaky-3.7.0, cov-4.0.0, anyio-3.7.1 asyncio: mode=Mode.AUTO collecting ... collected 94 items tests/test_client.py::test_run_all_notebooks[Other Comms.ipynb-opts0] PASSED [ 1%] tests/test_client.py::test_run_all_notebooks[Clear Output.ipynb-opts1] PASSED [ 2%] tests/test_client.py::test_run_all_notebooks[Empty Cell.ipynb-opts2] PASSED [ 3%] tests/test_client.py::test_run_all_notebooks[Factorials.ipynb-opts3] PASSED [ 4%] tests/test_client.py::test_run_all_notebooks[HelloWorld.ipynb-opts4] PASSED [ 5%] tests/test_client.py::test_run_all_notebooks[Inline Image.ipynb-opts5] PASSED [ 6%] tests/test_client.py::test_run_all_notebooks[Interrupt.ipynb-opts6] FAILED [ 7%] tests/test_client.py::test_run_all_notebooks[JupyterWidgets.ipynb-opts7] FAILED [ 8%] tests/test_client.py::test_run_all_notebooks[Skip Exceptions with Cell Tags.ipynb-opts8] FAILED [ 9%] tests/test_client.py::test_run_all_notebooks[Skip Exceptions.ipynb-opts9] FAILED [ 10%] tests/test_client.py::test_run_all_notebooks[Skip Execution with Cell Tag.ipynb-opts10] PASSED [ 11%] tests/test_client.py::test_run_all_notebooks[SVG.ipynb-opts11] PASSED [ 12%] tests/test_client.py::test_run_all_notebooks[Unicode.ipynb-opts12] PASSED [ 13%] tests/test_client.py::test_run_all_notebooks[UnicodePy3.ipynb-opts13] PASSED [ 14%] tests/test_client.py::test_run_all_notebooks[update-display-id.ipynb-opts14] PASSED [ 15%] tests/test_client.py::test_run_all_notebooks[Check History in Memory.ipynb-opts15] PASSED [ 17%] tests/test_client.py::test_parallel_notebooks PASSED [ 18%] tests/test_client.py::test_many_parallel_notebooks FAILED [ 19%] tests/test_client.py::test_async_parallel_notebooks PASSED [ 20%] tests/test_client.py::test_many_async_parallel_notebooks PASSED [ 21%] tests/test_client.py::test_execution_timing PASSED [ 22%] tests/test_client.py::test_synchronous_setup_kernel PASSED [ 23%] tests/test_client.py::test_startnewkernel_with_kernelmanager PASSED [ 24%] tests/test_client.py::test_start_new_kernel_history_file_setting PASSED [ 25%] tests/test_client.py::test_start_new_kernel_client_cleans_up_kernel_on_failure PASSED [ 26%] tests/test_client.py::TestExecute::test_allow_errors PASSED [ 27%] tests/test_client.py::TestExecute::test_async_execution_hook PASSED [ 28%] tests/test_client.py::TestExecute::test_cleanup_kernel_client PASSED [ 29%] tests/test_client.py::TestExecute::test_constructor PASSED [ 30%] tests/test_client.py::TestExecute::test_custom_kernel_manager PASSED [ 31%] tests/test_client.py::TestExecute::test_disable_stdin PASSED [ 32%] tests/test_client.py::TestExecute::test_empty_kernel_name PASSED [ 34%] tests/test_client.py::TestExecute::test_empty_path PASSED [ 35%] tests/test_client.py::TestExecute::test_error_async_execution_hook PASSED [ 36%] tests/test_client.py::TestExecute::test_error_execution_hook_error PASSED [ 37%] tests/test_client.py::TestExecute::test_error_notebook_hook PASSED [ 38%] tests/test_client.py::TestExecute::test_execute_function PASSED [ 39%] tests/test_client.py::TestExecute::test_execution_hook PASSED [ 40%] tests/test_client.py::TestExecute::test_force_raise_errors PASSED [ 41%] tests/test_client.py::TestExecute::test_kernel_death_after_timeout PASSED [ 42%] tests/test_client.py::TestExecute::test_kernel_death_during_execution PASSED [ 43%] tests/test_client.py::TestExecute::test_populate_language_info FAILED [ 44%] tests/test_client.py::TestExecute::test_process_message_wrapper FAILED [ 45%] tests/test_client.py::TestExecute::test_reset_kernel_client FAILED [ 46%] tests/test_client.py::TestExecute::test_sync_kernel_manager FAILED [ 47%] tests/test_client.py::TestExecute::test_timeout FAILED [ 48%] tests/test_client.py::TestExecute::test_timeout_func FAILED [ 50%] tests/test_client.py::TestExecute::test_widgets FAILED [ 51%] tests/test_client.py::TestRunCell::test_allow_error_names PASSED [ 52%] tests/test_client.py::TestRunCell::test_allow_errors PASSED [ 53%] tests/test_client.py::TestRunCell::test_async_cell_hooks PASSED [ 54%] tests/test_client.py::TestRunCell::test_busy_message PASSED [ 55%] tests/test_client.py::TestRunCell::test_cell_hooks PASSED [ 56%] tests/test_client.py::TestRunCell::test_clear_output_message PASSED [ 57%] tests/test_client.py::TestRunCell::test_clear_output_wait_message PASSED [ 58%] tests/test_client.py::TestRunCell::test_clear_output_wait_then_message_message PASSED [ 59%] tests/test_client.py::TestRunCell::test_clear_output_wait_then_update_display_message PASSED [ 60%] tests/test_client.py::TestRunCell::test_coalesce_streams PASSED [ 61%] tests/test_client.py::TestRunCell::test_deadline_exec_reply PASSED [ 62%] tests/test_client.py::TestRunCell::test_deadline_iopub PASSED [ 63%] tests/test_client.py::TestRunCell::test_display_data_message PASSED [ 64%] tests/test_client.py::TestRunCell::test_display_data_same_id_message PASSED [ 65%] tests/test_client.py::TestRunCell::test_display_data_without_id_message PASSED [ 67%] tests/test_client.py::TestRunCell::test_error_and_error_status_messages PASSED [ 68%] tests/test_client.py::TestRunCell::test_error_async_cell_hooks PASSED [ 69%] tests/test_client.py::TestRunCell::test_error_cell_hooks PASSED [ 70%] tests/test_client.py::TestRunCell::test_error_message PASSED [ 71%] tests/test_client.py::TestRunCell::test_error_message_only PASSED [ 72%] tests/test_client.py::TestRunCell::test_eventual_deadline_iopub PASSED [ 73%] tests/test_client.py::TestRunCell::test_execute_input_message PASSED [ 74%] tests/test_client.py::TestRunCell::test_execute_result_message PASSED [ 75%] tests/test_client.py::TestRunCell::test_execute_result_with_display_message PASSED [ 76%] tests/test_client.py::TestRunCell::test_execution_count_message PASSED [ 77%] tests/test_client.py::TestRunCell::test_execution_count_message_ignored_on_override PASSED [ 78%] tests/test_client.py::TestRunCell::test_execution_count_with_stream_message PASSED [ 79%] tests/test_client.py::TestRunCell::test_idle_message PASSED [ 80%] tests/test_client.py::TestRunCell::test_message_for_wrong_parent PASSED [ 81%] tests/test_client.py::TestRunCell::test_no_source PASSED [ 82%] tests/test_client.py::TestRunCell::test_non_code_cell PASSED [ 84%] tests/test_client.py::TestRunCell::test_non_code_cell_hooks PASSED [ 85%] tests/test_client.py::TestRunCell::test_raises_exception_tag PASSED [ 86%] tests/test_client.py::TestRunCell::test_stream_messages PASSED [ 87%] tests/test_client.py::TestRunCell::test_unknown_comm_message PASSED [ 88%] tests/test_client.py::TestRunCell::test_update_display_data_message PASSED [ 89%] tests/test_client.py::TestRunCell::test_update_display_data_mismatch_id_message PASSED [ 90%] tests/test_client.py::TestRunCell::test_update_display_data_without_id_message PASSED [ 91%] tests/test_client.py::TestRunCell::test_widget_comm_buffer_message_single PASSED [ 92%] tests/test_client.py::TestRunCell::test_widget_comm_buffer_messages PASSED [ 93%] tests/test_client.py::TestRunCell::test_widget_comm_message PASSED [ 94%] tests/test_util.py::test_nested_asyncio_with_existing_ioloop PASSED [ 95%] tests/test_util.py::test_nested_asyncio_with_no_ioloop PASSED [ 96%] tests/test_util.py::test_nested_asyncio_with_tornado PASSED [ 97%] tests/test_util.py::test_run_hook_sync PASSED [ 98%] tests/test_util.py::test_run_hook_async PASSED [100%] =================================== FAILURES =================================== ________________ test_run_all_notebooks[Interrupt.ipynb-opts6] _________________ input_name = 'Interrupt.ipynb' opts = {'allow_errors': True, 'interrupt_on_timeout': True, 'kernel_name': 'python', 'timeout': 3} @pytest.mark.parametrize( ["input_name", "opts"], [ ("Other Comms.ipynb", {"kernel_name": "python"}), ("Clear Output.ipynb", {"kernel_name": "python"}), ("Empty Cell.ipynb", {"kernel_name": "python"}), ("Factorials.ipynb", {"kernel_name": "python"}), ("HelloWorld.ipynb", {"kernel_name": "python"}), ("Inline Image.ipynb", {"kernel_name": "python"}), ( "Interrupt.ipynb", { "kernel_name": "python", "timeout": 3, "interrupt_on_timeout": True, "allow_errors": True, }, ), ("JupyterWidgets.ipynb", {"kernel_name": "python"}), ("Skip Exceptions with Cell Tags.ipynb", {"kernel_name": "python"}), ("Skip Exceptions.ipynb", {"kernel_name": "python", "allow_errors": True}), ("Skip Execution with Cell Tag.ipynb", {"kernel_name": "python"}), ("SVG.ipynb", {"kernel_name": "python"}), ("Unicode.ipynb", {"kernel_name": "python"}), ("UnicodePy3.ipynb", {"kernel_name": "python"}), ("update-display-id.ipynb", {"kernel_name": "python"}), ("Check History in Memory.ipynb", {"kernel_name": "python"}), ], ) def test_run_all_notebooks(input_name, opts): """Runs a series of test notebooks and compares them to their actual output""" input_file = os.path.join(current_dir, "files", input_name) input_nb, output_nb = run_notebook(input_file, opts, notebook_resources()) > assert_notebooks_equal(input_nb, output_nb) input_file = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/Interrupt.ipynb' input_name = 'Interrupt.ipynb' input_nb = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'ename': 'KeyboardInterrupt', 'evalue': '', 'output_type': 'error', 'traceback': ['\x1b[0;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m ' 'Traceback (most recent call last)', '\x1b[0;32m\x1b[0m ' 'in ' '\x1b[0;36m\x1b[0;34m\x1b[0m\n' '\x1b[0;32m----> 1\x1b[0;31m ' '\x1b[0;32mwhile\x1b[0m ' '\x1b[0;32mTrue\x1b[0m\x1b[0;34m:\x1b[0m ' '\x1b[0;32mcontinue\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n' '\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m: ']}], 'source': 'while True: continue'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {'collapsed': False}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'done\n'}], 'source': 'print("done")'}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} opts = {'allow_errors': True, 'interrupt_on_timeout': True, 'kernel_name': 'python', 'timeout': 3} output_nb = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False, 'execution': {'iopub.execute_input': '2024-04-12T22:14:38.662641Z', 'iopub.status.busy': '2024-04-12T22:14:38.656028Z', 'iopub.status.idle': '2024-04-12T22:14:45.045895Z', 'shell.execute_reply': '2024-04-12T22:14:45.029060Z'}}, 'outputs': [{'name': 'stderr', 'output_type': 'stream', 'text': '\nKeyboardInterrupt\n\n'}], 'source': 'while True: continue'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {'collapsed': False, 'execution': {'iopub.execute_input': '2024-04-12T22:14:45.428501Z', 'iopub.status.busy': '2024-04-12T22:14:45.416846Z', 'iopub.status.idle': '2024-04-12T22:14:46.015245Z', 'shell.execute_reply': '2024-04-12T22:14:45.995756Z'}}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'done\n'}], 'source': 'print("done")'}], 'metadata': {'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.12.0'}}, 'nbformat': 4, 'nbformat_minor': 0} tests/test_client.py:352: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ expected = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'ename': 'Keyboa...t_type': 'stream', 'text': 'done\n'}], 'source': 'print("done")'}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} actual = {'cells': [{'cell_type': 'code', 'metadata': {'collapsed': False, 'execution': {'iopub.status.busy': '2024-04-12T22:14...ents_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}}, 'nbformat': 4, 'nbformat_minor': 0} def assert_notebooks_equal(expected, actual): expected_cells = expected["cells"] actual_cells = actual["cells"] assert len(expected_cells) == len(actual_cells)  for expected_cell, actual_cell in zip(expected_cells, actual_cells): # Uncomment these to help debug test failures better # from pprint import pprint # pprint(expected_cell) # pprint(actual_cell) expected_outputs = expected_cell.get("outputs", []) actual_outputs = actual_cell.get("outputs", []) normalized_expected_outputs = list(map(normalize_output, expected_outputs)) normalized_actual_outputs = list(map(normalize_output, actual_outputs)) > assert normalized_expected_outputs == normalized_actual_outputs E AssertionError: assert [{'ename': 'KeyboardInterrupt', 'evalue': '', 'output_type': 'error', 'traceback': ['---------------------------------------------------------------------------', 'KeyboardInterrupt Traceback (most recent call last)', '\n----> 1 while True: continue\n', 'KeyboardInterrupt: ']}] == [{'output_type': 'stream', 'name': 'stderr', 'text': '\nKeyboardInterrupt\n\n'}] E At index 0 diff: {'ename': 'KeyboardInterrupt', 'evalue': '', 'output_type': 'error', 'traceback': ['---------------------------------------------------------------------------', 'KeyboardInterrupt Traceback (most recent call last)', '\n----> 1 while True: continue\n', 'KeyboardInterrupt: ']} != {'output_type': 'stream', 'name': 'stderr', 'text': '\nKeyboardInterrupt\n\n'} E Full diff: E [ E - {'name': 'stderr', E + {'ename': 'KeyboardInterrupt', E + 'evalue': '', E - 'output_type': 'stream', E ? ^^ ^^^ E + 'output_type': 'error', E ? ^ ^^^ E - 'text': '\n' E + 'traceback': ['---------------------------------------------------------------------------', E + 'KeyboardInterrupt Traceback (most ' E + 'recent call last)', E + '\n' E + '----> 1 while True: continue\n', E - 'KeyboardInterrupt\n' E ? ^^ E + 'KeyboardInterrupt: ']}, E ? ++++++ ^^ +++ E - '\n'}, E ] actual = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False, 'execution': {'iopub.execute_input': '2024-04-12T22:14:38.662641Z', 'iopub.status.busy': '2024-04-12T22:14:38.656028Z', 'iopub.status.idle': '2024-04-12T22:14:45.045895Z', 'shell.execute_reply': '2024-04-12T22:14:45.029060Z'}}, 'outputs': [{'name': 'stderr', 'output_type': 'stream', 'text': '\nKeyboardInterrupt\n\n'}], 'source': 'while True: continue'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {'collapsed': False, 'execution': {'iopub.execute_input': '2024-04-12T22:14:45.428501Z', 'iopub.status.busy': '2024-04-12T22:14:45.416846Z', 'iopub.status.idle': '2024-04-12T22:14:46.015245Z', 'shell.execute_reply': '2024-04-12T22:14:45.995756Z'}}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'done\n'}], 'source': 'print("done")'}], 'metadata': {'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.12.0'}}, 'nbformat': 4, 'nbformat_minor': 0} actual_cell = {'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False, 'execution': {'iopub.execute_input': '2024-04-12T22:14:38.662641Z', 'iopub.status.busy': '2024-04-12T22:14:38.656028Z', 'iopub.status.idle': '2024-04-12T22:14:45.045895Z', 'shell.execute_reply': '2024-04-12T22:14:45.029060Z'}}, 'outputs': [{'name': 'stderr', 'output_type': 'stream', 'text': '\nKeyboardInterrupt\n\n'}], 'source': 'while True: continue'} actual_cells = [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False, 'execution': {'iopub.execute_input': '2024-04-12T22:14:38.662641Z', 'iopub.status.busy': '2024-04-12T22:14:38.656028Z', 'iopub.status.idle': '2024-04-12T22:14:45.045895Z', 'shell.execute_reply': '2024-04-12T22:14:45.029060Z'}}, 'outputs': [{'name': 'stderr', 'output_type': 'stream', 'text': '\nKeyboardInterrupt\n\n'}], 'source': 'while True: continue'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {'collapsed': False, 'execution': {'iopub.execute_input': '2024-04-12T22:14:45.428501Z', 'iopub.status.busy': '2024-04-12T22:14:45.416846Z', 'iopub.status.idle': '2024-04-12T22:14:46.015245Z', 'shell.execute_reply': '2024-04-12T22:14:45.995756Z'}}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'done\n'}], 'source': 'print("done")'}] actual_outputs = [{'name': 'stderr', 'output_type': 'stream', 'text': '\nKeyboardInterrupt\n\n'}] expected = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'ename': 'KeyboardInterrupt', 'evalue': '', 'output_type': 'error', 'traceback': ['\x1b[0;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m ' 'Traceback (most recent call last)', '\x1b[0;32m\x1b[0m ' 'in ' '\x1b[0;36m\x1b[0;34m\x1b[0m\n' '\x1b[0;32m----> 1\x1b[0;31m ' '\x1b[0;32mwhile\x1b[0m ' '\x1b[0;32mTrue\x1b[0m\x1b[0;34m:\x1b[0m ' '\x1b[0;32mcontinue\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n' '\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m: ']}], 'source': 'while True: continue'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {'collapsed': False}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'done\n'}], 'source': 'print("done")'}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} expected_cell = {'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'ename': 'KeyboardInterrupt', 'evalue': '', 'output_type': 'error', 'traceback': ['\x1b[0;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m ' 'Traceback (most recent call last)', '\x1b[0;32m\x1b[0m ' 'in \x1b[0;36m\x1b[0;34m\x1b[0m\n' '\x1b[0;32m----> 1\x1b[0;31m ' '\x1b[0;32mwhile\x1b[0m ' '\x1b[0;32mTrue\x1b[0m\x1b[0;34m:\x1b[0m ' '\x1b[0;32mcontinue\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n' '\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m: ']}], 'source': 'while True: continue'} expected_cells = [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'ename': 'KeyboardInterrupt', 'evalue': '', 'output_type': 'error', 'traceback': ['\x1b[0;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m ' 'Traceback (most recent call last)', '\x1b[0;32m\x1b[0m ' 'in \x1b[0;36m\x1b[0;34m\x1b[0m\n' '\x1b[0;32m----> 1\x1b[0;31m ' '\x1b[0;32mwhile\x1b[0m ' '\x1b[0;32mTrue\x1b[0m\x1b[0;34m:\x1b[0m ' '\x1b[0;32mcontinue\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n' '\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m: ']}], 'source': 'while True: continue'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {'collapsed': False}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'done\n'}], 'source': 'print("done")'}] expected_outputs = [{'ename': 'KeyboardInterrupt', 'evalue': '', 'output_type': 'error', 'traceback': ['\x1b[0;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m ' 'Traceback (most recent call last)', '\x1b[0;32m\x1b[0m in ' '\x1b[0;36m\x1b[0;34m\x1b[0m\n' '\x1b[0;32m----> 1\x1b[0;31m \x1b[0;32mwhile\x1b[0m ' '\x1b[0;32mTrue\x1b[0m\x1b[0;34m:\x1b[0m ' '\x1b[0;32mcontinue\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n' '\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m: ']}] normalized_actual_outputs = [{'name': 'stderr', 'output_type': 'stream', 'text': '\nKeyboardInterrupt\n\n'}] normalized_expected_outputs = [{'ename': 'KeyboardInterrupt', 'evalue': '', 'output_type': 'error', 'traceback': ['---------------------------------------------------------------------------', 'KeyboardInterrupt Traceback (most ' 'recent call last)', '\n----> 1 while True: continue\n', 'KeyboardInterrupt: ']}] tests/test_client.py:294: AssertionError ----------------------------- Captured stderr call ----------------------------- [IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled ------------------------------ Captured log call ------------------------------- INFO traitlets:client.py:695 Executing notebook with kernel: python ERROR traitlets:client.py:845 Timeout waiting for execute reply (3s). ERROR traitlets:client.py:847 Interrupting kernel ERROR traitlets:client.py:845 Timeout waiting for execute reply (3s). ERROR traitlets:client.py:847 Interrupting kernel ______________ test_run_all_notebooks[JupyterWidgets.ipynb-opts7] ______________ input_name = 'JupyterWidgets.ipynb', opts = {'kernel_name': 'python'} @pytest.mark.parametrize( ["input_name", "opts"], [ ("Other Comms.ipynb", {"kernel_name": "python"}), ("Clear Output.ipynb", {"kernel_name": "python"}), ("Empty Cell.ipynb", {"kernel_name": "python"}), ("Factorials.ipynb", {"kernel_name": "python"}), ("HelloWorld.ipynb", {"kernel_name": "python"}), ("Inline Image.ipynb", {"kernel_name": "python"}), ( "Interrupt.ipynb", { "kernel_name": "python", "timeout": 3, "interrupt_on_timeout": True, "allow_errors": True, }, ), ("JupyterWidgets.ipynb", {"kernel_name": "python"}), ("Skip Exceptions with Cell Tags.ipynb", {"kernel_name": "python"}), ("Skip Exceptions.ipynb", {"kernel_name": "python", "allow_errors": True}), ("Skip Execution with Cell Tag.ipynb", {"kernel_name": "python"}), ("SVG.ipynb", {"kernel_name": "python"}), ("Unicode.ipynb", {"kernel_name": "python"}), ("UnicodePy3.ipynb", {"kernel_name": "python"}), ("update-display-id.ipynb", {"kernel_name": "python"}), ("Check History in Memory.ipynb", {"kernel_name": "python"}), ], ) def test_run_all_notebooks(input_name, opts): """Runs a series of test notebooks and compares them to their actual output""" input_file = os.path.join(current_dir, "files", input_name) > input_nb, output_nb = run_notebook(input_file, opts, notebook_resources()) input_file = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/JupyterWidgets.ipynb' input_name = 'JupyterWidgets.ipynb' opts = {'kernel_name': 'python'} tests/test_client.py:351: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_client.py:138: in run_notebook output_nb = executor.execute() cell = {'cell_type': 'code', 'metadata': {}, 'outputs': [], 'source': "# it should also handle custom msg'es\n" "label.send({'msg': 'Hello'})"} cleaned_input_nb = {'cells': [{'cell_type': 'code', 'metadata': {}, 'outputs': [], 'source': 'import ipywidgets\n' "label = ipywidgets.Label('Hello World')\n" 'display(label)'}, {'cell_type': 'code', 'metadata': {}, 'outputs': [], 'source': "# it should also handle custom msg'es\n" "label.send({'msg': 'Hello'})"}], 'metadata': {'kernelspec': {'display_name': 'Python 3', 'language': 'python', 'name': 'python3'}, 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.6.4'}, 'widgets': {'application/vnd.jupyter.widget-state+json': {'state': {'8273e8fe9d9941a4a63c062158e0a630': {'model_module': '@jupyter-widgets/controls', 'model_module_version': '1.4.0', 'model_name': 'DescriptionStyleModel', 'state': {'description_width': ''}}, 'a72770a4f541425f8fe85833a3dc2a8e': {'model_module': '@jupyter-widgets/controls', 'model_module_version': '1.4.0', 'model_name': 'LabelModel', 'state': {'context_menu': None, 'layout': 'IPY_MODEL_dec20f599109458ca607b1df5959469b', 'style': 'IPY_MODEL_8273e8fe9d9941a4a63c062158e0a630', 'value': 'Hello ' 'World'}}, 'dec20f599109458ca607b1df5959469b': {'model_module': '@jupyter-widgets/base', 'model_module_version': '1.1.0', 'model_name': 'LayoutModel', 'state': {}}}, 'version_major': 2, 'version_minor': 0}}}, 'nbformat': 4, 'nbformat_minor': 2} executor = f = <_io.TextIOWrapper name='/builddir/build/BUILD/nbclient-0.9.0/tests/files/JupyterWidgets.ipynb' mode='r' encoding='UTF-8'> filename = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/JupyterWidgets.ipynb' input_nb = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {}, 'outputs': [{'data': {'application/vnd.jupyter.widget-view+json': {'model_id': 'f46f26da84b54255bccc3a69d7eb08de', 'version_major': 2, 'version_minor': 0}, 'text/plain': "Label(value='Hello World')"}, 'metadata': {}, 'output_type': 'display_data'}], 'source': 'import ipywidgets\n' "label = ipywidgets.Label('Hello World')\n" 'display(label)'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {}, 'outputs': [], 'source': "# it should also handle custom msg'es\n" "label.send({'msg': 'Hello'})"}], 'metadata': {'kernelspec': {'display_name': 'Python 3', 'language': 'python', 'name': 'python3'}, 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.6.4'}, 'widgets': {'application/vnd.jupyter.widget-state+json': {'state': {'8273e8fe9d9941a4a63c062158e0a630': {'model_module': '@jupyter-widgets/controls', 'model_module_version': '1.4.0', 'model_name': 'DescriptionStyleModel', 'state': {'description_width': ''}}, 'a72770a4f541425f8fe85833a3dc2a8e': {'model_module': '@jupyter-widgets/controls', 'model_module_version': '1.4.0', 'model_name': 'LabelModel', 'state': {'context_menu': None, 'layout': 'IPY_MODEL_dec20f599109458ca607b1df5959469b', 'style': 'IPY_MODEL_8273e8fe9d9941a4a63c062158e0a630', 'value': 'Hello ' 'World'}}, 'dec20f599109458ca607b1df5959469b': {'model_module': '@jupyter-widgets/base', 'model_module_version': '1.1.0', 'model_name': 'LayoutModel', 'state': {}}}, 'version_major': 2, 'version_minor': 0}}}, 'nbformat': 4, 'nbformat_minor': 2} opts = {'kernel_name': 'python', 'resources': {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}}} resources = {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}} /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:160: in wrapped return loop.run_until_complete(inner) args = (,) coro = inner = kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> name = 'MainThread' /usr/lib64/python3.12/asyncio/base_events.py:664: in run_until_complete return future.result() future = exception=RuntimeError("Kernel didn't respond in 60 seconds")> new_task = True self = <_UnixSelectorEventLoop running=False closed=False debug=False> nbclient/client.py:693: in async_execute async with self.async_setup_kernel(**kwargs): kwargs = {} reset_kc = False self = /usr/lib64/python3.12/contextlib.py:204: in __aenter__ return await anext(self.gen) self = nbclient/client.py:651: in async_setup_kernel await self.async_start_new_kernel_client() cleanup_kc = True kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> on_signal = .on_signal at 0xffffff9d9e63e0> self = nbclient/client.py:566: in async_start_new_kernel_client await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout)) self = /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:172: in ensure_async result = await obj obj = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 KernelManager = abs_timeout = 1712960163.660393 self = timeout = 60 /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/usr/lib/python3.12/site-packages/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 21, in from .execution import ExecutionMagics 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 752, in _compile_bytecode KeyboardInterrupt ------------------------------ Captured log call ------------------------------- ERROR traitlets:client.py:568 Error occurred while starting new kernel client for kernel a25c49af-99bb-4023-a8eb-336dcb3fa309: Kernel didn't respond in 60 seconds ______ test_run_all_notebooks[Skip Exceptions with Cell Tags.ipynb-opts8] ______ input_name = 'Skip Exceptions with Cell Tags.ipynb' opts = {'kernel_name': 'python'} @pytest.mark.parametrize( ["input_name", "opts"], [ ("Other Comms.ipynb", {"kernel_name": "python"}), ("Clear Output.ipynb", {"kernel_name": "python"}), ("Empty Cell.ipynb", {"kernel_name": "python"}), ("Factorials.ipynb", {"kernel_name": "python"}), ("HelloWorld.ipynb", {"kernel_name": "python"}), ("Inline Image.ipynb", {"kernel_name": "python"}), ( "Interrupt.ipynb", { "kernel_name": "python", "timeout": 3, "interrupt_on_timeout": True, "allow_errors": True, }, ), ("JupyterWidgets.ipynb", {"kernel_name": "python"}), ("Skip Exceptions with Cell Tags.ipynb", {"kernel_name": "python"}), ("Skip Exceptions.ipynb", {"kernel_name": "python", "allow_errors": True}), ("Skip Execution with Cell Tag.ipynb", {"kernel_name": "python"}), ("SVG.ipynb", {"kernel_name": "python"}), ("Unicode.ipynb", {"kernel_name": "python"}), ("UnicodePy3.ipynb", {"kernel_name": "python"}), ("update-display-id.ipynb", {"kernel_name": "python"}), ("Check History in Memory.ipynb", {"kernel_name": "python"}), ], ) def test_run_all_notebooks(input_name, opts): """Runs a series of test notebooks and compares them to their actual output""" input_file = os.path.join(current_dir, "files", input_name) > input_nb, output_nb = run_notebook(input_file, opts, notebook_resources()) input_file = ('/builddir/build/BUILD/nbclient-0.9.0/tests/files/Skip Exceptions with Cell ' 'Tags.ipynb') input_name = 'Skip Exceptions with Cell Tags.ipynb' opts = {'kernel_name': 'python'} tests/test_client.py:351: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_client.py:138: in run_notebook output_nb = executor.execute() cell = {'cell_type': 'code', 'metadata': {}, 'outputs': [], 'source': "print('ok')"} cleaned_input_nb = {'cells': [{'cell_type': 'code', 'metadata': {'tags': ['raises-exception']}, 'outputs': [], 'source': 'import sys\n' 'print("hello")\n' 'print("errorred", file=sys.stderr)\n' '# üñîçø∂é\n' 'raise Exception("message")'}, {'cell_type': 'code', 'metadata': {}, 'outputs': [], 'source': "print('ok')"}], 'metadata': {'kernelspec': {'display_name': 'Python 3 (ipykernel)', 'language': 'python', 'name': 'python3'}, 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.10.9'}, 'widgets': {'application/vnd.jupyter.widget-state+json': {'state': {}, 'version_major': 2, 'version_minor': 0}}}, 'nbformat': 4, 'nbformat_minor': 4} executor = f = <_io.TextIOWrapper name='/builddir/build/BUILD/nbclient-0.9.0/tests/files/Skip Exceptions with Cell Tags.ipynb' mode='r' encoding='UTF-8'> filename = ('/builddir/build/BUILD/nbclient-0.9.0/tests/files/Skip Exceptions with Cell ' 'Tags.ipynb') input_nb = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'tags': ['raises-exception']}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'hello\n'}, {'name': 'stderr', 'output_type': 'stream', 'text': 'errorred\n'}, {'ename': 'Exception', 'evalue': 'message', 'output_type': 'error', 'traceback': ['\x1b[0;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[0;31mException\x1b[0m ' 'Traceback (most recent call last)', 'Cell \x1b[0;32mIn[1], line 5\x1b[0m\n' '\x1b[1;32m 3\x1b[0m ' '\x1b[38;5;28mprint\x1b[39m(\x1b[38;5;124m"\x1b[39m\x1b[38;5;124merrorred\x1b[39m\x1b[38;5;124m"\x1b[39m, ' 'file\x1b[38;5;241m=\x1b[39msys\x1b[38;5;241m.\x1b[39mstderr)\n' '\x1b[1;32m 4\x1b[0m ' '\x1b[38;5;66;03m# üñîçø∂é\x1b[39;00m\n' '\x1b[0;32m----> 5\x1b[0m ' '\x1b[38;5;28;01mraise\x1b[39;00m ' '\x1b[38;5;167;01mException\x1b[39;00m(\x1b[38;5;124m"\x1b[39m\x1b[38;5;124mmessage\x1b[39m\x1b[38;5;124m"\x1b[39m)\n', '\x1b[0;31mException\x1b[0m: message']}], 'source': 'import sys\n' 'print("hello")\n' 'print("errorred", file=sys.stderr)\n' '# üñîçø∂é\n' 'raise Exception("message")'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'ok\n'}], 'source': "print('ok')"}], 'metadata': {'kernelspec': {'display_name': 'Python 3 (ipykernel)', 'language': 'python', 'name': 'python3'}, 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.10.9'}, 'widgets': {'application/vnd.jupyter.widget-state+json': {'state': {}, 'version_major': 2, 'version_minor': 0}}}, 'nbformat': 4, 'nbformat_minor': 4} opts = {'kernel_name': 'python', 'resources': {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}}} resources = {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}} /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:160: in wrapped return loop.run_until_complete(inner) args = (,) coro = inner = kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> name = 'MainThread' /usr/lib64/python3.12/asyncio/base_events.py:664: in run_until_complete return future.result() future = exception=RuntimeError("Kernel didn't respond in 60 seconds")> new_task = True self = <_UnixSelectorEventLoop running=False closed=False debug=False> nbclient/client.py:693: in async_execute async with self.async_setup_kernel(**kwargs): kwargs = {} reset_kc = False self = /usr/lib64/python3.12/contextlib.py:204: in __aenter__ return await anext(self.gen) self = nbclient/client.py:651: in async_setup_kernel await self.async_start_new_kernel_client() cleanup_kc = True kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> on_signal = .on_signal at 0xffffff9d9e47c0> self = nbclient/client.py:566: in async_start_new_kernel_client await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout)) self = /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:172: in ensure_async result = await obj obj = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 KernelManager = abs_timeout = 1712960261.595461 self = timeout = 60 /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/usr/lib/python3.12/site-packages/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 13, in import parso File "/usr/lib/python3.12/site-packages/parso/__init__.py", line 41, in from parso.parser import ParserSyntaxError File "/usr/lib/python3.12/site-packages/parso/parser.py", line 29, in from parso.pgen2.generator import ReservedString File "/usr/lib/python3.12/site-packages/parso/pgen2/__init__.py", line 10, in from parso.pgen2.generator import generate_grammar File "/usr/lib/python3.12/site-packages/parso/pgen2/generator.py", line 32, in from parso.pgen2.grammar_parser import GrammarParser, NFAState File "/usr/lib/python3.12/site-packages/parso/pgen2/grammar_parser.py", line 9, in from parso.python.tokenize import tokenize File "/usr/lib/python3.12/site-packages/parso/python/tokenize.py", line 21, in from parso.python.token import PythonTokenTypes File "/usr/lib/python3.12/site-packages/parso/python/token.py", line 18, in class PythonTokenTypes(Enum): File "/usr/lib64/python3.12/enum.py", line 583, in __new__ enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/enum.py", line 356, in __set_name__ setattr(enum_class, member_name, enum_member) KeyboardInterrupt Error calling __set_name__ on '_proto_member' instance 'NUMBER' in 'PythonTokenTypes' ------------------------------ Captured log call ------------------------------- ERROR traitlets:client.py:568 Error occurred while starting new kernel client for kernel ef7ac0ce-5c78-4162-a39e-51cb0645d40f: Kernel didn't respond in 60 seconds _____________ test_run_all_notebooks[Skip Exceptions.ipynb-opts9] ______________ input_name = 'Skip Exceptions.ipynb' opts = {'allow_errors': True, 'kernel_name': 'python'} @pytest.mark.parametrize( ["input_name", "opts"], [ ("Other Comms.ipynb", {"kernel_name": "python"}), ("Clear Output.ipynb", {"kernel_name": "python"}), ("Empty Cell.ipynb", {"kernel_name": "python"}), ("Factorials.ipynb", {"kernel_name": "python"}), ("HelloWorld.ipynb", {"kernel_name": "python"}), ("Inline Image.ipynb", {"kernel_name": "python"}), ( "Interrupt.ipynb", { "kernel_name": "python", "timeout": 3, "interrupt_on_timeout": True, "allow_errors": True, }, ), ("JupyterWidgets.ipynb", {"kernel_name": "python"}), ("Skip Exceptions with Cell Tags.ipynb", {"kernel_name": "python"}), ("Skip Exceptions.ipynb", {"kernel_name": "python", "allow_errors": True}), ("Skip Execution with Cell Tag.ipynb", {"kernel_name": "python"}), ("SVG.ipynb", {"kernel_name": "python"}), ("Unicode.ipynb", {"kernel_name": "python"}), ("UnicodePy3.ipynb", {"kernel_name": "python"}), ("update-display-id.ipynb", {"kernel_name": "python"}), ("Check History in Memory.ipynb", {"kernel_name": "python"}), ], ) def test_run_all_notebooks(input_name, opts): """Runs a series of test notebooks and compares them to their actual output""" input_file = os.path.join(current_dir, "files", input_name) > input_nb, output_nb = run_notebook(input_file, opts, notebook_resources()) input_file = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/Skip Exceptions.ipynb' input_name = 'Skip Exceptions.ipynb' opts = {'allow_errors': True, 'kernel_name': 'python'} tests/test_client.py:351: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_client.py:138: in run_notebook output_nb = executor.execute() cell = {'cell_type': 'code', 'metadata': {'collapsed': False}, 'outputs': [], 'source': "print('ok')"} cleaned_input_nb = {'cells': [{'cell_type': 'code', 'metadata': {'collapsed': False}, 'outputs': [], 'source': '# üñîçø∂é\nraise Exception("message")'}, {'cell_type': 'code', 'metadata': {'collapsed': False}, 'outputs': [], 'source': "print('ok')"}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} executor = f = <_io.TextIOWrapper name='/builddir/build/BUILD/nbclient-0.9.0/tests/files/Skip Exceptions.ipynb' mode='r' encoding='UTF-8'> filename = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/Skip Exceptions.ipynb' input_nb = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'ename': 'Exception', 'evalue': 'message', 'output_type': 'error', 'traceback': ['\x1b[1;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[1;31mException\x1b[0m ' 'Traceback (most recent call last)', '\x1b[1;32m\x1b[0m ' 'in ' '\x1b[0;36m\x1b[1;34m\x1b[0m\n' '\x1b[0;32m 1\x1b[0m \x1b[1;31m# ' 'üñîçø∂é\x1b[0m\x1b[1;33m\x1b[0m\x1b[1;33m\x1b[0m\x1b[0m\n' '\x1b[1;32m----> 2\x1b[1;33m ' '\x1b[1;32mraise\x1b[0m ' '\x1b[0mException\x1b[0m\x1b[1;33m(\x1b[0m\x1b[1;34m"message"\x1b[0m\x1b[1;33m)\x1b[0m\x1b[1;33m\x1b[0m\x1b[0m\n' '\x1b[0m', '\x1b[1;31mException\x1b[0m: message']}], 'source': '# üñîçø∂é\nraise Exception("message")'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {'collapsed': False}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'ok\n'}], 'source': "print('ok')"}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} opts = {'allow_errors': True, 'kernel_name': 'python', 'resources': {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}}} resources = {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}} /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:160: in wrapped return loop.run_until_complete(inner) args = (,) coro = inner = kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> name = 'MainThread' /usr/lib64/python3.12/asyncio/base_events.py:664: in run_until_complete return future.result() future = exception=RuntimeError("Kernel didn't respond in 60 seconds")> new_task = True self = <_UnixSelectorEventLoop running=False closed=False debug=False> nbclient/client.py:693: in async_execute async with self.async_setup_kernel(**kwargs): kwargs = {} reset_kc = False self = /usr/lib64/python3.12/contextlib.py:204: in __aenter__ return await anext(self.gen) self = nbclient/client.py:651: in async_setup_kernel await self.async_start_new_kernel_client() cleanup_kc = True kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> on_signal = .on_signal at 0xffffff9d9e6b60> self = nbclient/client.py:566: in async_start_new_kernel_client await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout)) self = /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:172: in ensure_async result = await obj obj = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 KernelManager = abs_timeout = 1712960348.7659986 self = timeout = 60 /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ----------------------------- Captured stderr call ----------------------------- [IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled ------------------------------ Captured log call ------------------------------- ERROR traitlets:client.py:568 Error occurred while starting new kernel client for kernel d76b4b4e-5fce-41f0-a30c-609754e74b01: Kernel didn't respond in 60 seconds _________________________ test_many_parallel_notebooks _________________________ capfd = <_pytest.capture.CaptureFixture object at 0xffffff9dc35dc0> @flaky @pytest.mark.skipif(os.name == "nt", reason="warns about event loop on Windows") def test_many_parallel_notebooks(capfd): """Ensure that when many IPython kernels are run in parallel, nothing awful happens.  Specifically, many IPython kernels when run simultaneously would encounter errors due to using the same SQLite history database. """ opts = {"kernel_name": "python", "timeout": 5} input_name = "HelloWorld.ipynb" input_file = os.path.join(current_dir, "files", input_name) res = NBClientTestsBase().build_resources() res["metadata"]["path"] = os.path.join(current_dir, "files")  with warnings.catch_warnings(): # suppress warning from jupyter_client's deprecated cleanup() warnings.simplefilter(action="ignore", category=FutureWarning)  # run once, to trigger creating the original context run_notebook(input_file, opts, res)  with concurrent.futures.ProcessPoolExecutor(max_workers=2) as executor: executor.map(run_notebook_wrapper, [(input_file, opts, res) for i in range(8)])  captured = capfd.readouterr() > assert filter_messages_on_error_output(captured.err) == "" E assert 'Traceback (most recent call last):\n File "", line 198, in _run_module_as_main\n File "", line 88, in _run_code\n File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 17, in \n app.launch_new_instance()\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 1052, in launch_instance\n app.initialize(argv)\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner\n return method(app, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 689, in initialize\n self.init_sockets()\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 342, in init_sockets\n self.init_control(context)\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 366, in init_control\n self.control_thread = ControlThread(daemon=True)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/ipykernel/control.py", line 15, in __init__\n self.io_loop = IOLoop(make_current=False)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/site-packages/tornado/util.py", line 276, in __new__\n instance.initialize(*args, **init_kwargs)\n File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 315, in initialize\n kwargs["asyncio_loop"] = loop = asyncio.new_event_loop()\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/asyncio/events.py", line 819, in new_event_loop\n return get_event_loop_policy().new_event_loop()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/asyncio/events.py", line 716, in new_event_loop\n return self._loop_factory()\n ^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/asyncio/unix_events.py", line 64, in __init__\n super().__init__(selector)\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 66, in __init__\n self._make_self_pipe()\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 120, in _make_self_pipe\n self._ssock, self._csock = socket.socketpair()\n ^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/socket.py", line 609, in socketpair\n a, b = _socket.socketpair(family, type, proto)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nKeyboardInterrupt\nException ignored in: \nTraceback (most recent call last):\n File "/usr/lib64/python3.12/asyncio/base_events.py", line 705, in __del__\n self.close()\n File "/usr/lib64/python3.12/asyncio/unix_events.py", line 68, in close\n super().close()\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 104, in close\n self._close_self_pipe()\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 111, in _close_self_pipe\n self._remove_reader(self._ssock.fileno())\n ^^^^^^^^^^^\nAttributeError: \'_UnixSelectorEventLoop\' object has no attribute \'_ssock\'' == '' E + Traceback (most recent call last): E + File "", line 198, in _run_module_as_main E + File "", line 88, in _run_code E + File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 17, in E + app.launch_new_instance() E + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 1052, in launch_instance E + app.initialize(argv) E + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner E + return method(app, *args, **kwargs) E + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E + File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 689, in initialize E + self.init_sockets() E + File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 342, in init_sockets E + self.init_control(context) E + File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 366, in init_control E + self.control_thread = ControlThread(daemon=True) E + ^^^^^^^^^^^^^^^^^^^^^^^^^^ E + File "/usr/lib/python3.12/site-packages/ipykernel/control.py", line 15, in __init__ E + self.io_loop = IOLoop(make_current=False) E + ^^^^^^^^^^^^^^^^^^^^^^^^^^ E + File "/usr/lib64/python3.12/site-packages/tornado/util.py", line 276, in __new__ E + instance.initialize(*args, **init_kwargs) E + File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 315, in initialize E + kwargs["asyncio_loop"] = loop = asyncio.new_event_loop() E + ^^^^^^^^^^^^^^^^^^^^^^^^ E + File "/usr/lib64/python3.12/asyncio/events.py", line 819, in new_event_loop E + return get_event_loop_policy().new_event_loop() E + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E + File "/usr/lib64/python3.12/asyncio/events.py", line 716, in new_event_loop E + return self._loop_factory() E + ^^^^^^^^^^^^^^^^^^^^ E + File "/usr/lib64/python3.12/asyncio/unix_events.py", line 64, in __init__ E + super().__init__(selector) E + File "/usr/lib64/python3.12/asyncio/selector_events.py", line 66, in __init__ E + self._make_self_pipe() E + File "/usr/lib64/python3.12/asyncio/selector_events.py", line 120, in _make_self_pipe E + self._ssock, self._csock = socket.socketpair() E + ^^^^^^^^^^^^^^^^^^^ E + File "/usr/lib64/python3.12/socket.py", line 609, in socketpair E + a, b = _socket.socketpair(family, type, proto) E + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E + KeyboardInterrupt E + Exception ignored in: E + Traceback (most recent call last): E + File "/usr/lib64/python3.12/asyncio/base_events.py", line 705, in __del__ E + self.close() E + File "/usr/lib64/python3.12/asyncio/unix_events.py", line 68, in close E + super().close() E + File "/usr/lib64/python3.12/asyncio/selector_events.py", line 104, in close E + self._close_self_pipe() E + File "/usr/lib64/python3.12/asyncio/selector_events.py", line 111, in _close_self_pipe E + self._remove_reader(self._ssock.fileno()) E + ^^^^^^^^^^^ E + AttributeError: '_UnixSelectorEventLoop' object has no attribute '_ssock' capfd = <_pytest.capture.CaptureFixture object at 0xffffff9dc35dc0> captured = CaptureResult(out='', err='[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled\n[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled\n[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled\n[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled\n[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled\n[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled\n[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled\n[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled\nTraceback (most recent call last):\n File "", line 198, in _run_module_as_main\n File "", line 88, in _run_code\n File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 17, in \n app.launch_new_instance()\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 1052, in launch_instance\n app.initialize(argv)\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner\n return method(app, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 689, in initialize\n self.init_sockets()\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 342, in init_sockets\n self.init_control(context)\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 366, in init_control\n self.control_thread = ControlThread(daemon=True)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/ipykernel/control.py", line 15, in __init__\n self.io_loop = IOLoop(make_current=False)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/site-packages/tornado/util.py", line 276, in __new__\n instance.initialize(*args, **init_kwargs)\n File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 315, in initialize\n kwargs["asyncio_loop"] = loop = asyncio.new_event_loop()\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/asyncio/events.py", line 819, in new_event_loop\n return get_event_loop_policy().new_event_loop()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/asyncio/events.py", line 716, in new_event_loop\n return self._loop_factory()\n ^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/asyncio/unix_events.py", line 64, in __init__\n super().__init__(selector)\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 66, in __init__\n self._make_self_pipe()\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 120, in _make_self_pipe\n self._ssock, self._csock = socket.socketpair()\n ^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/socket.py", line 609, in socketpair\n a, b = _socket.socketpair(family, type, proto)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nKeyboardInterrupt\nException ignored in: \nTraceback (most recent call last):\n File "/usr/lib64/python3.12/asyncio/base_events.py", line 705, in __del__\n self.close()\n File "/usr/lib64/python3.12/asyncio/unix_events.py", line 68, in close\n super().close()\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 104, in close\n self._close_self_pipe()\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 111, in _close_self_pipe\n self._remove_reader(self._ssock.fileno())\n ^^^^^^^^^^^\nAttributeError: \'_UnixSelectorEventLoop\' object has no attribute \'_ssock\'\n') executor = input_file = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/HelloWorld.ipynb' input_name = 'HelloWorld.ipynb' opts = {'kernel_name': 'python', 'timeout': 5} res = {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}} tests/test_client.py:406: AssertionError ------------------------------ Captured log call ------------------------------- INFO traitlets:client.py:695 Executing notebook with kernel: python INFO traitlets:client.py:695 Executing notebook with kernel: python WARNING traitlets:client.py:795 Timeout waiting for IOPub output WARNING traitlets:client.py:795 Timeout waiting for IOPub output WARNING traitlets:client.py:795 Timeout waiting for IOPub output WARNING traitlets:client.py:795 Timeout waiting for IOPub output INFO traitlets:client.py:695 Executing notebook with kernel: python ------------------------------ Captured log call ------------------------------- INFO traitlets:client.py:695 Executing notebook with kernel: python ___________________ TestExecute.test_populate_language_info ____________________ self = def test_populate_language_info(self): nb = nbformat.v4.new_notebook() # Certainly has no language_info. executor = NotebookClient(nb, kernel_name="python") > nb = executor.execute() executor = nb = {'cells': [], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 5} self = tests/test_client.py:583: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:160: in wrapped return loop.run_until_complete(inner) args = (,) coro = inner = kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> name = 'MainThread' /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() f = exception=RuntimeError("Kernel didn't respond in 60 seconds")> future = manage_run = .manage_run at 0xffffff9db20720> self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) self = exception=RuntimeError("Kernel didn't respond in 60 seconds")> /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) __class__ = coro = self = None nbclient/client.py:693: in async_execute async with self.async_setup_kernel(**kwargs): kwargs = {} reset_kc = False self = /usr/lib64/python3.12/contextlib.py:204: in __aenter__ return await anext(self.gen) self = nbclient/client.py:651: in async_setup_kernel await self.async_start_new_kernel_client() cleanup_kc = True kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> on_signal = .on_signal at 0xffffff9c30a660> self = nbclient/client.py:566: in async_start_new_kernel_client await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout)) self = /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:172: in ensure_async result = await obj obj = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 KernelManager = abs_timeout = 1712963057.86153 self = timeout = 60 /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ----------------------------- Captured stderr call ----------------------------- [IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/usr/lib/python3.12/site-packages/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 21, in from jedi.inference import sys_path File "/usr/lib/python3.12/site-packages/jedi/inference/sys_path.py", line 6, in from jedi.inference.cache import inference_state_method_cache File "", line 1351, in _find_and_load File "", line 418, in __enter__ File "", line 311, in acquire File "", line 158, in __init__ KeyboardInterrupt ------------------------------ Captured log call ------------------------------- ERROR traitlets:client.py:568 Error occurred while starting new kernel client for kernel e20c769a-5e1d-4188-a533-9b5d328e3ee1: Kernel didn't respond in 60 seconds ___________________ TestExecute.test_process_message_wrapper ___________________ self = def test_process_message_wrapper(self): outputs: list[Any] = []  class WrappedPreProc(NotebookClient): def process_message(self, msg, cell, cell_index): result = super().process_message(msg, cell, cell_index) if result: outputs.append(result) return result  current_dir = os.path.dirname(__file__) filename = os.path.join(current_dir, "files", "HelloWorld.ipynb")  with open(filename) as f: input_nb = nbformat.read(f, 4)  original = copy.deepcopy(input_nb) wpp = WrappedPreProc(input_nb) > executed = wpp.execute() WrappedPreProc = .WrappedPreProc'> current_dir = '/builddir/build/BUILD/nbclient-0.9.0/tests' f = <_io.TextIOWrapper name='/builddir/build/BUILD/nbclient-0.9.0/tests/files/HelloWorld.ipynb' mode='r' encoding='UTF-8'> filename = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/HelloWorld.ipynb' input_nb = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'Hello World\n'}], 'source': 'print("Hello World")'}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} original = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'Hello World\n'}], 'source': 'print("Hello World")'}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} outputs = [] self = wpp = .WrappedPreProc object at 0xffffff9db46240> tests/test_client.py:849: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:160: in wrapped return loop.run_until_complete(inner) args = (.WrappedPreProc object at 0xffffff9db46240>,) coro = inner = kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> name = 'MainThread' /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() f = exception=RuntimeError("Kernel didn't respond in 60 seconds")> future = manage_run = .manage_run at 0xffffff9db20720> self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) self = exception=RuntimeError("Kernel didn't respond in 60 seconds")> /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) __class__ = coro = self = None nbclient/client.py:693: in async_execute async with self.async_setup_kernel(**kwargs): kwargs = {} reset_kc = False self = .WrappedPreProc object at 0xffffff9db46240> /usr/lib64/python3.12/contextlib.py:204: in __aenter__ return await anext(self.gen) self = nbclient/client.py:651: in async_setup_kernel await self.async_start_new_kernel_client() cleanup_kc = True kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> on_signal = .on_signal at 0xffffff9d9adee0> self = .WrappedPreProc object at 0xffffff9db46240> nbclient/client.py:566: in async_start_new_kernel_client await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout)) self = .WrappedPreProc object at 0xffffff9db46240> /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:172: in ensure_async result = await obj obj = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 KernelManager = abs_timeout = 1712963142.6734304 self = timeout = 60 /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "", line 1481, in _path_importer_cache KeyError: '/usr/lib/python3.12/site-packages/jedi/inference/gradual' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/usr/lib/python3.12/site-packages/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 "", line 1354, in _find_and_load File "", line 1316, in _find_and_load_unlocked File "", line 1256, in _find_spec File "", line 1524, in find_spec File "", line 1496, in _get_spec File "", line 1483, in _path_importer_cache File "", line 1459, in _path_hooks File "", line 75, in __init__ File "", line 147, in _path_stat KeyboardInterrupt ------------------------------ Captured log call ------------------------------- ERROR traitlets:client.py:568 Error occurred while starting new kernel client for kernel 1f45e62d-1f13-4b0d-8c15-1c60425aa5dd: Kernel didn't respond in 60 seconds _____________________ TestExecute.test_reset_kernel_client _____________________ self = def test_reset_kernel_client(self): filename = os.path.join(current_dir, "files", "HelloWorld.ipynb")  with open(filename) as f: input_nb = nbformat.read(f, 4)  executor = NotebookClient( input_nb, resources=self.build_resources(), )  > executor.execute(cleanup_kc=False) executor = f = <_io.TextIOWrapper name='/builddir/build/BUILD/nbclient-0.9.0/tests/files/HelloWorld.ipynb' mode='r' encoding='UTF-8'> filename = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/HelloWorld.ipynb' input_nb = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'Hello World\n'}], 'source': 'print("Hello World")'}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} self = tests/test_client.py:768: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:160: in wrapped return loop.run_until_complete(inner) args = (,) coro = inner = kwargs = {'cleanup_kc': False} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> name = 'MainThread' /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() f = exception=RuntimeError("Kernel didn't respond in 60 seconds")> future = manage_run = .manage_run at 0xffffff9db20720> self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) self = exception=RuntimeError("Kernel didn't respond in 60 seconds")> /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) __class__ = coro = self = None nbclient/client.py:693: in async_execute async with self.async_setup_kernel(**kwargs): kwargs = {'cleanup_kc': False} reset_kc = False self = /usr/lib64/python3.12/contextlib.py:204: in __aenter__ return await anext(self.gen) self = nbclient/client.py:651: in async_setup_kernel await self.async_start_new_kernel_client() cleanup_kc = False kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> on_signal = .on_signal at 0xffffff9c2d59e0> self = nbclient/client.py:566: in async_start_new_kernel_client await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout)) self = /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:172: in ensure_async result = await obj obj = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 KernelManager = abs_timeout = 1712963225.0793102 self = timeout = 60 /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 52, in from .ipkernel import IPythonKernel File "/usr/lib/python3.12/site-packages/ipykernel/ipkernel.py", line 27, in from .zmqshell import ZMQInteractiveShell File "/usr/lib/python3.12/site-packages/ipykernel/zmqshell.py", line 202, in class KernelMagics(Magics): File "/usr/lib/python3.12/site-packages/traitlets/traitlets.py", line 984, in __new__ return super().__new__(mcls, name, bases, classdict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ KeyboardInterrupt ------------------------------ Captured log call ------------------------------- ERROR traitlets:client.py:568 Error occurred while starting new kernel client for kernel 3ccf0a1c-ca17-415b-b1c1-f45df1418b6a: Kernel didn't respond in 60 seconds _____________________ TestExecute.test_sync_kernel_manager _____________________ self = def test_sync_kernel_manager(self): nb = nbformat.v4.new_notebook() # Certainly has no language_info. executor = NotebookClient(nb, kernel_name="python", kernel_manager_class=KernelManager) nb = executor.execute() assert "language_info" in nb.metadata > with executor.setup_kernel(): executor = nb = {'cells': [], 'metadata': {'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.12.0'}}, 'nbformat': 4, 'nbformat_minor': 5} self = tests/test_client.py:668: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/contextlib.py:137: in __enter__ return next(self.gen) self = nbclient/client.py:603: in setup_kernel self.start_new_kernel_client() cleanup_kc = True kwargs = {} self = /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:160: in wrapped return loop.run_until_complete(inner) args = (,) coro = inner = kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> name = 'MainThread' /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() f = exception=RuntimeError("Kernel didn't respond in 60 seconds")> future = manage_run = .manage_run at 0xffffff9db20720> self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) self = exception=RuntimeError("Kernel didn't respond in 60 seconds")> /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) __class__ = coro = self = None nbclient/client.py:566: in async_start_new_kernel_client await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout)) self = /usr/lib/python3.12/site-packages/jupyter_client/utils.py:30: in wrapped raise e args = (,) coro = future = exception=RuntimeError("Kernel didn't respond in 60 seconds")> kwargs = {'timeout': 60} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> nest_asyncio = /usr/lib/python3.12/site-packages/jupyter_client/utils.py:27: in wrapped return loop.run_until_complete(future) args = (,) coro = future = exception=RuntimeError("Kernel didn't respond in 60 seconds")> kwargs = {'timeout': 60} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> nest_asyncio = /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() f = exception=RuntimeError("Kernel didn't respond in 60 seconds")> future = exception=RuntimeError("Kernel didn't respond in 60 seconds")> manage_run = .manage_run at 0xffffff9db20720> self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) self = exception=RuntimeError("Kernel didn't respond in 60 seconds")> /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) __class__ = coro = self = 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 KernelManager = abs_timeout = 1712963383.5107362 self = timeout = 60 /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ----------------------------- Captured stderr call ----------------------------- [IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/usr/lib/python3.12/site-packages/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 16, in from jedi.parser_utils import get_executable_nodes File "/usr/lib/python3.12/site-packages/jedi/parser_utils.py", line 268, in get_cached_parent_scope = _get_parent_scope_cache(get_parent_scope) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/jedi/parser_utils.py", line 217, in _get_parent_scope_cache cache = WeakKeyDictionary() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/weakref.py", line 367, in __init__ def __init__(self, dict=None): KeyboardInterrupt ------------------------------ Captured log call ------------------------------- INFO traitlets:client.py:695 Executing notebook with kernel: python ERROR traitlets:client.py:568 Error occurred while starting new kernel client for kernel 660562f7-320d-486b-816c-0d74c966ba90: Kernel didn't respond in 60 seconds ___________________________ TestExecute.test_timeout ___________________________ self = def test_timeout(self): """Check that an error is raised when a computation times out""" filename = os.path.join(current_dir, "files", "Interrupt.ipynb") res = self.build_resources() res["metadata"]["path"] = os.path.dirname(filename)  with pytest.raises(TimeoutError) as err: > run_notebook(filename, {"timeout": 1}, res) err = filename = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/Interrupt.ipynb' res = {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}} self = tests/test_client.py:639: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_client.py:138: in run_notebook output_nb = executor.execute() cell = {'cell_type': 'code', 'metadata': {'collapsed': False}, 'outputs': [], 'source': 'print("done")'} cleaned_input_nb = {'cells': [{'cell_type': 'code', 'metadata': {'collapsed': False}, 'outputs': [], 'source': 'while True: continue'}, {'cell_type': 'code', 'metadata': {'collapsed': False}, 'outputs': [], 'source': 'print("done")'}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} executor = f = <_io.TextIOWrapper name='/builddir/build/BUILD/nbclient-0.9.0/tests/files/Interrupt.ipynb' mode='r' encoding='UTF-8'> filename = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/Interrupt.ipynb' input_nb = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'ename': 'KeyboardInterrupt', 'evalue': '', 'output_type': 'error', 'traceback': ['\x1b[0;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m ' 'Traceback (most recent call last)', '\x1b[0;32m\x1b[0m ' 'in ' '\x1b[0;36m\x1b[0;34m\x1b[0m\n' '\x1b[0;32m----> 1\x1b[0;31m ' '\x1b[0;32mwhile\x1b[0m ' '\x1b[0;32mTrue\x1b[0m\x1b[0;34m:\x1b[0m ' '\x1b[0;32mcontinue\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n' '\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m: ']}], 'source': 'while True: continue'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {'collapsed': False}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'done\n'}], 'source': 'print("done")'}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} opts = {'resources': {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}}, 'timeout': 1} resources = {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}} /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:160: in wrapped return loop.run_until_complete(inner) args = (,) coro = inner = kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> name = 'MainThread' /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() f = exception=RuntimeError("Kernel didn't respond in 60 seconds")> future = manage_run = .manage_run at 0xffffff9db20720> self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) self = exception=RuntimeError("Kernel didn't respond in 60 seconds")> /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) __class__ = coro = self = None nbclient/client.py:693: in async_execute async with self.async_setup_kernel(**kwargs): kwargs = {} reset_kc = False self = /usr/lib64/python3.12/contextlib.py:204: in __aenter__ return await anext(self.gen) self = nbclient/client.py:651: in async_setup_kernel await self.async_start_new_kernel_client() cleanup_kc = True kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> on_signal = .on_signal at 0xffffff9cfd4220> self = nbclient/client.py:566: in async_start_new_kernel_client await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout)) self = /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:172: in ensure_async result = await obj obj = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 KernelManager = abs_timeout = 1712963472.4328215 self = timeout = 60 /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/usr/lib/python3.12/site-packages/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 31, in from prompt_toolkit.auto_suggest import AutoSuggestFromHistory File "/usr/lib/python3.12/site-packages/prompt_toolkit/__init__.py", line 25, in from .application import Application File "/usr/lib/python3.12/site-packages/prompt_toolkit/application/__init__.py", line 3, in from .application import Application File "/usr/lib/python3.12/site-packages/prompt_toolkit/application/application.py", line 36, in from prompt_toolkit.buffer import Buffer File "/usr/lib/python3.12/site-packages/prompt_toolkit/buffer.py", line 25, in from .completion import ( File "/usr/lib/python3.12/site-packages/prompt_toolkit/completion/__init__.py", line 16, in from .fuzzy_completer import FuzzyCompleter, FuzzyWordCompleter File "/usr/lib/python3.12/site-packages/prompt_toolkit/completion/fuzzy_completer.py", line 11, in from .word_completer import WordCompleter File "", line 1351, in _find_and_load File "", line 421, in __exit__ File "", line 378, in release KeyboardInterrupt ------------------------------ Captured log call ------------------------------- ERROR traitlets:client.py:568 Error occurred while starting new kernel client for kernel f905f7eb-045b-411c-b108-f91862ec9e65: Kernel didn't respond in 60 seconds ________________________ TestExecute.test_timeout_func _________________________ self = def test_timeout_func(self): """Check that an error is raised when a computation times out""" filename = os.path.join(current_dir, "files", "Interrupt.ipynb") res = self.build_resources() res["metadata"]["path"] = os.path.dirname(filename)  def timeout_func(source): return 10  with pytest.raises(TimeoutError): > run_notebook(filename, {"timeout_func": timeout_func}, res) filename = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/Interrupt.ipynb' res = {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}} self = timeout_func = .timeout_func at 0xffffff9cfd6e80> tests/test_client.py:661: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_client.py:138: in run_notebook output_nb = executor.execute() cell = {'cell_type': 'code', 'metadata': {'collapsed': False}, 'outputs': [], 'source': 'print("done")'} cleaned_input_nb = {'cells': [{'cell_type': 'code', 'metadata': {'collapsed': False}, 'outputs': [], 'source': 'while True: continue'}, {'cell_type': 'code', 'metadata': {'collapsed': False}, 'outputs': [], 'source': 'print("done")'}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} executor = f = <_io.TextIOWrapper name='/builddir/build/BUILD/nbclient-0.9.0/tests/files/Interrupt.ipynb' mode='r' encoding='UTF-8'> filename = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/Interrupt.ipynb' input_nb = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {'collapsed': False}, 'outputs': [{'ename': 'KeyboardInterrupt', 'evalue': '', 'output_type': 'error', 'traceback': ['\x1b[0;31m---------------------------------------------------------------------------\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m ' 'Traceback (most recent call last)', '\x1b[0;32m\x1b[0m ' 'in ' '\x1b[0;36m\x1b[0;34m\x1b[0m\n' '\x1b[0;32m----> 1\x1b[0;31m ' '\x1b[0;32mwhile\x1b[0m ' '\x1b[0;32mTrue\x1b[0m\x1b[0;34m:\x1b[0m ' '\x1b[0;32mcontinue\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n' '\x1b[0m', '\x1b[0;31mKeyboardInterrupt\x1b[0m: ']}], 'source': 'while True: continue'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {'collapsed': False}, 'outputs': [{'name': 'stdout', 'output_type': 'stream', 'text': 'done\n'}], 'source': 'print("done")'}], 'metadata': {}, 'nbformat': 4, 'nbformat_minor': 0} opts = {'resources': {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}}, 'timeout_func': .timeout_func at 0xffffff9cfd6e80>} resources = {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}} /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:160: in wrapped return loop.run_until_complete(inner) args = (,) coro = inner = kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> name = 'MainThread' /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() f = exception=RuntimeError("Kernel didn't respond in 60 seconds")> future = manage_run = .manage_run at 0xffffff9db20720> self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) self = exception=RuntimeError("Kernel didn't respond in 60 seconds")> /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) __class__ = coro = self = None nbclient/client.py:693: in async_execute async with self.async_setup_kernel(**kwargs): kwargs = {} reset_kc = False self = /usr/lib64/python3.12/contextlib.py:204: in __aenter__ return await anext(self.gen) self = nbclient/client.py:651: in async_setup_kernel await self.async_start_new_kernel_client() cleanup_kc = True kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> on_signal = .on_signal at 0xffffff9cfd4d60> self = nbclient/client.py:566: in async_start_new_kernel_client await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout)) self = /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:172: in ensure_async result = await obj obj = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 KernelManager = abs_timeout = 1712963567.8736358 self = timeout = 60 /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/usr/lib/python3.12/site-packages/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 31, in from prompt_toolkit.auto_suggest import AutoSuggestFromHistory File "/usr/lib/python3.12/site-packages/prompt_toolkit/__init__.py", line 25, in from .application import Application File "/usr/lib/python3.12/site-packages/prompt_toolkit/application/__init__.py", line 3, in from .application import Application File "/usr/lib/python3.12/site-packages/prompt_toolkit/application/application.py", line 36, in from prompt_toolkit.buffer import Buffer File "/usr/lib/python3.12/site-packages/prompt_toolkit/buffer.py", line 25, in from .completion import ( File "/usr/lib/python3.12/site-packages/prompt_toolkit/completion/__init__.py", line 3, in from .base import ( File "/usr/lib/python3.12/site-packages/prompt_toolkit/completion/base.py", line 11, in from prompt_toolkit.formatted_text import AnyFormattedText, StyleAndTextTuples File "/usr/lib/python3.12/site-packages/prompt_toolkit/formatted_text/__init__.py", line 25, in from .html import HTML File "/usr/lib/python3.12/site-packages/prompt_toolkit/formatted_text/html.py", line 3, in import xml.dom.minidom as minidom File "/usr/lib64/python3.12/xml/dom/minidom.py", line 1417, in class DOMImplementation(DOMImplementationLS): KeyboardInterrupt ------------------------------ Captured log call ------------------------------- ERROR traitlets:client.py:568 Error occurred while starting new kernel client for kernel a9ea9bbe-d9c5-4b10-b8e6-2cc752b34973: Kernel didn't respond in 60 seconds ___________________________ TestExecute.test_widgets ___________________________ self = def test_widgets(self): """Runs a test notebook with widgets and checks the widget state is saved.""" input_file = os.path.join(current_dir, "files", "JupyterWidgets.ipynb") opts = {"kernel_name": "python"} res = self.build_resources() res["metadata"]["path"] = os.path.dirname(input_file) > input_nb, output_nb = run_notebook(input_file, opts, res) input_file = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/JupyterWidgets.ipynb' opts = {'kernel_name': 'python'} res = {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}} self = tests/test_client.py:870: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_client.py:138: in run_notebook output_nb = executor.execute() cell = {'cell_type': 'code', 'metadata': {}, 'outputs': [], 'source': "# it should also handle custom msg'es\n" "label.send({'msg': 'Hello'})"} cleaned_input_nb = {'cells': [{'cell_type': 'code', 'metadata': {}, 'outputs': [], 'source': 'import ipywidgets\n' "label = ipywidgets.Label('Hello World')\n" 'display(label)'}, {'cell_type': 'code', 'metadata': {}, 'outputs': [], 'source': "# it should also handle custom msg'es\n" "label.send({'msg': 'Hello'})"}], 'metadata': {'kernelspec': {'display_name': 'Python 3', 'language': 'python', 'name': 'python3'}, 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.6.4'}, 'widgets': {'application/vnd.jupyter.widget-state+json': {'state': {'8273e8fe9d9941a4a63c062158e0a630': {'model_module': '@jupyter-widgets/controls', 'model_module_version': '1.4.0', 'model_name': 'DescriptionStyleModel', 'state': {'description_width': ''}}, 'a72770a4f541425f8fe85833a3dc2a8e': {'model_module': '@jupyter-widgets/controls', 'model_module_version': '1.4.0', 'model_name': 'LabelModel', 'state': {'context_menu': None, 'layout': 'IPY_MODEL_dec20f599109458ca607b1df5959469b', 'style': 'IPY_MODEL_8273e8fe9d9941a4a63c062158e0a630', 'value': 'Hello ' 'World'}}, 'dec20f599109458ca607b1df5959469b': {'model_module': '@jupyter-widgets/base', 'model_module_version': '1.1.0', 'model_name': 'LayoutModel', 'state': {}}}, 'version_major': 2, 'version_minor': 0}}}, 'nbformat': 4, 'nbformat_minor': 2} executor = f = <_io.TextIOWrapper name='/builddir/build/BUILD/nbclient-0.9.0/tests/files/JupyterWidgets.ipynb' mode='r' encoding='UTF-8'> filename = '/builddir/build/BUILD/nbclient-0.9.0/tests/files/JupyterWidgets.ipynb' input_nb = {'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {}, 'outputs': [{'data': {'application/vnd.jupyter.widget-view+json': {'model_id': 'f46f26da84b54255bccc3a69d7eb08de', 'version_major': 2, 'version_minor': 0}, 'text/plain': "Label(value='Hello World')"}, 'metadata': {}, 'output_type': 'display_data'}], 'source': 'import ipywidgets\n' "label = ipywidgets.Label('Hello World')\n" 'display(label)'}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {}, 'outputs': [], 'source': "# it should also handle custom msg'es\n" "label.send({'msg': 'Hello'})"}], 'metadata': {'kernelspec': {'display_name': 'Python 3', 'language': 'python', 'name': 'python3'}, 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.6.4'}, 'widgets': {'application/vnd.jupyter.widget-state+json': {'state': {'8273e8fe9d9941a4a63c062158e0a630': {'model_module': '@jupyter-widgets/controls', 'model_module_version': '1.4.0', 'model_name': 'DescriptionStyleModel', 'state': {'description_width': ''}}, 'a72770a4f541425f8fe85833a3dc2a8e': {'model_module': '@jupyter-widgets/controls', 'model_module_version': '1.4.0', 'model_name': 'LabelModel', 'state': {'context_menu': None, 'layout': 'IPY_MODEL_dec20f599109458ca607b1df5959469b', 'style': 'IPY_MODEL_8273e8fe9d9941a4a63c062158e0a630', 'value': 'Hello ' 'World'}}, 'dec20f599109458ca607b1df5959469b': {'model_module': '@jupyter-widgets/base', 'model_module_version': '1.1.0', 'model_name': 'LayoutModel', 'state': {}}}, 'version_major': 2, 'version_minor': 0}}}, 'nbformat': 4, 'nbformat_minor': 2} opts = {'kernel_name': 'python', 'resources': {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}}} resources = {'metadata': {'path': '/builddir/build/BUILD/nbclient-0.9.0/tests/files'}} /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:160: in wrapped return loop.run_until_complete(inner) args = (,) coro = inner = kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> name = 'MainThread' /usr/lib/python3.12/site-packages/nest_asyncio.py:98: in run_until_complete return f.result() f = exception=RuntimeError("Kernel didn't respond in 60 seconds")> future = manage_run = .manage_run at 0xffffff9db20720> self = <_UnixSelectorEventLoop running=False closed=False debug=False> /usr/lib64/python3.12/asyncio/futures.py:203: in result raise self._exception.with_traceback(self._exception_tb) self = exception=RuntimeError("Kernel didn't respond in 60 seconds")> /usr/lib64/python3.12/asyncio/tasks.py:304: in __step_run_and_handle_result result = coro.send(None) __class__ = coro = self = None nbclient/client.py:693: in async_execute async with self.async_setup_kernel(**kwargs): kwargs = {} reset_kc = False self = /usr/lib64/python3.12/contextlib.py:204: in __aenter__ return await anext(self.gen) self = nbclient/client.py:651: in async_setup_kernel await self.async_start_new_kernel_client() cleanup_kc = True kwargs = {} loop = <_UnixSelectorEventLoop running=False closed=False debug=False> on_signal = .on_signal at 0xffffff9c3965c0> self = nbclient/client.py:566: in async_start_new_kernel_client await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout)) self = /usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py:172: in ensure_async result = await obj obj = _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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 KernelManager = abs_timeout = 1712963665.646732 self = timeout = 60 /usr/lib/python3.12/site-packages/jupyter_client/client.py:206: RuntimeError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/usr/lib/python3.12/site-packages/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 219, in from IPython.core.guarded_eval import guarded_eval, EvaluationContext File "/usr/lib/python3.12/site-packages/IPython/core/guarded_eval.py", line 187, in class SelectivePolicy(EvaluationPolicy): File "/usr/lib/python3.12/site-packages/IPython/core/guarded_eval.py", line 191, in SelectivePolicy allowed_getattr: Set[MayHaveGetattr] = field(default_factory=set) ~~~^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/typing.py", line 374, in inner return _caches[func](*args, **kwds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/typing.py", line 1428, in __getitem__ params = tuple(_type_check(p, msg) for p in params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/typing.py", line 1428, in params = tuple(_type_check(p, msg) for p in params) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/typing.py", line 197, in _type_check if arg in (Any, LiteralString, NoReturn, Never, Self, TypeAlias): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/typing.py", line 1539, in __eq__ def __eq__(self, other): KeyboardInterrupt ------------------------------ Captured log call ------------------------------- ERROR traitlets:client.py:568 Error occurred while starting new kernel client for kernel cf2d3f39-2a1d-45e8-8da6-7504ddc7b2a4: Kernel didn't respond in 60 seconds =============================== 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 tests/test_client.py: 49 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) tests/test_client.py::test_start_new_kernel_history_file_setting /usr/lib64/python3.12/subprocess.py:1127: ResourceWarning: subprocess 1056 is still running _warn("subprocess %s is still running" % self.pid, Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. tests/test_client.py::test_start_new_kernel_client_cleans_up_kernel_on_failure /usr/lib64/python3.12/subprocess.py:1127: ResourceWarning: subprocess 1059 is still running _warn("subprocess %s is still running" % self.pid, Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. tests/test_client.py::TestExecute::test_async_execution_hook /usr/lib64/python3.12/subprocess.py:1127: ResourceWarning: subprocess 1039 is still running _warn("subprocess %s is still running" % self.pid, Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. tests/test_client.py::TestExecute::test_error_execution_hook_error /usr/lib64/python3.12/unittest/mock.py:2185: ResourceWarning: Unclosed socket def __init__(self, name, parent): Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. tests/test_client.py::TestExecute::test_error_execution_hook_error /usr/lib64/python3.12/unittest/mock.py:2185: ResourceWarning: Unclosed socket def __init__(self, name, parent): Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. tests/test_client.py: 38 warnings /builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py:57: 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.datetime.utcnow().isoformat() + "Z" tests/test_client.py::TestRunCell::test_busy_message tests/test_client.py::TestRunCell::test_deadline_exec_reply tests/test_client.py::TestRunCell::test_error_message tests/test_client.py::TestRunCell::test_execute_input_message tests/test_client.py::TestRunCell::test_message_for_wrong_parent tests/test_client.py::TestRunCell::test_no_source tests/test_client.py::TestRunCell::test_non_code_cell tests/test_client.py::TestRunCell::test_widget_comm_buffer_message_single tests/test_util.py::test_run_hook_async /usr/lib64/python3.12/asyncio/base_events.py:703: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False> _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self) Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ===Flaky Test Report=== test_parallel_notebooks passed 1 out of the required 1 times. Success! test_many_parallel_notebooks failed (1 runs remaining out of 2). assert 'Traceback (most recent call last):\n File "", line 1481, in _path_importer_cache\nKeyError: \'/usr/lib64/python3.12/site-packages/tornado/platform\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "", line 198, in _run_module_as_main\n File "", line 88, in _run_code\n File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 17, in \n app.launch_new_instance()\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 1052, in launch_instance\n app.initialize(argv)\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner\n return method(app, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 689, in initialize\n self.init_sockets()\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 342, in init_sockets\n self.init_control(context)\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 366, in init_control\n self.control_thread = ControlThread(daemon=True)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/ipykernel/control.py", line 15, in __init__\n self.io_loop = IOLoop(make_current=False)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/site-packages/tornado/util.py", line 263, in __new__\n impl = cls.configured_class()\n ^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/site-packages/tornado/util.py", line 335, in configured_class\n base.__impl_class = cls.configurable_default()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 348, in configurable_default\n from tornado.platform.asyncio import AsyncIOLoop\n File "", line 1354, in _find_and_load\n File "", line 1316, in _find_and_load_unlocked\n File "", line 1256, in _find_spec\n File "", line 1524, in find_spec\n File "", line 1496, in _get_spec\n File "", line 1483, in _path_importer_cache\n File "", line 1459, in _path_hooks\n File "", line 1685, in path_hook_for_FileFinder\n File "", line 1569, in __init__\nKeyboardInterrupt\nTraceback (most recent call last):\n File "/usr/lib/python3.12/site-packages/traitlets/traitlets.py", line 626, in get\n value = obj._trait_values[self.name] # type: ignore\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^^\nKeyError: \'log\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "", line 198, in _run_module_as_main\n File "", line 88, in _run_code\n File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 17, in \n app.launch_new_instance()\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 1052, in launch_instance\n app.initialize(argv)\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner\n return method(app, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 681, in initialize\n super().initialize(argv)\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner\n return method(app, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/IPython/core/application.py", line 476, in initialize\n self.parse_command_line(argv)\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner\n return method(app, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 879, in parse_command_line\n loader = self._create_loader(argv, aliases, flags, classes=classes)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 790, in _create_loader\n argv, aliases, flags, classes=classes, log=self.log, subcommands=self.subcommands\n ^^^^^^^^\n File "/usr/lib/python3.12/site-packages/traitlets/traitlets.py", line 719, in __get__\n return t.cast(G, self.get(obj, cls)) # the G should encode the Optional\n ^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/traitlets/traitlets.py", line 647, in get\n obj._notify_observers(\n File "/usr/lib/python3.12/site-packages/traitlets/traitlets.py", line 1591, in _notify_observers\n c(event)\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 286, in _observe_logging_default\n self._configure_logging()\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 291, in _configure_logging\n dictConfig(config)\n File "/usr/lib64/python3.12/logging/config.py", line 912, in dictConfig\n dictConfigClass(config).configure()\n File "/usr/lib64/python3.12/logging/config.py", line 581, in configure\n handler = self.configure_handler(handlers[name])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/logging/config.py", line 845, in configure_handler\n kwargs = {k: config[k] for k in config if valid_ident(k)}\n ^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/logging/config.py", line 301, in valid_ident\n m = IDENTIFIER.match(s)\n ^^^^^^^^^^^^^^^^^^^\nKeyboardInterrupt' == '' + Traceback (most recent call last): + File "", line 1481, in _path_importer_cache + KeyError: '/usr/lib64/python3.12/site-packages/tornado/platform' + + During handling of the above exception, another exception occurred: + + Traceback (most recent call last): + File "", line 198, in _run_module_as_main + File "", line 88, in _run_code + File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 17, in + app.launch_new_instance() + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 1052, in launch_instance + app.initialize(argv) + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner + return method(app, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 689, in initialize + self.init_sockets() + File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 342, in init_sockets + self.init_control(context) + File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 366, in init_control + self.control_thread = ControlThread(daemon=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/site-packages/ipykernel/control.py", line 15, in __init__ + self.io_loop = IOLoop(make_current=False) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib64/python3.12/site-packages/tornado/util.py", line 263, in __new__ + impl = cls.configured_class() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib64/python3.12/site-packages/tornado/util.py", line 335, in configured_class + base.__impl_class = cls.configurable_default() + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib64/python3.12/site-packages/tornado/ioloop.py", line 348, in configurable_default + from tornado.platform.asyncio import AsyncIOLoop + File "", line 1354, in _find_and_load + File "", line 1316, in _find_and_load_unlocked + File "", line 1256, in _find_spec + File "", line 1524, in find_spec + File "", line 1496, in _get_spec + File "", line 1483, in _path_importer_cache + File "", line 1459, in _path_hooks + File "", line 1685, in path_hook_for_FileFinder + File "", line 1569, in __init__ + KeyboardInterrupt + Traceback (most recent call last): + File "/usr/lib/python3.12/site-packages/traitlets/traitlets.py", line 626, in get + value = obj._trait_values[self.name] # type: ignore + ~~~~~~~~~~~~~~~~~^^^^^^^^^^^ + KeyError: 'log' + + During handling of the above exception, another exception occurred: + + Traceback (most recent call last): + File "", line 198, in _run_module_as_main + File "", line 88, in _run_code + File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 17, in + app.launch_new_instance() + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 1052, in launch_instance + app.initialize(argv) + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner + return method(app, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 681, in initialize + super().initialize(argv) + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner + return method(app, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/site-packages/IPython/core/application.py", line 476, in initialize + self.parse_command_line(argv) + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner + return method(app, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 879, in parse_command_line + loader = self._create_loader(argv, aliases, flags, classes=classes) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 790, in _create_loader + argv, aliases, flags, classes=classes, log=self.log, subcommands=self.subcommands + ^^^^^^^^ + File "/usr/lib/python3.12/site-packages/traitlets/traitlets.py", line 719, in __get__ + return t.cast(G, self.get(obj, cls)) # the G should encode the Optional + ^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/site-packages/traitlets/traitlets.py", line 647, in get + obj._notify_observers( + File "/usr/lib/python3.12/site-packages/traitlets/traitlets.py", line 1591, in _notify_observers + c(event) + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 286, in _observe_logging_default + self._configure_logging() + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 291, in _configure_logging + dictConfig(config) + File "/usr/lib64/python3.12/logging/config.py", line 912, in dictConfig + dictConfigClass(config).configure() + File "/usr/lib64/python3.12/logging/config.py", line 581, in configure + handler = self.configure_handler(handlers[name]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib64/python3.12/logging/config.py", line 845, in configure_handler + kwargs = {k: config[k] for k in config if valid_ident(k)} + ^^^^^^^^^^^^^^ + File "/usr/lib64/python3.12/logging/config.py", line 301, in valid_ident + m = IDENTIFIER.match(s) + ^^^^^^^^^^^^^^^^^^^ + KeyboardInterrupt [, , , , , , , , , , , , , , , , ] test_many_parallel_notebooks failed; it passed 0 out of the required 1 times. assert 'Traceback (most recent call last):\n File "", line 198, in _run_module_as_main\n File "", line 88, in _run_code\n File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 17, in \n app.launch_new_instance()\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 1052, in launch_instance\n app.initialize(argv)\n File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner\n return method(app, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 689, in initialize\n self.init_sockets()\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 342, in init_sockets\n self.init_control(context)\n File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 366, in init_control\n self.control_thread = ControlThread(daemon=True)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib/python3.12/site-packages/ipykernel/control.py", line 15, in __init__\n self.io_loop = IOLoop(make_current=False)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/site-packages/tornado/util.py", line 276, in __new__\n instance.initialize(*args, **init_kwargs)\n File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 315, in initialize\n kwargs["asyncio_loop"] = loop = asyncio.new_event_loop()\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/asyncio/events.py", line 819, in new_event_loop\n return get_event_loop_policy().new_event_loop()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/asyncio/events.py", line 716, in new_event_loop\n return self._loop_factory()\n ^^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/asyncio/unix_events.py", line 64, in __init__\n super().__init__(selector)\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 66, in __init__\n self._make_self_pipe()\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 120, in _make_self_pipe\n self._ssock, self._csock = socket.socketpair()\n ^^^^^^^^^^^^^^^^^^^\n File "/usr/lib64/python3.12/socket.py", line 609, in socketpair\n a, b = _socket.socketpair(family, type, proto)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nKeyboardInterrupt\nException ignored in: \nTraceback (most recent call last):\n File "/usr/lib64/python3.12/asyncio/base_events.py", line 705, in __del__\n self.close()\n File "/usr/lib64/python3.12/asyncio/unix_events.py", line 68, in close\n super().close()\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 104, in close\n self._close_self_pipe()\n File "/usr/lib64/python3.12/asyncio/selector_events.py", line 111, in _close_self_pipe\n self._remove_reader(self._ssock.fileno())\n ^^^^^^^^^^^\nAttributeError: \'_UnixSelectorEventLoop\' object has no attribute \'_ssock\'' == '' + Traceback (most recent call last): + File "", line 198, in _run_module_as_main + File "", line 88, in _run_code + File "/usr/lib/python3.12/site-packages/ipykernel_launcher.py", line 17, in + app.launch_new_instance() + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 1052, in launch_instance + app.initialize(argv) + File "/usr/lib/python3.12/site-packages/traitlets/config/application.py", line 117, in inner + return method(app, *args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 689, in initialize + self.init_sockets() + File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 342, in init_sockets + self.init_control(context) + File "/usr/lib/python3.12/site-packages/ipykernel/kernelapp.py", line 366, in init_control + self.control_thread = ControlThread(daemon=True) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.12/site-packages/ipykernel/control.py", line 15, in __init__ + self.io_loop = IOLoop(make_current=False) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib64/python3.12/site-packages/tornado/util.py", line 276, in __new__ + instance.initialize(*args, **init_kwargs) + File "/usr/lib64/python3.12/site-packages/tornado/platform/asyncio.py", line 315, in initialize + kwargs["asyncio_loop"] = loop = asyncio.new_event_loop() + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib64/python3.12/asyncio/events.py", line 819, in new_event_loop + return get_event_loop_policy().new_event_loop() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib64/python3.12/asyncio/events.py", line 716, in new_event_loop + return self._loop_factory() + ^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib64/python3.12/asyncio/unix_events.py", line 64, in __init__ + super().__init__(selector) + File "/usr/lib64/python3.12/asyncio/selector_events.py", line 66, in __init__ + self._make_self_pipe() + File "/usr/lib64/python3.12/asyncio/selector_events.py", line 120, in _make_self_pipe + self._ssock, self._csock = socket.socketpair() + ^^^^^^^^^^^^^^^^^^^ + File "/usr/lib64/python3.12/socket.py", line 609, in socketpair + a, b = _socket.socketpair(family, type, proto) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + KeyboardInterrupt + Exception ignored in: + Traceback (most recent call last): + File "/usr/lib64/python3.12/asyncio/base_events.py", line 705, in __del__ + self.close() + File "/usr/lib64/python3.12/asyncio/unix_events.py", line 68, in close + super().close() + File "/usr/lib64/python3.12/asyncio/selector_events.py", line 104, in close + self._close_self_pipe() + File "/usr/lib64/python3.12/asyncio/selector_events.py", line 111, in _close_self_pipe + self._remove_reader(self._ssock.fileno()) + ^^^^^^^^^^^ + AttributeError: '_UnixSelectorEventLoop' object has no attribute '_ssock' [, , , , , , , , , , , , , , , , ] test_async_parallel_notebooks passed 1 out of the required 1 times. Success! test_many_async_parallel_notebooks passed 1 out of the required 1 times. Success! test_kernel_death_after_timeout passed 1 out of the required 1 times. Success! ===End Flaky Test Report=== ============================= slowest 10 durations ============================= 344.13s call tests/test_client.py::test_many_parallel_notebooks 141.14s call tests/test_client.py::TestExecute::test_sync_kernel_manager 131.89s call tests/test_client.py::test_many_async_parallel_notebooks 116.99s call tests/test_client.py::TestExecute::test_cleanup_kernel_client 100.59s call tests/test_client.py::TestExecute::test_disable_stdin 81.34s call tests/test_client.py::test_async_parallel_notebooks 81.05s call tests/test_client.py::TestExecute::test_error_execution_hook_error 78.94s call tests/test_client.py::TestExecute::test_error_async_execution_hook 78.92s call tests/test_client.py::TestExecute::test_force_raise_errors 76.45s call tests/test_client.py::TestExecute::test_allow_errors =========================== short test summary info ============================ FAILED tests/test_client.py::test_run_all_notebooks[Interrupt.ipynb-opts6] - AssertionError: assert [{'ename': 'KeyboardInterrupt', 'evalue': '', 'outpu... FAILED tests/test_client.py::test_run_all_notebooks[JupyterWidgets.ipynb-opts7] - RuntimeError: Kernel didn't respond in 60 seconds FAILED tests/test_client.py::test_run_all_notebooks[Skip Exceptions with Cell Tags.ipynb-opts8] - RuntimeError: Kernel didn't respond in 60 seconds FAILED tests/test_client.py::test_run_all_notebooks[Skip Exceptions.ipynb-opts9] - RuntimeError: Kernel didn't respond in 60 seconds FAILED tests/test_client.py::test_many_parallel_notebooks - assert 'Traceback (most recent call last):\n File "", line 1... FAILED tests/test_client.py::TestExecute::test_populate_language_info - RuntimeError: Kernel didn't respond in 60 seconds FAILED tests/test_client.py::TestExecute::test_process_message_wrapper - RuntimeError: Kernel didn't respond in 60 seconds FAILED tests/test_client.py::TestExecute::test_reset_kernel_client - RuntimeError: Kernel didn't respond in 60 seconds FAILED tests/test_client.py::TestExecute::test_sync_kernel_manager - RuntimeError: Kernel didn't respond in 60 seconds FAILED tests/test_client.py::TestExecute::test_timeout - RuntimeError: Kernel didn't respond in 60 seconds FAILED tests/test_client.py::TestExecute::test_timeout_func - RuntimeError: Kernel didn't respond in 60 seconds FAILED tests/test_client.py::TestExecute::test_widgets - RuntimeError: Kernel didn't respond in 60 seconds =========== 12 failed, 82 passed, 102 warnings in 4154.20s (1:09:14) =========== Exception ignored in atexit callback: .wrapped of > Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: Exception ignored in atexit callback: .wrapped of > Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: Exception ignored in atexit callback: .wrapped of > Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: Exception ignored in atexit callback: .wrapped of > Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: Exception ignored in atexit callback: .wrapped of .WrappedPreProc object at 0xffffff9db46240>> Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: Exception ignored in atexit callback: .wrapped of > Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: Exception ignored in atexit callback: .wrapped of > Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: Exception ignored in atexit callback: .wrapped of > Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: Exception ignored in atexit callback: .wrapped of > Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: Exception ignored in atexit callback: .wrapped of > Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: Exception ignored in atexit callback: .wrapped of > Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 160, in wrapped return loop.run_until_complete(inner) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() ^^^^^^^^^^ File "/usr/lib64/python3.12/asyncio/futures.py", line 203, in result raise self._exception.with_traceback(self._exception_tb) File "/usr/lib64/python3.12/asyncio/tasks.py", line 304, in __step_run_and_handle_result result = coro.send(None) ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nbclient-0.9.0/nbclient/client.py", line 504, in _async_cleanup_kernel assert self.km is not None AssertionError: error: Bad exit status from /var/tmp/rpm-tmp.NtOMG0 (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.NtOMG0 (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M bb8a8093ea014a6cb0a49b4545a37b9c -D /var/lib/mock/f40-build-2711549-71853/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-nbclient.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M bb8a8093ea014a6cb0a49b4545a37b9c -D /var/lib/mock/f40-build-2711549-71853/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.ym8c63aw:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -ba --noprep --noclean --target noarch --nodeps /builddir/build/SPECS/python-nbclient.spec'