Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos-rebuild on 23.05 fails apparently due to jupyter-server #268264

Closed
fedeinthemix opened this issue Nov 18, 2023 · 5 comments
Closed

nixos-rebuild on 23.05 fails apparently due to jupyter-server #268264

fedeinthemix opened this issue Nov 18, 2023 · 5 comments
Labels
0.kind: build failure A package fails to build 6.topic: jupyter Interactive computing tooling: kernels, notebook, jupyterlab

Comments

@fedeinthemix
Copy link
Contributor

Steps To Reproduce

I tried to update my system (without any modification) with

sudo nixos-rebuild boot --upgrade

and the update fails with the following error

...
building '/nix/store/n4r4y30mgx6z64wfwa121aixrxirkrf8-emacs-packages-deps.drv'...
building '/nix/store/6036qvs7l5vwznq7wcl14lz0rb8v8k0p-emacs-gtk3-with-packages-28.2.drv'...
tests/auth/test_authorizer.py .......................................... [ 25%]
....................                                                     [ 28%]
tests/auth/test_identity.py ....................                         [ 30%]
tests/auth/test_legacy_login.py ..................                       [ 33%]
tests/auth/test_login.py ..............                                  [ 34%]
tests/auth/test_security.py ....                                         [ 35%]
tests/auth/test_utils.py ............                                    [ 36%]
tests/base/test_handlers.py .......                                      [ 37%]
tests/base/test_websocket.py ....                                        [ 38%]
tests/extension/test_app.py ................                             [ 40%]
tests/extension/test_config.py .                                         [ 40%]
tests/extension/test_entrypoint.py .                                     [ 40%]
tests/extension/test_handler.py .....                                    [ 41%]
tests/extension/test_launch.py .
 Timeout 

 Captured stderr 
/nix/store/n5fr2ppq4i3hdjbbf4636gk54s07022v-python3-3.10.13/lib/python3.10/runpy.py:126: RuntimeWarning: 'tests.extension.mockextensions.app' found in sys.modules after import of package 'tests.extension.mockextensions', but prior to execution of 'tests.extension.mockextensions.app'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
[I 2023-11-18 09:16:31.156 ServerApp] tests.extension.mockextensions | extension was successfully linked.
[I 2023-11-18 09:16:31.156 ServerApp] tests.extension.mockextensions.mock1 | extension was successfully linked.
/nix/store/9iyr1y1s3y0lc3i890hni8x7h9q90xd2-python3.10-traitlets-5.9.0/lib/python3.10/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '3fcbcdd0' instead of '"3fcbcdd0"' if you require traitlets >=5.
  warn(
[I 2023-11-18 09:16:31.164 ServerApp] tests.extension.mockextensions | extension was successfully loaded.
[I 2023-11-18 09:16:31.164 ServerApp] tests.extension.mockextensions.mock1 | extension was successfully loaded.
[I 2023-11-18 09:16:31.166 ServerApp] The port 9999 is already in use, trying another port.
[I 2023-11-18 09:16:31.166 ServerApp] Serving notebooks from local directory: /build/jupyter_server-2.0.6
[I 2023-11-18 09:16:31.166 ServerApp] Jupyter Server 2.0.6 is running at:
[I 2023-11-18 09:16:31.166 ServerApp] http://127.0.0.1:10000/foo/?token=...
[I 2023-11-18 09:16:31.166 ServerApp]  or http://127.0.0.1:10000/foo/?token=...
[I 2023-11-18 09:16:31.166 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

 Stack of MainThread (140737352644416) 
  File "/nix/store/n5fr2ppq4i3hdjbbf4636gk54s07022v-python3-3.10.13/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/nix/store/n5fr2ppq4i3hdjbbf4636gk54s07022v-python3-3.10.13/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/pytest/__main__.py", line 5, in <module>
    raise SystemExit(pytest.console_main())
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/config/__init__.py", line 190, in console_main
    code = main()
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/config/__init__.py", line 167, in main
    ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/main.py", line 317, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/main.py", line 270, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/main.py", line 324, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/main.py", line 349, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 112, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 131, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 220, in call_and_report
    call = call_runtest_hook(item, when, **kwds)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 259, in call_runtest_hook
    return CallInfo.from_call(
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 339, in from_call
    result: Optional[TResult] = func()
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 260, in <lambda>
    lambda: ihook(item=item, **kwds), when=when, reraise=reraise
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 167, in pytest_runtest_call
    item.runtest()
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/python.py", line 1789, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/nix/store/9ipd6dh9zlb0sm0cn40d9zw7w163r2sm-python3.10-pytest-jupyter-0.6.2/lib/python3.10/site-packages/pytest_jupyter/pytest_tornasync.py", line 29, in pytest_pyfunc_call
    pyfuncitem.obj(**testargs)
  File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 105, in test_base_url
    launch_instance(["--ServerApp.base_url=/foo"])
  File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 83, in _run_in_subprocess
    wait_up(url, check=lambda: process.poll() is None)
  File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 40, in wait_up
    time.sleep(interval)

 Timeout 
/nix/store/gv2cl6qvvslz5h15vqd89f1rpvrdg5yc-stdenv-linux/setup: line 1604: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/crxnqidkwkgxm9s7ahkhvilx1cisrki6-python3.10-jupyter-server-2.0.6.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/z8h0ric06294fi8xs1nlpwp2xclsfmm3-python3.10-nbclassic-0.5.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6wyqkkj9crkzck7gya4sy45v8zzk9dhs-python3.10-notebook-6.5.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b5zjwz5l96mapdsisna97664a0026bap-wolfram-notebook.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bwkqhzh05gzyhlcnqk9grl5zac4mgd16-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zpq45lq207bg638nfcv5dw2yy8l0nax6-nixos-system-orione-23.05.4860.9fb122519e9c.drv' failed to build

Note that this is on nixos-23.05, not unstable.

Notify maintainers

@risicle @natsukium

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.60, NixOS, 23.05 (Stoat), 23.05.4662.34bdaaf1f0b7`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.6`
 - channels(beffa): `""`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@fedeinthemix fedeinthemix added the 0.kind: build failure A package fails to build label Nov 18, 2023
@fedeinthemix
Copy link
Contributor Author

I tried

nix-shell -p 'python3.withPackages (ps: with ps; [notebook ])'

and seems to fail in the same way

...
tests/extension/test_config.py .                                         [ 40%]
tests/extension/test_entrypoint.py .                                     [ 40%]
tests/extension/test_handler.py .....                                    [ 41%]
tests/extension/test_launch.py .
 Timeout 

 Captured stderr 
/nix/store/n5fr2ppq4i3hdjbbf4636gk54s07022v-python3-3.10.13/lib/python3.10/runpy.py:126: RuntimeWarning: 'tests.extension.mockextensions.app' found in sys.modules after import of package 'tests.extension.mockextensions', but prior to execution of 'tests.extension.mockextensions.app'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
[I 2023-11-18 09:47:24.549 ServerApp] tests.extension.mockextensions | extension was successfully linked.
[I 2023-11-18 09:47:24.549 ServerApp] tests.extension.mockextensions.mock1 | extension was successfully linked.
/nix/store/9iyr1y1s3y0lc3i890hni8x7h9q90xd2-python3.10-traitlets-5.9.0/lib/python3.10/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'f1f43ec4' instead of '"f1f43ec4"' if you require traitlets >=5.
  warn(
[I 2023-11-18 09:47:24.557 ServerApp] tests.extension.mockextensions | extension was successfully loaded.
[I 2023-11-18 09:47:24.557 ServerApp] tests.extension.mockextensions.mock1 | extension was successfully loaded.
[I 2023-11-18 09:47:24.558 ServerApp] The port 9999 is already in use, trying another port.
[I 2023-11-18 09:47:24.558 ServerApp] Serving notebooks from local directory: /build/jupyter_server-2.0.6
[I 2023-11-18 09:47:24.559 ServerApp] Jupyter Server 2.0.6 is running at:
[I 2023-11-18 09:47:24.559 ServerApp] http://127.0.0.1:10000/foo/?token=...
[I 2023-11-18 09:47:24.559 ServerApp]  or http://127.0.0.1:10000/foo/?token=...
[I 2023-11-18 09:47:24.559 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

 Stack of MainThread (140737352644416) 
  File "/nix/store/n5fr2ppq4i3hdjbbf4636gk54s07022v-python3-3.10.13/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/nix/store/n5fr2ppq4i3hdjbbf4636gk54s07022v-python3-3.10.13/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/pytest/__main__.py", line 5, in <module>
    raise SystemExit(pytest.console_main())
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/config/__init__.py", line 190, in console_main
    code = main()
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/config/__init__.py", line 167, in main
    ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/main.py", line 317, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/main.py", line 270, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/main.py", line 324, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/main.py", line 349, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 112, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 131, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 220, in call_and_report
    call = call_runtest_hook(item, when, **kwds)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 259, in call_runtest_hook
    return CallInfo.from_call(
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 339, in from_call
    result: Optional[TResult] = func()
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 260, in <lambda>
    lambda: ihook(item=item, **kwds), when=when, reraise=reraise
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/runner.py", line 167, in pytest_runtest_call
    item.runtest()
  File "/nix/store/p30wij6qgqfndhif6hr99gb24qrlkavk-python3.10-pytest-7.2.1/lib/python3.10/site-packages/_pytest/python.py", line 1789, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/nix/store/vs3gfnsvg7l773cn5zvpqz9772nn945b-python3.10-pluggy-1.0.0/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/nix/store/9ipd6dh9zlb0sm0cn40d9zw7w163r2sm-python3.10-pytest-jupyter-0.6.2/lib/python3.10/site-packages/pytest_jupyter/pytest_tornasync.py", line 29, in pytest_pyfunc_call
    pyfuncitem.obj(**testargs)
  File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 105, in test_base_url
    launch_instance(["--ServerApp.base_url=/foo"])
  File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 83, in _run_in_subprocess
    wait_up(url, check=lambda: process.poll() is None)
  File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 40, in wait_up
    time.sleep(interval)

 Timeout 
/nix/store/gv2cl6qvvslz5h15vqd89f1rpvrdg5yc-stdenv-linux/setup: line 1604: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/crxnqidkwkgxm9s7ahkhvilx1cisrki6-python3.10-jupyter-server-2.0.6.drv' failed with exit code 1;
       last 10 log lines:
       >     pyfuncitem.obj(**testargs)
       >   File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 105, in test_base_url
       >     launch_instance(["--ServerApp.base_url=/foo"])
       >   File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 83, in _run_in_subprocess
       >     wait_up(url, check=lambda: process.poll() is None)
       >   File "/build/jupyter_server-2.0.6/tests/extension/test_launch.py", line 40, in wait_up
       >     time.sleep(interval)
       >
       >  Timeout
       > /nix/store/gv2cl6qvvslz5h15vqd89f1rpvrdg5yc-stdenv-linux/setup: line 1604: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/crxnqidkwkgxm9s7ahkhvilx1cisrki6-python3.10-jupyter-server-2.0.6.drv'.
error: 1 dependencies of derivation '/nix/store/4ym2cbd2aibw00m1vgimkwx3gjylb9gw-python3-3.10.13-env.drv' failed to build

@natsukium

@fedeinthemix
Copy link
Contributor Author

seems the same as #267916

@risicle
Copy link
Contributor

risicle commented Nov 18, 2023

Fix is in staging-next-23.05 #267121

@teto teto added the 6.topic: jupyter Interactive computing tooling: kernels, notebook, jupyterlab label Nov 18, 2023
@natsukium
Copy link
Member

I tried

nix-shell -p 'python3.withPackages (ps: with ps; [notebook ])'

As the log shows, this is not related to #255923, so that workaround would not work.

@fedeinthemix
Copy link
Contributor Author

Works on 23.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: jupyter Interactive computing tooling: kernels, notebook, jupyterlab
Projects
None yet
Development

No branches or pull requests

4 participants