jupyter_server
jupyter_server copied to clipboard
1.11.0: pytest is failing
Description
pytest is failing.
Reproduce
I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account.
- "setup.py build"
- "setup.py install --root </install/prefix>"
- "pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
Here is the result:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter_server-1.11.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter_server-1.11.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=253772199
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.0, configfile: pyproject.toml, testpaths: jupyter_server/
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, aspectlib-1.5.2, toolbox-0.5, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, flaky-3.7.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, xprocess-0.18.1, black-0.3.12, asyncio-0.15.1, subtests-0.5.0, isort-2.0.0, hypothesis-6.14.6, mock-3.6.1, profiling-1.7.0, randomly-3.8.0, nose2pytest-1.0.8, pyfakefs-4.5.1, tornado-0.8.1, twisted-1.13.3, aiohttp-0.3.0, localserver-0.5.0, anyio-3.3.1, trio-0.7.0, cases-3.6.4, yagot-0.5.0, Faker-8.14.1
collected 0 items / 1 error
================================================================================== ERRORS ==================================================================================
______________________________________________________________________ ERROR collecting test session _______________________________________________________________________
Defining 'pytest_plugins' in a non-top-level conftest is no longer supported:
It affects the entire test suite instead of just below the conftest as expected.
/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.0/jupyter_server/conftest.py
Please move it to a top level conftest file at the rootdir:
/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.0
For more information, visit:
https://docs.pytest.org/en/stable/deprecations.html#pytest-plugins-in-non-top-level-conftest-files
========================================================================= short test summary info ==========================================================================
ERROR
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================= 1 error in 0.35s =============================================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.
Expected behavior
pytest will start and finish without errors or fails.
Context
- Operating System and version: Linux/x86_64
- Browser and version: N/A
- Jupyter Server version: 1.11.0
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
Hi @kloczek, would these testing instructions work for you?
I jave installed all required modules and pytest is failing
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter_server-1.11.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter_server-1.11.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra jupyter_server
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=2372170375
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1, configfile: pyproject.toml
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, aspectlib-1.5.2, toolbox-0.5, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, flaky-3.7.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, xprocess-0.18.1, black-0.3.12, asyncio-0.15.1, subtests-0.5.0, isort-2.0.0, hypothesis-6.14.6, mock-3.6.1, profiling-1.7.0, randomly-3.8.0, nose2pytest-1.0.8, pyfakefs-4.5.1, tornado-0.8.1, twisted-1.13.3, aiohttp-0.3.0, localserver-0.5.0, anyio-3.3.1, trio-0.7.0, cases-3.6.4, yagot-0.5.0, Faker-9.3.1
collected 556 items
jupyter_server/tests/test_utils.py .......... [ 1%]
jupyter_server/tests/auth/test_security.py .... [ 2%]
jupyter_server/tests/test_view.py EEEE [ 3%]
jupyter_server/tests/services/kernels/test_api.py EEEEEEEEEE [ 5%]
jupyter_server/tests/auth/test_login.py EEEEEEEEE [ 6%]
jupyter_server/tests/extension/test_launch.py ... [ 7%]
jupyter_server/tests/test_traittypes.py ........... [ 9%]
jupyter_server/tests/extension/test_handler.py EEEEE [ 10%]
jupyter_server/tests/test_version.py ........ [ 11%]
jupyter_server/tests/services/contents/test_largefilemanager.py .............. [ 14%]
jupyter_server/tests/test_paths.py EE.E.E [ 15%]
jupyter_server/tests/services/contents/test_api.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 35%]
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 54%]
jupyter_server/tests/services/contents/test_manager.py ................................................................................ [ 68%]
jupyter_server/tests/services/kernels/test_config.py EE [ 69%]
jupyter_server/auth/security.py . [ 69%]
jupyter_server/tests/test_config_manager.py . [ 69%]
jupyter_server/auth/security.py . [ 69%]
jupyter_server/tests/extension/test_utils.py . [ 69%]
jupyter_server/tests/extension/test_entrypoint.py E [ 69%]
jupyter_server/tests/services/kernelspecs/test_api.py EEEEEEE [ 71%]
jupyter_server/tests/test_files.py EEEEEEE [ 72%]
jupyter_server/tests/extension/test_config.py . [ 72%]
jupyter_server/tests/unix_sockets/test_serverapp_integration.py sssss [ 73%]
jupyter_server/tests/services/sessions/test_manager.py ......... [ 75%]
jupyter_server/tests/extension/test_app.py FFEFFFEFFFEFFE [ 77%]
jupyter_server/tests/services/nbconvert/test_api.py E [ 77%]
jupyter_server/tests/nbconvert/test_handlers.py EEEEEE [ 78%]
jupyter_server/tests/services/api/test_api.py EE [ 79%]
jupyter_server/tests/unix_sockets/test_api.py .F [ 79%]
jupyter_server/tests/test_terminal.py EEEEEE [ 80%]
jupyter_server/tests/test_serialize.py .. [ 81%]
jupyter_server/tests/services/contents/test_fileio.py ... [ 81%]
jupyter_server/tests/extension/test_manager.py .E..EE.EE. [ 83%]
jupyter_server/tests/services/sessions/test_api.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 89%]
jupyter_server/tests/services/config/test_api.py EEE [ 90%]
jupyter_server/tests/test_serverapp.py .....EE.EEE.E.EEEEEEEEE.E..EE.EE... [ 96%]
jupyter_server/tests/test_gateway.py EEEEEEE [ 98%]
jupyter_server/tests/services/kernels/test_cull.py EE [ 98%]
jupyter_server/tests/extension/test_serverextension.py ...EE [ 99%]
jupyter_server/tests/services/contents/test_config.py EEEE [100%]
================================================================================== ERRORS ==================================================================================
____________________________________________________________ ERROR at setup of test_view[False-nosuchfile.html] ____________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/tests/test_view.py, line 36
@pytest.mark.parametrize(
"exists, name",
[
(False, "nosuchfile.html"),
(False, "nosuchfile.bin"),
(True, "exists.html"),
(True, "exists.bin"),
],
)
async def test_view(jp_fetch, jp_serverapp, jp_root_dir, exists, name):
"""Test /view/$path for a few cases"""
if exists:
jp_root_dir.joinpath(name).write_text(name)
if not exists:
with pytest.raises(tornado.httpclient.HTTPClientError) as e:
await jp_fetch("view", name, method="GET")
assert expected_http_error(e, 404), [name, e]
else:
r = await jp_fetch("view", name, method="GET")
assert r.code == 200
assert r.headers["content-type"] == "text/html; charset=UTF-8"
html = r.body.decode()
src = find_iframe_src(html)
assert src == url_path_join(jp_serverapp.base_url, f"/files/{name}")
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py, line 303
@pytest.fixture
def jp_fetch(jp_serverapp, http_server_client, jp_auth_header, jp_base_url):
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py, line 277
@pytest.fixture(scope="function")
def jp_serverapp(jp_ensure_app_fixture, jp_server_config, jp_argv, jp_configurable_serverapp):
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py, line 183
@pytest.fixture(scope="function")
def jp_configurable_serverapp(
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py, line 157
@pytest.fixture
def jp_http_port(http_server_port):
E fixture 'http_server_port' not found
> available fixtures: _session_faker, _unused_port, aiohttp_client, aiohttp_raw_server, aiohttp_server, aiohttp_unused_port, anyio_backend, anyio_backend_name, anyio_backend_options, autojump_clock, base_url, benchmark, benchmark_weave, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_mocker, cov, current_cases, data_regression, datadir, dataframe_regression, doctest_namespace, event_loop, faker, faker_seed, fast, file_regression, freezer, fs, http_client, http_port, http_server, https_client, https_port, https_server, httpserver, httpsserver, image_regression, io_loop, jp_argv, jp_auth_header, jp_base_url, jp_config_dir, jp_configurable_serverapp, jp_contents_manager, jp_create_notebook, jp_data_dir, jp_ensure_app_fixture, jp_env_config_path, jp_env_jupyter_path, jp_environ, jp_extension_environ, jp_fetch, jp_home_dir, jp_http_port, jp_kernelspecs, jp_large_contents_manager, jp_nbconvert_templates, jp_root_dir, jp_runtime_dir, jp_server_cleanup, jp_server_config, jp_serverapp, jp_system_config_path, jp_system_jupyter_path, jp_template_dir, jp_web_app, jp_ws_fetch, loop, loop_debug, mock_clock, mocker, module_mocker, monkeypatch, no_cover, num_regression, nursery, original_datadir, package_mocker, proactor_loop, pytestconfig, raw_test_server, record_property, record_testsuite_property, record_xml_attribute, recwarn, requests_mock, session_mocker, shared_datadir, smart_caplog, smtpserver, subtests, test_client, test_server, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpworkdir, twisted_greenlet, unused_port, unused_tcp_port, unused_tcp_port_factory, virtualenv, weave, worker_id, workspace, xprocess
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py:157
_______________________________________________________________ ERROR at setup of test_view[True-exists.bin] _______________________________________________________________
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/tests/test_view.py, line 36
@pytest.mark.parametrize(
"exists, name",
[
(False, "nosuchfile.html"),
(False, "nosuchfile.bin"),
(True, "exists.html"),
(True, "exists.bin"),
],
)
async def test_view(jp_fetch, jp_serverapp, jp_root_dir, exists, name):
"""Test /view/$path for a few cases"""
if exists:
jp_root_dir.joinpath(name).write_text(name)
if not exists:
with pytest.raises(tornado.httpclient.HTTPClientError) as e:
await jp_fetch("view", name, method="GET")
assert expected_http_error(e, 404), [name, e]
else:
r = await jp_fetch("view", name, method="GET")
assert r.code == 200
assert r.headers["content-type"] == "text/html; charset=UTF-8"
html = r.body.decode()
src = find_iframe_src(html)
assert src == url_path_join(jp_serverapp.base_url, f"/files/{name}")
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py, line 303
@pytest.fixture
def jp_fetch(jp_serverapp, http_server_client, jp_auth_header, jp_base_url):
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py, line 277
@pytest.fixture(scope="function")
def jp_serverapp(jp_ensure_app_fixture, jp_server_config, jp_argv, jp_configurable_serverapp):
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py, line 183
@pytest.fixture(scope="function")
def jp_configurable_serverapp(
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py, line 157
@pytest.fixture
def jp_http_port(http_server_port):
E fixture 'http_server_port' not found
> available fixtures: _session_faker, _unused_port, aiohttp_client, aiohttp_raw_server, aiohttp_server, aiohttp_unused_port, anyio_backend, anyio_backend_name, anyio_backend_options, autojump_clock, base_url, benchmark, benchmark_weave, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_mocker, cov, current_cases, data_regression, datadir, dataframe_regression, doctest_namespace, event_loop, faker, faker_seed, fast, file_regression, freezer, fs, http_client, http_port, http_server, https_client, https_port, https_server, httpserver, httpsserver, image_regression, io_loop, jp_argv, jp_auth_header, jp_base_url, jp_config_dir, jp_configurable_serverapp, jp_contents_manager, jp_create_notebook, jp_data_dir, jp_ensure_app_fixture, jp_env_config_path, jp_env_jupyter_path, jp_environ, jp_extension_environ, jp_fetch, jp_home_dir, jp_http_port, jp_kernelspecs, jp_large_contents_manager, jp_nbconvert_templates, jp_root_dir, jp_runtime_dir, jp_server_cleanup, jp_server_config, jp_serverapp, jp_system_config_path, jp_system_jupyter_path, jp_template_dir, jp_web_app, jp_ws_fetch, loop, loop_debug, mock_clock, mocker, module_mocker, monkeypatch, no_cover, num_regression, nursery, original_datadir, package_mocker, proactor_loop, pytestconfig, raw_test_server, record_property, record_testsuite_property, record_xml_attribute, recwarn, requests_mock, session_mocker, shared_datadir, smart_caplog, smtpserver, subtests, test_client, test_server, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpworkdir, twisted_greenlet, unused_port, unused_tcp_port, unused_tcp_port_factory, virtualenv, weave, worker_id, workspace, xprocess
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py:157
______________________________________________________________ ERROR at setup of test_view[True-exists.html] _______________________________________________________________
[..]
__________________________________________________ ERROR at setup of test_async_contents_manager[GenericFileCheckpoints] ___________________________________________________
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/tests/services/contents/test_config.py, line 21
async def test_async_contents_manager(jp_configurable_serverapp):
config = {"ContentsManager": {"checkpoints_class": AsyncCheckpoints}}
argv = [
"--ServerApp.contents_manager_class=jupyter_server.services.contents.manager.AsyncContentsManager"
]
app = jp_configurable_serverapp(config=config, argv=argv)
assert isinstance(app.contents_manager, AsyncContentsManager)
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py, line 183
@pytest.fixture(scope="function")
def jp_configurable_serverapp(
file /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py, line 157
@pytest.fixture
def jp_http_port(http_server_port):
E fixture 'http_server_port' not found
> available fixtures: _session_faker, _unused_port, aiohttp_client, aiohttp_raw_server, aiohttp_server, aiohttp_unused_port, anyio_backend, anyio_backend_name, anyio_backend_options, autojump_clock, base_url, benchmark, benchmark_weave, betamax_parametrized_recorder, betamax_parametrized_session, betamax_recorder, betamax_session, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, class_mocker, cov, current_cases, data_regression, datadir, dataframe_regression, doctest_namespace, event_loop, faker, faker_seed, fast, file_regression, freezer, fs, http_client, http_port, http_server, https_client, https_port, https_server, httpserver, httpsserver, image_regression, io_loop, jp_argv, jp_auth_header, jp_base_url, jp_config_dir, jp_configurable_serverapp, jp_contents_manager, jp_create_notebook, jp_data_dir, jp_ensure_app_fixture, jp_env_config_path, jp_env_jupyter_path, jp_environ, jp_extension_environ, jp_fetch, jp_home_dir, jp_http_port, jp_kernelspecs, jp_large_contents_manager, jp_nbconvert_templates, jp_root_dir, jp_runtime_dir, jp_server_cleanup, jp_server_config, jp_serverapp, jp_system_config_path, jp_system_jupyter_path, jp_template_dir, jp_web_app, jp_ws_fetch, loop, loop_debug, mock_clock, mocker, module_mocker, monkeypatch, no_cover, num_regression, nursery, original_datadir, package_mocker, proactor_loop, pytestconfig, raw_test_server, record_property, record_testsuite_property, record_xml_attribute, recwarn, requests_mock, session_mocker, shared_datadir, smart_caplog, smtpserver, subtests, test_client, test_server, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, tmpworkdir, twisted_greenlet, unused_port, unused_tcp_port, unused_tcp_port_factory, virtualenv, weave, worker_id, workspace, xprocess
> use 'pytest --fixtures [testpath]' for help on them.
/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/pytest_plugin.py:157
================================================================================= FAILURES =================================================================================
_____________________________________________________________________ test_browser_open[False-config2] _____________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffa4a787580>, jp_environ = None, config = {'ServerApp': {'open_browser': False}}, expected_value = False
@pytest.mark.parametrize("expected_value, config", OPEN_BROWSER_COMBINATIONS)
def test_browser_open(monkeypatch, jp_environ, config, expected_value):
> serverapp = MockExtensionApp.initialize_server(config=Config(config))
jupyter_server/tests/extension/test_app.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/extension/application.py:537: in initialize_server
serverapp.initialize(
/usr/lib/python3.8/site-packages/traitlets/config/application.py:88: in inner
return method(app, *args, **kwargs)
jupyter_server/serverapp.py:2325: in initialize
self.init_ioloop()
jupyter_server/serverapp.py:2656: in init_ioloop
self.io_loop = ioloop.IOLoop.current()
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:263: in current
loop = asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffa4b748c10>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if (self._local._loop is None and
not self._local._set_called and
isinstance(threading.current_thread(), threading._MainThread)):
self.set_event_loop(self.new_event_loop())
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib64/python3.8/asyncio/events.py:639: RuntimeError
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
[I 2021-10-16 17:18:00.631 ServerApp] jupyter_server.tests.extension.mockextensions | extension was successfully linked.
[I 2021-10-16 17:18:00.631 ServerApp] jupyter_server.tests.extension.mockextensions.mock1 | extension was successfully linked.
[I 2021-10-16 17:18:00.640 ServerApp] Writing Jupyter server cookie secret to /tmp/pytest-of-tkloczko/pytest-29/test_browser_open_False_config0/runtime/jupyter_cookie_secret
_____________________________________________________________________ test_browser_open[True-config5] ______________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffa4a4e0d60>, jp_environ = None
config = {'MockExtensionApp': {'open_browser': True}, 'ServerApp': {'open_browser': True}}, expected_value = True
@pytest.mark.parametrize("expected_value, config", OPEN_BROWSER_COMBINATIONS)
def test_browser_open(monkeypatch, jp_environ, config, expected_value):
> serverapp = MockExtensionApp.initialize_server(config=Config(config))
jupyter_server/tests/extension/test_app.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/extension/application.py:537: in initialize_server
serverapp.initialize(
/usr/lib/python3.8/site-packages/traitlets/config/application.py:88: in inner
return method(app, *args, **kwargs)
jupyter_server/serverapp.py:2325: in initialize
self.init_ioloop()
jupyter_server/serverapp.py:2656: in init_ioloop
self.io_loop = ioloop.IOLoop.current()
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:263: in current
loop = asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffa4b748c10>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if (self._local._loop is None and
not self._local._set_called and
isinstance(threading.current_thread(), threading._MainThread)):
self.set_event_loop(self.new_event_loop())
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib64/python3.8/asyncio/events.py:639: RuntimeError
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
[I 2021-10-16 17:18:00.868 ServerApp] jupyter_server.tests.extension.mockextensions | extension was successfully linked.
[I 2021-10-16 17:18:00.868 ServerApp] jupyter_server.tests.extension.mockextensions.mock1 | extension was successfully linked.
[I 2021-10-16 17:18:00.872 ServerApp] Writing Jupyter server cookie secret to /tmp/pytest-of-tkloczko/pytest-29/test_browser_open_True_config50/runtime/jupyter_cookie_secret
_____________________________________________________________________ test_browser_open[False-config6] _____________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffa4a34b280>, jp_environ = None
config = {'MockExtensionApp': {'open_browser': False}, 'ServerApp': {'open_browser': True}}, expected_value = False
@pytest.mark.parametrize("expected_value, config", OPEN_BROWSER_COMBINATIONS)
def test_browser_open(monkeypatch, jp_environ, config, expected_value):
> serverapp = MockExtensionApp.initialize_server(config=Config(config))
jupyter_server/tests/extension/test_app.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/extension/application.py:537: in initialize_server
serverapp.initialize(
/usr/lib/python3.8/site-packages/traitlets/config/application.py:88: in inner
return method(app, *args, **kwargs)
jupyter_server/serverapp.py:2325: in initialize
self.init_ioloop()
jupyter_server/serverapp.py:2656: in init_ioloop
self.io_loop = ioloop.IOLoop.current()
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:263: in current
loop = asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffa4b748c10>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if (self._local._loop is None and
not self._local._set_called and
isinstance(threading.current_thread(), threading._MainThread)):
self.set_event_loop(self.new_event_loop())
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib64/python3.8/asyncio/events.py:639: RuntimeError
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
[I 2021-10-16 17:18:00.988 ServerApp] jupyter_server.tests.extension.mockextensions | extension was successfully linked.
[I 2021-10-16 17:18:00.988 ServerApp] jupyter_server.tests.extension.mockextensions.mock1 | extension was successfully linked.
[I 2021-10-16 17:18:00.992 ServerApp] Writing Jupyter server cookie secret to /tmp/pytest-of-tkloczko/pytest-29/test_browser_open_False_config1/runtime/jupyter_cookie_secret
_____________________________________________________________________ test_browser_open[True-config1] ______________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffa4a62e790>, jp_environ = None, config = {'ServerApp': {'open_browser': True}}, expected_value = True
@pytest.mark.parametrize("expected_value, config", OPEN_BROWSER_COMBINATIONS)
def test_browser_open(monkeypatch, jp_environ, config, expected_value):
> serverapp = MockExtensionApp.initialize_server(config=Config(config))
jupyter_server/tests/extension/test_app.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/extension/application.py:537: in initialize_server
serverapp.initialize(
/usr/lib/python3.8/site-packages/traitlets/config/application.py:88: in inner
return method(app, *args, **kwargs)
jupyter_server/serverapp.py:2325: in initialize
self.init_ioloop()
jupyter_server/serverapp.py:2656: in init_ioloop
self.io_loop = ioloop.IOLoop.current()
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:263: in current
loop = asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffa4b748c10>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if (self._local._loop is None and
not self._local._set_called and
isinstance(threading.current_thread(), threading._MainThread)):
self.set_event_loop(self.new_event_loop())
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib64/python3.8/asyncio/events.py:639: RuntimeError
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
[I 2021-10-16 17:18:01.198 ServerApp] jupyter_server.tests.extension.mockextensions | extension was successfully linked.
[I 2021-10-16 17:18:01.198 ServerApp] jupyter_server.tests.extension.mockextensions.mock1 | extension was successfully linked.
[I 2021-10-16 17:18:01.201 ServerApp] Writing Jupyter server cookie secret to /tmp/pytest-of-tkloczko/pytest-29/test_browser_open_True_config10/runtime/jupyter_cookie_secret
_____________________________________________________________________ test_browser_open[True-config0] ______________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffa4a48a940>, jp_environ = None, config = {}, expected_value = True
@pytest.mark.parametrize("expected_value, config", OPEN_BROWSER_COMBINATIONS)
def test_browser_open(monkeypatch, jp_environ, config, expected_value):
> serverapp = MockExtensionApp.initialize_server(config=Config(config))
jupyter_server/tests/extension/test_app.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/extension/application.py:537: in initialize_server
serverapp.initialize(
/usr/lib/python3.8/site-packages/traitlets/config/application.py:88: in inner
return method(app, *args, **kwargs)
jupyter_server/serverapp.py:2325: in initialize
self.init_ioloop()
jupyter_server/serverapp.py:2656: in init_ioloop
self.io_loop = ioloop.IOLoop.current()
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:263: in current
loop = asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffa4b748c10>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if (self._local._loop is None and
not self._local._set_called and
isinstance(threading.current_thread(), threading._MainThread)):
self.set_event_loop(self.new_event_loop())
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib64/python3.8/asyncio/events.py:639: RuntimeError
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
[I 2021-10-16 17:18:01.307 ServerApp] jupyter_server.tests.extension.mockextensions | extension was successfully linked.
[I 2021-10-16 17:18:01.307 ServerApp] jupyter_server.tests.extension.mockextensions.mock1 | extension was successfully linked.
[I 2021-10-16 17:18:01.310 ServerApp] Writing Jupyter server cookie secret to /tmp/pytest-of-tkloczko/pytest-29/test_browser_open_True_config00/runtime/jupyter_cookie_secret
______________________________________________________________________ test_load_parallel_extensions _______________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffa4a69b3a0>, jp_environ = None
def test_load_parallel_extensions(monkeypatch, jp_environ):
> serverapp = MockExtensionApp.initialize_server()
jupyter_server/tests/extension/test_app.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/extension/application.py:537: in initialize_server
serverapp.initialize(
/usr/lib/python3.8/site-packages/traitlets/config/application.py:88: in inner
return method(app, *args, **kwargs)
jupyter_server/serverapp.py:2325: in initialize
self.init_ioloop()
jupyter_server/serverapp.py:2656: in init_ioloop
self.io_loop = ioloop.IOLoop.current()
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:263: in current
loop = asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffa4b748c10>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if (self._local._loop is None and
not self._local._set_called and
isinstance(threading.current_thread(), threading._MainThread)):
self.set_event_loop(self.new_event_loop())
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib64/python3.8/asyncio/events.py:639: RuntimeError
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
[I 2021-10-16 17:18:01.426 ServerApp] jupyter_server.tests.extension.mockextensions | extension was successfully linked.
[I 2021-10-16 17:18:01.426 ServerApp] jupyter_server.tests.extension.mockextensions.mock1 | extension was successfully linked.
[I 2021-10-16 17:18:01.430 ServerApp] Writing Jupyter server cookie secret to /tmp/pytest-of-tkloczko/pytest-29/test_load_parallel_extensions0/runtime/jupyter_cookie_secret
_____________________________________________________________________ test_browser_open[False-config8] _____________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffa4a358bb0>, jp_environ = None
config = {'MockExtensionApp': {'open_browser': False}, 'ServerApp': {'open_browser': False}}, expected_value = False
@pytest.mark.parametrize("expected_value, config", OPEN_BROWSER_COMBINATIONS)
def test_browser_open(monkeypatch, jp_environ, config, expected_value):
> serverapp = MockExtensionApp.initialize_server(config=Config(config))
jupyter_server/tests/extension/test_app.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/extension/application.py:537: in initialize_server
serverapp.initialize(
/usr/lib/python3.8/site-packages/traitlets/config/application.py:88: in inner
return method(app, *args, **kwargs)
jupyter_server/serverapp.py:2325: in initialize
self.init_ioloop()
jupyter_server/serverapp.py:2656: in init_ioloop
self.io_loop = ioloop.IOLoop.current()
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:263: in current
loop = asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffa4b748c10>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if (self._local._loop is None and
not self._local._set_called and
isinstance(threading.current_thread(), threading._MainThread)):
self.set_event_loop(self.new_event_loop())
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib64/python3.8/asyncio/events.py:639: RuntimeError
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
[I 2021-10-16 17:18:01.632 ServerApp] jupyter_server.tests.extension.mockextensions | extension was successfully linked.
[I 2021-10-16 17:18:01.632 ServerApp] jupyter_server.tests.extension.mockextensions.mock1 | extension was successfully linked.
[I 2021-10-16 17:18:01.636 ServerApp] Writing Jupyter server cookie secret to /tmp/pytest-of-tkloczko/pytest-29/test_browser_open_False_config2/runtime/jupyter_cookie_secret
_____________________________________________________________________ test_browser_open[False-config4] _____________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffa4a3a64c0>, jp_environ = None, config = {'MockExtensionApp': {'open_browser': False}}, expected_value = False
@pytest.mark.parametrize("expected_value, config", OPEN_BROWSER_COMBINATIONS)
def test_browser_open(monkeypatch, jp_environ, config, expected_value):
> serverapp = MockExtensionApp.initialize_server(config=Config(config))
jupyter_server/tests/extension/test_app.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/extension/application.py:537: in initialize_server
serverapp.initialize(
/usr/lib/python3.8/site-packages/traitlets/config/application.py:88: in inner
return method(app, *args, **kwargs)
jupyter_server/serverapp.py:2325: in initialize
self.init_ioloop()
jupyter_server/serverapp.py:2656: in init_ioloop
self.io_loop = ioloop.IOLoop.current()
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:263: in current
loop = asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffa4b748c10>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if (self._local._loop is None and
not self._local._set_called and
isinstance(threading.current_thread(), threading._MainThread)):
self.set_event_loop(self.new_event_loop())
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib64/python3.8/asyncio/events.py:639: RuntimeError
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
[I 2021-10-16 17:18:01.741 ServerApp] jupyter_server.tests.extension.mockextensions | extension was successfully linked.
[I 2021-10-16 17:18:01.741 ServerApp] jupyter_server.tests.extension.mockextensions.mock1 | extension was successfully linked.
[I 2021-10-16 17:18:01.744 ServerApp] Writing Jupyter server cookie secret to /tmp/pytest-of-tkloczko/pytest-29/test_browser_open_False_config3/runtime/jupyter_cookie_secret
_____________________________________________________________________ test_browser_open[True-config3] ______________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffa4a62c130>, jp_environ = None, config = {'MockExtensionApp': {'open_browser': True}}, expected_value = True
@pytest.mark.parametrize("expected_value, config", OPEN_BROWSER_COMBINATIONS)
def test_browser_open(monkeypatch, jp_environ, config, expected_value):
> serverapp = MockExtensionApp.initialize_server(config=Config(config))
jupyter_server/tests/extension/test_app.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/extension/application.py:537: in initialize_server
serverapp.initialize(
/usr/lib/python3.8/site-packages/traitlets/config/application.py:88: in inner
return method(app, *args, **kwargs)
jupyter_server/serverapp.py:2325: in initialize
self.init_ioloop()
jupyter_server/serverapp.py:2656: in init_ioloop
self.io_loop = ioloop.IOLoop.current()
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:263: in current
loop = asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffa4b748c10>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if (self._local._loop is None and
not self._local._set_called and
isinstance(threading.current_thread(), threading._MainThread)):
self.set_event_loop(self.new_event_loop())
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib64/python3.8/asyncio/events.py:639: RuntimeError
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
[I 2021-10-16 17:18:01.961 ServerApp] jupyter_server.tests.extension.mockextensions | extension was successfully linked.
[I 2021-10-16 17:18:01.961 ServerApp] jupyter_server.tests.extension.mockextensions.mock1 | extension was successfully linked.
[I 2021-10-16 17:18:01.964 ServerApp] Writing Jupyter server cookie secret to /tmp/pytest-of-tkloczko/pytest-29/test_browser_open_True_config30/runtime/jupyter_cookie_secret
_____________________________________________________________________ test_browser_open[True-config7] ______________________________________________________________________
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffa4a453550>, jp_environ = None
config = {'MockExtensionApp': {'open_browser': True}, 'ServerApp': {'open_browser': False}}, expected_value = True
@pytest.mark.parametrize("expected_value, config", OPEN_BROWSER_COMBINATIONS)
def test_browser_open(monkeypatch, jp_environ, config, expected_value):
> serverapp = MockExtensionApp.initialize_server(config=Config(config))
jupyter_server/tests/extension/test_app.py:78:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/extension/application.py:537: in initialize_server
serverapp.initialize(
/usr/lib/python3.8/site-packages/traitlets/config/application.py:88: in inner
return method(app, *args, **kwargs)
jupyter_server/serverapp.py:2325: in initialize
self.init_ioloop()
jupyter_server/serverapp.py:2656: in init_ioloop
self.io_loop = ioloop.IOLoop.current()
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:263: in current
loop = asyncio.get_event_loop()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7ffa4b748c10>
def get_event_loop(self):
"""Get the event loop for the current context.
Returns an instance of EventLoop or raises an exception.
"""
if (self._local._loop is None and
not self._local._set_called and
isinstance(threading.current_thread(), threading._MainThread)):
self.set_event_loop(self.new_event_loop())
if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.'
% threading.current_thread().name)
E RuntimeError: There is no current event loop in thread 'MainThread'.
/usr/lib64/python3.8/asyncio/events.py:639: RuntimeError
--------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------
[I 2021-10-16 17:18:02.071 ServerApp] jupyter_server.tests.extension.mockextensions | extension was successfully linked.
[I 2021-10-16 17:18:02.071 ServerApp] jupyter_server.tests.extension.mockextensions.mock1 | extension was successfully linked.
[I 2021-10-16 17:18:02.075 ServerApp] Writing Jupyter server cookie secret to /tmp/pytest-of-tkloczko/pytest-29/test_browser_open_True_config70/runtime/jupyter_cookie_secret
______________________________________________________________________________ test_get_spec _______________________________________________________________________________
jp_unix_socket_fetch = <function jp_unix_socket_fetch.<locals>.client at 0x7ffa4a3f0d30>
async def test_get_spec(jp_unix_socket_fetch):
# Handle URL strings
parts = ["api", "spec.yaml"]
# Make request and verify it succeeds.'
> response = await jp_unix_socket_fetch(*parts)
jupyter_server/tests/unix_sockets/test_api.py:60:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyter_server/tests/unix_sockets/test_api.py:49: in client
r = await async_fetch(url, headers=headers, io_loop=io_loop, **kwargs)
jupyter_server/utils.py:366: in async_fetch
response = await AsyncHTTPClient(io_loop).fetch(request)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tornado.iostream.IOStream object at 0x7ffa4a1b89d0>, address = '/tmp/jupyter_server.673199.sock', server_hostname = None
def connect(
self: _IOStreamType, address: Any, server_hostname: Optional[str] = None
) -> "Future[_IOStreamType]":
"""Connects the socket to a remote address without blocking.
May only be called if the socket passed to the constructor was
not previously connected. The address parameter is in the
same format as for `socket.connect <socket.socket.connect>` for
the type of socket passed to the IOStream constructor,
e.g. an ``(ip, port)`` tuple. Hostnames are accepted here,
but will be resolved synchronously and block the IOLoop.
If you have a hostname instead of an IP address, the `.TCPClient`
class is recommended instead of calling this method directly.
`.TCPClient` will do asynchronous DNS resolution and handle
both IPv4 and IPv6.
If ``callback`` is specified, it will be called with no
arguments when the connection is completed; if not this method
returns a `.Future` (whose result after a successful
connection will be the stream itself).
In SSL mode, the ``server_hostname`` parameter will be used
for certificate validation (unless disabled in the
``ssl_options``) and SNI (if supported; requires Python
2.7.9+).
Note that it is safe to call `IOStream.write
<BaseIOStream.write>` while the connection is pending, in
which case the data will be written as soon as the connection
is ready. Calling `IOStream` read methods before the socket is
connected works on some platforms but is non-portable.
.. versionchanged:: 4.0
If no callback is given, returns a `.Future`.
.. versionchanged:: 4.2
SSL certificates are validated by default; pass
``ssl_options=dict(cert_reqs=ssl.CERT_NONE)`` or a
suitably-configured `ssl.SSLContext` to the
`SSLIOStream` constructor to disable.
.. versionchanged:: 6.0
The ``callback`` argument was removed. Use the returned
`.Future` instead.
"""
self._connecting = True
future = Future() # type: Future[_IOStreamType]
self._connect_future = typing.cast("Future[IOStream]", future)
try:
> self.socket.connect(address)
E FileNotFoundError: [Errno 2] No such file or directory
/usr/lib64/python3.8/site-packages/tornado/iostream.py:1205: FileNotFoundError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2021-10-16 17:18:02.400 ServerApp] Config changed: {'ServerApp': {'sock': '/tmp/jupyter_server.673199.sock', 'allow_remote_access': True}, 'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG ServerApp:application.py:164 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1', '/tmp/pytest-of-tkloczko/pytest-29/test_get_spec1/config', '/tmp/pytest-of-tkloczko/pytest-29/test_get_spec1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-29/test_get_spec1/etc/jupyter'] for config files
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-29/test_get_spec1/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-29/test_get_spec1/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-29/test_get_spec1/config
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-29/test_get_spec1/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-29/test_get_spec1/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-29/test_get_spec1/config
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1
INFO ServerApp:serverapp.py:2577 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-29/test_get_spec1/root_dir
INFO ServerApp:serverapp.py:2577 Jupyter Server 1.11.1 is running at:
INFO ServerApp:serverapp.py:2577 http+unix://%2Ftmp%2Fjupyter_server.673199.sock/a%40b/?token=...
INFO ServerApp:serverapp.py:2577 or http+unix://%2Ftmp%2Fjupyter_server.673199.sock/a%40b/?token=...
INFO ServerApp:serverapp.py:2578 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
-------------------------------------------------------------------------- Captured log teardown ---------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2368 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2342 Shutting down 0 kernels
INFO ServerApp:serverapp.py:2359 Shutting down 0 terminals
============================================================================= warnings summary =============================================================================
jupyter_server/auth/login.py:112
/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/auth/login.py:112: DeprecationWarning: invalid escape sequence \s
auth_header_pat = re.compile("token\s+(.+)", re.IGNORECASE)
jupyter_server/tests/extension/test_entrypoint.py:5
/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.11.1/jupyter_server/tests/extension/test_entrypoint.py:5: PytestUnknownMarkWarning: Unknown pytest.mark.script_launch_mode - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
pytestmark = pytest.mark.script_launch_mode("subprocess")
-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [5] jupyter_server/conftest.py:29: Skipping this test because it's marked 'integration_test'. Run integration tests using the `--integration_tests` flag.
ERROR jupyter_server/tests/test_view.py::test_view[False-nosuchfile.html]
ERROR jupyter_server/tests/test_view.py::test_view[True-exists.bin]
ERROR jupyter_server/tests/test_view.py::test_view[True-exists.html]
ERROR jupyter_server/tests/test_view.py::test_view[False-nosuchfile.bin]
ERROR jupyter_server/tests/services/kernels/test_api.py::test_no_kernels[MappingKernelManager]
ERROR jupyter_server/tests/services/kernels/test_api.py::test_default_kernels[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/kernels/test_api.py::test_main_kernel_handler[MappingKernelManager]
ERROR jupyter_server/tests/services/kernels/test_api.py::test_no_kernels[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/kernels/test_api.py::test_kernel_handler[MappingKernelManager]
ERROR jupyter_server/tests/services/kernels/test_api.py::test_kernel_handler[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/kernels/test_api.py::test_connection[MappingKernelManager]
ERROR jupyter_server/tests/services/kernels/test_api.py::test_main_kernel_handler[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/kernels/test_api.py::test_connection[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/kernels/test_api.py::test_default_kernels[MappingKernelManager]
ERROR jupyter_server/tests/auth/test_login.py::test_next_bad[//host{base_url}tree]
ERROR jupyter_server/tests/auth/test_login.py::test_next_ok[tree/]
ERROR jupyter_server/tests/auth/test_login.py::test_next_bad[//some-host]
ERROR jupyter_server/tests/auth/test_login.py::test_next_bad[/absolute/not/base_url]
ERROR jupyter_server/tests/auth/test_login.py::test_next_bad[\\\\tree]
ERROR jupyter_server/tests/auth/test_login.py::test_next_ok[//{base_url}tree]
ERROR jupyter_server/tests/auth/test_login.py::test_next_bad[https://google.com]
ERROR jupyter_server/tests/auth/test_login.py::test_next_ok[tree//something]
ERROR jupyter_server/tests/auth/test_login.py::test_next_ok[notebooks/notebook.ipynb]
ERROR jupyter_server/tests/extension/test_handler.py::test_base_url[jp_server_config0-/test_prefix/]
ERROR jupyter_server/tests/extension/test_handler.py::test_handler
ERROR jupyter_server/tests/extension/test_handler.py::test_handler_setting[jp_server_config0]
ERROR jupyter_server/tests/extension/test_handler.py::test_handler_template
ERROR jupyter_server/tests/extension/test_handler.py::test_handler_argv[jp_argv0]
ERROR jupyter_server/tests/test_paths.py::test_trailing_slash[/notebooks/mynotebook/-/notebooks/mynotebook]
ERROR jupyter_server/tests/test_paths.py::test_trailing_slash[//example.com/-/example.com]
ERROR jupyter_server/tests/test_paths.py::test_trailing_slash[////foo///-/foo]
ERROR jupyter_server/tests/test_paths.py::test_trailing_slash[/has/param/?hasparam=true-/has/param?hasparam=true]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_nonexistant_dir[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_copy_put_400[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_nonexistant_dir[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_mkdir[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_upload_txt[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_invalid[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_save[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_rename_existing[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_copy[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_create_untitled_txt[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_mkdir[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_rename_existing[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_copy_dir_400[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_copy_path[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete_dirs[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_rename[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_create_untitled[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_upload_txt[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete_dirs[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_trust[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_copy_put_400[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_mkdir_hidden_400[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_create_untitled_txt[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_trust[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_create_untitled[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_mkdir_untitled[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_upload[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_copy_dir_400[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_checkpoints_follow_file[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_contents_no_such_file[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_mkdir_hidden_400[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_contents_no_such_file[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_copy[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_mkdir_untitled[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_checkpoints[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_bad_type[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-foo-a]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_bad_type[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-Directory with spaces in-inspace]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[AsyncFileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_checkpoints[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[FileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_file_checkpoints[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[AsyncFileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_save[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete_non_empty_dir[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_upload_b64[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_dir_no_contents[FileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_invalid[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_rename[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-ordering-C]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-foo-unicod\xe9]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/contents/test_api.py::test_checkpoints_follow_file[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_contents[FileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[AsyncFileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_copy_path[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_upload[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete_non_empty_dir[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_upload_b64[FileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[FileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_nb_no_contents[AsyncFileContentsManager-ordering-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_list_notebooks[FileContentsManager-foo/bar-baz]
ERROR jupyter_server/tests/services/contents/test_api.py::test_file_checkpoints[AsyncFileContentsManager]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-foo-b]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[FileContentsManager--inroot]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[FileContentsManager-\xe5 b-\xe7 d]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_text_file_contents[AsyncFileContentsManager-ordering-A]
ERROR jupyter_server/tests/services/contents/test_api.py::test_get_binary_file_contents[AsyncFileContentsManager-unicod\xe9-innonascii]
ERROR jupyter_server/tests/services/contents/test_api.py::test_delete[AsyncFileContentsManager-foo-name with spaces]
ERROR jupyter_server/tests/services/kernels/test_config.py::test_async_kernel_manager
ERROR jupyter_server/tests/services/kernels/test_config.py::test_config
ERROR jupyter_server/tests/extension/test_entrypoint.py::test_server_extension_list
ERROR jupyter_server/tests/services/kernelspecs/test_api.py::test_get_kernelspecs
ERROR jupyter_server/tests/services/kernelspecs/test_api.py::test_list_kernelspecs
ERROR jupyter_server/tests/services/kernelspecs/test_api.py::test_get_nonexistant_kernelspec
ERROR jupyter_server/tests/services/kernelspecs/test_api.py::test_get_nonexistant_resource
ERROR jupyter_server/tests/services/kernelspecs/test_api.py::test_list_kernelspecs_bad
ERROR jupyter_server/tests/services/kernelspecs/test_api.py::test_get_kernelspec_spaces
ERROR jupyter_server/tests/services/kernelspecs/test_api.py::test_get_kernel_resource_file
ERROR jupyter_server/tests/test_files.py::test_hidden_files[maybe_hidden1]
ERROR jupyter_server/tests/test_files.py::test_hidden_files[maybe_hidden3]
ERROR jupyter_server/tests/test_files.py::test_old_files_redirect
ERROR jupyter_server/tests/test_files.py::test_contents_manager
ERROR jupyter_server/tests/test_files.py::test_hidden_files[maybe_hidden0]
ERROR jupyter_server/tests/test_files.py::test_hidden_files[maybe_hidden2]
ERROR jupyter_server/tests/test_files.py::test_download
ERROR jupyter_server/tests/extension/test_app.py::test_instance_creation_with_argv[mock_trait-test mock trait-jp_argv0]
ERROR jupyter_server/tests/extension/test_app.py::test_extensionapp_load_config_file
ERROR jupyter_server/tests/extension/test_app.py::test_initialize
ERROR jupyter_server/tests/extension/test_app.py::test_stop_extension
ERROR jupyter_server/tests/services/nbconvert/test_api.py::test_list_formats
ERROR jupyter_server/tests/nbconvert/test_handlers.py::test_from_file_404
ERROR jupyter_server/tests/nbconvert/test_handlers.py::test_from_file
ERROR jupyter_server/tests/nbconvert/test_handlers.py::test_from_file_zip
ERROR jupyter_server/tests/nbconvert/test_handlers.py::test_from_post
ERROR jupyter_server/tests/nbconvert/test_handlers.py::test_from_file_download
ERROR jupyter_server/tests/nbconvert/test_handlers.py::test_from_post_zip
ERROR jupyter_server/tests/services/api/test_api.py::test_get_status
ERROR jupyter_server/tests/services/api/test_api.py::test_get_spec
ERROR jupyter_server/tests/test_terminal.py::test_no_terminals
ERROR jupyter_server/tests/test_terminal.py::test_terminal_create_with_cwd
ERROR jupyter_server/tests/test_terminal.py::test_terminal_create
ERROR jupyter_server/tests/test_terminal.py::test_culling_config
ERROR jupyter_server/tests/test_terminal.py::test_terminal_create_with_kwargs
ERROR jupyter_server/tests/test_terminal.py::test_culling
ERROR jupyter_server/tests/extension/test_manager.py::test_extension_manager_api
ERROR jupyter_server/tests/extension/test_manager.py::test_extension_manager_fail_link
ERROR jupyter_server/tests/extension/test_manager.py::test_extension_manager_fail_load
ERROR jupyter_server/tests/extension/test_manager.py::test_extension_manager_linked_extensions
ERROR jupyter_server/tests/extension/test_manager.py::test_extension_manager_fail_add
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_path_deprecated[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_type[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_file_session[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_with_kernel_id[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_path[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_delete[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_deprecated[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_with_kernel_id[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_kernel_id[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_path[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_with_kernel_id[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_restart_kernel[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_type[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_console_session[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_path[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_kernel_name[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_restart_kernel[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_kernel_name[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_file_session[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_path_deprecated[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_type[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_delete[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_deprecated[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_console_session[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_delete[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_kernel_name[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_path_deprecated[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_file_session[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_deprecated[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_kernel_id[NewPortsMappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_create_console_session[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_modify_kernel_id[MappingKernelManager]
ERROR jupyter_server/tests/services/sessions/test_api.py::test_restart_kernel[AsyncMappingKernelManager]
ERROR jupyter_server/tests/services/config/test_api.py::test_create_retrieve_config
ERROR jupyter_server/tests/services/config/test_api.py::test_modify
ERROR jupyter_server/tests/services/config/test_api.py::test_get_unknown
ERROR jupyter_server/tests/test_serverapp.py::test_observed_root_dir_does_not_update_preferred_dir
ERROR jupyter_server/tests/test_serverapp.py::test_list_running_servers
ERROR jupyter_server/tests/test_serverapp.py::test_valid_root_dir[valid_root_dir2]
ERROR jupyter_server/tests/test_serverapp.py::test_observed_root_dir_updates_preferred_dir
ERROR jupyter_server/tests/test_serverapp.py::test_valid_root_dir[valid_root_dir0]
ERROR jupyter_server/tests/test_serverapp.py::test_server_info_file
ERROR jupyter_server/tests/test_serverapp.py::test_valid_preferred_dir_does_not_exist
ERROR jupyter_server/tests/test_serverapp.py::test_invalid_preferred_dir_not_root_subdir_set
ERROR jupyter_server/tests/test_serverapp.py::test_invalid_root_dir[invalid_root_dir0]
ERROR jupyter_server/tests/test_serverapp.py::test_invalid_preferred_dir_does_not_exist_set
ERROR jupyter_server/tests/test_serverapp.py::test_invalid_preferred_dir_does_not_exist
ERROR jupyter_server/tests/test_serverapp.py::test_invalid_root_dir[invalid_root_dir2]
ERROR jupyter_server/tests/test_serverapp.py::test_invalid_root_dir[invalid_root_dir1]
ERROR jupyter_server/tests/test_serverapp.py::test_valid_preferred_dir
ERROR jupyter_server/tests/test_serverapp.py::test_invalid_preferred_dir_not_root_subdir
ERROR jupyter_server/tests/test_serverapp.py::test_valid_root_dir[valid_root_dir1]
ERROR jupyter_server/tests/test_serverapp.py::test_root_dir
ERROR jupyter_server/tests/test_serverapp.py::test_server_password
ERROR jupyter_server/tests/test_serverapp.py::test_generate_config
ERROR jupyter_server/tests/test_serverapp.py::test_valid_preferred_dir_is_root_subdir
ERROR jupyter_server/tests/test_gateway.py::test_gateway_kernel_lifecycle
ERROR jupyter_server/tests/test_gateway.py::test_gateway_cli_options
ERROR jupyter_server/tests/test_gateway.py::test_gateway_class_mappings
ERROR jupyter_server/tests/test_gateway.py::test_gateway_session_lifecycle
ERROR jupyter_server/tests/test_gateway.py::test_gateway_get_named_kernelspec
ERROR jupyter_server/tests/test_gateway.py::test_gateway_get_kernelspecs
ERROR jupyter_server/tests/test_gateway.py::test_gateway_env_options
ERROR jupyter_server/tests/services/kernels/test_cull.py::test_culling[MappingKernelManager]
ERROR jupyter_server/tests/services/kernels/test_cull.py::test_culling[AsyncMappingKernelManager]
ERROR jupyter_server/tests/extension/test_serverextension.py::test_load_ordered[jp_server_config0]
ERROR jupyter_server/tests/extension/test_serverextension.py::test_merge_config
ERROR jupyter_server/tests/services/contents/test_config.py::test_async_contents_manager[AsyncGenericFileCheckpoints]
ERROR jupyter_server/tests/services/contents/test_config.py::test_config_did_something[AsyncGenericFileCheckpoints]
ERROR jupyter_server/tests/services/contents/test_config.py::test_config_did_something[GenericFileCheckpoints]
ERROR jupyter_server/tests/services/contents/test_config.py::test_async_contents_manager[GenericFileCheckpoints]
FAILED jupyter_server/tests/extension/test_app.py::test_browser_open[False-config2] - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED jupyter_server/tests/extension/test_app.py::test_browser_open[True-config5] - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED jupyter_server/tests/extension/test_app.py::test_browser_open[False-config6] - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED jupyter_server/tests/extension/test_app.py::test_browser_open[True-config1] - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED jupyter_server/tests/extension/test_app.py::test_browser_open[True-config0] - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED jupyter_server/tests/extension/test_app.py::test_load_parallel_extensions - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED jupyter_server/tests/extension/test_app.py::test_browser_open[False-config8] - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED jupyter_server/tests/extension/test_app.py::test_browser_open[False-config4] - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED jupyter_server/tests/extension/test_app.py::test_browser_open[True-config3] - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED jupyter_server/tests/extension/test_app.py::test_browser_open[True-config7] - RuntimeError: There is no current event loop in thread 'MainThread'.
FAILED jupyter_server/tests/unix_sockets/test_api.py::test_get_spec - FileNotFoundError: [Errno 2] No such file or directory
============================================== 11 failed, 175 passed, 5 skipped, 2 warnings, 365 errors in 194.67s (0:03:14) ===============================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.
Except that last part everything else cannot find http_server_port
fixture.
It looks like you're missing some test dependencies.
As @mwakaba2 mentioned, the Jupyter Server documentation describes the recommended way to install and run our test suite, using pip install ".[test]"
. If you'd like to install the test dependencies manually, here is a list of dependencies you'll need.
Try installing these dependencies before running the tests. Let us know if you're still having issues.
Just started updating to 1.13.3 and found that most of failing units are now OK (with still the same set of build dependencies) however few units still is problematic. pytest shows as well few warnings (UserWarning, FutureWarning and DeprecationWarning type)
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-server-1.13.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-server-1.13.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra jupyter_server
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3, configfile: pyproject.toml
plugins: cov-3.0.0, console-scripts-1.2.2, mock-3.6.1, tornasync-0.6.0.post2, anyio-3.3.4
collected 581 items
jupyter_server/auth/security.py .. [ 0%]
jupyter_server/tests/test_config_manager.py . [ 0%]
jupyter_server/tests/test_files.py ....... [ 1%]
jupyter_server/tests/test_gateway.py ....... [ 2%]
jupyter_server/tests/test_paths.py ...... [ 3%]
jupyter_server/tests/test_serialize.py .. [ 4%]
jupyter_server/tests/test_serverapp.py ................................... [ 10%]
jupyter_server/tests/test_terminal.py ...... [ 11%]
jupyter_server/tests/test_traittypes.py ........... [ 13%]
jupyter_server/tests/test_utils.py .......... [ 14%]
jupyter_server/tests/test_version.py ........ [ 16%]
jupyter_server/tests/test_view.py .... [ 17%]
jupyter_server/tests/auth/test_login.py ......... [ 18%]
jupyter_server/tests/auth/test_security.py .... [ 19%]
jupyter_server/tests/extension/test_app.py .............. [ 21%]
jupyter_server/tests/extension/test_config.py . [ 21%]
jupyter_server/tests/extension/test_entrypoint.py . [ 22%]
jupyter_server/tests/extension/test_handler.py ..... [ 22%]
jupyter_server/tests/extension/test_launch.py ... [ 23%]
jupyter_server/tests/extension/test_manager.py .......... [ 25%]
jupyter_server/tests/extension/test_serverextension.py ..... [ 25%]
jupyter_server/tests/extension/test_utils.py . [ 26%]
jupyter_server/tests/nbconvert/test_handlers.py FFFFFF [ 27%]
jupyter_server/tests/services/api/test_api.py .. [ 27%]
jupyter_server/tests/services/config/test_api.py ... [ 28%]
jupyter_server/tests/services/contents/test_api.py ................................................................................................................. [ 47%]
......................................................................................................... [ 65%]
jupyter_server/tests/services/contents/test_config.py .... [ 66%]
jupyter_server/tests/services/contents/test_fileio.py ... [ 66%]
jupyter_server/tests/services/contents/test_largefilemanager.py .............. [ 69%]
jupyter_server/tests/services/contents/test_manager.py ................................................................................ [ 82%]
jupyter_server/tests/services/kernels/test_api.py ..................... [ 86%]
jupyter_server/tests/services/kernels/test_config.py .. [ 86%]
jupyter_server/tests/services/kernels/test_cull.py .... [ 87%]
jupyter_server/tests/services/kernelspecs/test_api.py ....... [ 88%]
jupyter_server/tests/services/nbconvert/test_api.py . [ 88%]
jupyter_server/tests/services/sessions/test_api.py ............................................. [ 96%]
jupyter_server/tests/services/sessions/test_manager.py ............ [ 98%]
jupyter_server/tests/unix_sockets/test_api.py .. [ 99%]
jupyter_server/tests/unix_sockets/test_serverapp_integration.py sssss [100%]
================================================================================= FAILURES =================================================================================
______________________________________________________________________________ test_from_file ______________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f7bd8ef7d30>, notebook = None
async def test_from_file(jp_fetch, notebook):
> r = await jp_fetch(
"nbconvert", "html", "foo", "testnb.ipynb", method="GET", params={"download": False}
)
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
jupyter_server/tests/nbconvert/test_handlers.py:54: HTTPClientError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-01-20 12:36:41.685 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG asyncio:selector_events.py:59 Using selector: EpollSelector
DEBUG ServerApp:application.py:174 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file0/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file0/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file0/config
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file0/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file0/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file0/config
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file0/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file0/env/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/home/tkloczko/.local/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file0/config/jupyter_server_config.json
INFO ServerApp:serverapp.py:2581 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-53/test_from_file0/root_dir
INFO ServerApp:serverapp.py:2581 Jupyter Server 1.13.3 is running at:
INFO ServerApp:serverapp.py:2581 http://localhost:32845/a%40b/?token=...
INFO ServerApp:serverapp.py:2581 or http://127.0.0.1:32845/a%40b/?token=...
INFO ServerApp:serverapp.py:2582 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:212 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1789 Uncaught exception GET /a%40b/nbconvert/html/foo/testnb.ipynb?download=False (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:32845', method='GET', uri='/a%40b/nbconvert/html/foo/testnb.ipynb?download=False', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 537, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3/jupyter_server/nbconvert/handlers.py", line 86, in get
exporter = get_exporter(format, config=self.config, log=self.log)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3/jupyter_server/nbconvert/handlers.py", line 67, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 103, in get_exporter
if getattr(exporter(config=config), 'enabled', True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 330, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 114, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 497, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 515, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 577, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 540, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1580, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 977, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 526, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 609, in get_template_names
raise ValueError('No template sub-directory with name %r found in the following paths:\n\t%s' % (base_template, paths))
ValueError: No template sub-directory with name 'lab' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file0/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_file0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_file0/share/jupyter
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
ERROR ServerApp:log.py:54 {
"Authorization": "token 420b3184",
"Connection": "close",
"Host": "127.0.0.1:32845",
"User-Agent": "Tornado/6.1",
"Accept-Encoding": "gzip"
}
ERROR ServerApp:log.py:55 500 GET /a%40b/nbconvert/html/foo/testnb.ipynb?download=False (127.0.0.1) 151.72ms referer=None
____________________________________________________________________________ test_from_file_404 ____________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f7bd657b1f0>, notebook = None
async def test_from_file_404(jp_fetch, notebook):
with pytest.raises(tornado.httpclient.HTTPClientError) as e:
await jp_fetch(
"nbconvert",
"html",
"foo",
"thisdoesntexist.ipynb",
method="GET",
params={"download": False},
)
> assert expected_http_error(e, 404)
E assert False
E + where False = expected_http_error(<ExceptionInfo HTTP 500: Internal Server Error tblen=1>, 404)
jupyter_server/tests/nbconvert/test_handlers.py:82: AssertionError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-01-20 12:36:41.985 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG asyncio:selector_events.py:59 Using selector: EpollSelector
DEBUG ServerApp:application.py:174 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/etc/jupyter'] for config files
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/config
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/config
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/env/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/home/tkloczko/.local/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/config/jupyter_server_config.json
INFO ServerApp:serverapp.py:2581 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/root_dir
INFO ServerApp:serverapp.py:2581 Jupyter Server 1.13.3 is running at:
INFO ServerApp:serverapp.py:2581 http://localhost:36275/a%40b/?token=...
INFO ServerApp:serverapp.py:2581 or http://127.0.0.1:36275/a%40b/?token=...
INFO ServerApp:serverapp.py:2582 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:212 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1789 Uncaught exception GET /a%40b/nbconvert/html/foo/thisdoesntexist.ipynb?download=False (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:36275', method='GET', uri='/a%40b/nbconvert/html/foo/thisdoesntexist.ipynb?download=False', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 537, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3/jupyter_server/nbconvert/handlers.py", line 86, in get
exporter = get_exporter(format, config=self.config, log=self.log)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3/jupyter_server/nbconvert/handlers.py", line 67, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 103, in get_exporter
if getattr(exporter(config=config), 'enabled', True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 330, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 114, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 497, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 515, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 577, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 540, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1580, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 977, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 526, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 609, in get_template_names
raise ValueError('No template sub-directory with name %r found in the following paths:\n\t%s' % (base_template, paths))
ValueError: No template sub-directory with name 'lab' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_4040/share/jupyter
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
ERROR ServerApp:log.py:54 {
"Authorization": "token 032c9d1d",
"Connection": "close",
"Host": "127.0.0.1:36275",
"User-Agent": "Tornado/6.1",
"Accept-Encoding": "gzip"
}
ERROR ServerApp:log.py:55 500 GET /a%40b/nbconvert/html/foo/thisdoesntexist.ipynb?download=False (127.0.0.1) 48.44ms referer=None
_________________________________________________________________________ test_from_file_download __________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f7bd652ba60>, notebook = None
async def test_from_file_download(jp_fetch, notebook):
> r = await jp_fetch(
"nbconvert", "python", "foo", "testnb.ipynb", method="GET", params={"download": True}
)
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
jupyter_server/tests/nbconvert/test_handlers.py:86: HTTPClientError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-01-20 12:36:42.087 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG asyncio:selector_events.py:59 Using selector: EpollSelector
DEBUG ServerApp:application.py:174 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/config
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/config
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/env/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/home/tkloczko/.local/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/config/jupyter_server_config.json
INFO ServerApp:serverapp.py:2581 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/root_dir
INFO ServerApp:serverapp.py:2581 Jupyter Server 1.13.3 is running at:
INFO ServerApp:serverapp.py:2581 http://localhost:35271/a%40b/?token=...
INFO ServerApp:serverapp.py:2581 or http://127.0.0.1:35271/a%40b/?token=...
INFO ServerApp:serverapp.py:2582 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:212 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1789 Uncaught exception GET /a%40b/nbconvert/python/foo/testnb.ipynb?download=True (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:35271', method='GET', uri='/a%40b/nbconvert/python/foo/testnb.ipynb?download=True', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 537, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3/jupyter_server/nbconvert/handlers.py", line 86, in get
exporter = get_exporter(format, config=self.config, log=self.log)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3/jupyter_server/nbconvert/handlers.py", line 67, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 103, in get_exporter
if getattr(exporter(config=config), 'enabled', True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 330, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 114, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 497, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 515, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 577, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 540, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1580, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 977, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 526, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 609, in get_template_names
raise ValueError('No template sub-directory with name %r found in the following paths:\n\t%s' % (base_template, paths))
ValueError: No template sub-directory with name 'python' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_download0/share/jupyter
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
ERROR ServerApp:log.py:54 {
"Authorization": "token deae7321",
"Connection": "close",
"Host": "127.0.0.1:35271",
"User-Agent": "Tornado/6.1",
"Accept-Encoding": "gzip"
}
ERROR ServerApp:log.py:55 500 GET /a%40b/nbconvert/python/foo/testnb.ipynb?download=True (127.0.0.1) 47.57ms referer=None
____________________________________________________________________________ test_from_file_zip ____________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f7bd65381f0>, notebook = None
async def test_from_file_zip(jp_fetch, notebook):
> r = await jp_fetch(
"nbconvert", "latex", "foo", "testnb.ipynb", method="GET", params={"download": True}
)
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
jupyter_server/tests/nbconvert/test_handlers.py:95: HTTPClientError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-01-20 12:36:42.187 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG asyncio:selector_events.py:59 Using selector: EpollSelector
DEBUG ServerApp:application.py:174 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/config
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/config
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/home/tkloczko/.local/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/config/jupyter_server_config.json
INFO ServerApp:serverapp.py:2581 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/root_dir
INFO ServerApp:serverapp.py:2581 Jupyter Server 1.13.3 is running at:
INFO ServerApp:serverapp.py:2581 http://localhost:42513/a%40b/?token=...
INFO ServerApp:serverapp.py:2581 or http://127.0.0.1:42513/a%40b/?token=...
INFO ServerApp:serverapp.py:2582 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:212 Accepting token-authenticated connection from 127.0.0.1
INFO ServerApp:sign.py:399 Writing notebook-signing key to /tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data/notebook_secret
WARNING ServerApp:manager.py:533 Notebook foo/testnb.ipynb is not trusted
DEBUG ServerApp:templateexporter.py:470 Template paths:
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data/nbconvert/templates/latex
/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data/nbconvert/templates/compatibility
/home/tkloczko/.local/share/jupyter
/home/tkloczko/.local/share/jupyter/nbconvert/templates
/home/tkloczko/.local/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/share/jupyter/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/share/jupyter/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data/nbconvert/templates/latex
/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/share/jupyter/nbconvert/templates/latex
DEBUG ServerApp:base.py:45 Applying preprocessor: TagRemovePreprocessor
DEBUG ServerApp:base.py:45 Applying preprocessor: RegexRemovePreprocessor
DEBUG traitlets:coalescestreams.py:26 Applying preprocessor: coalesce_streams
DEBUG ServerApp:base.py:45 Applying preprocessor: SVG2PDFPreprocessor
DEBUG ServerApp:base.py:45 Applying preprocessor: LatexPreprocessor
DEBUG ServerApp:base.py:45 Applying preprocessor: HighlightMagicsPreprocessor
DEBUG ServerApp:base.py:45 Applying preprocessor: ExtractOutputPreprocessor
DEBUG ServerApp:templateexporter.py:358 Attempting to load template index.tex.j2
DEBUG ServerApp:templateexporter.py:359 template_paths: /tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data/nbconvert/templates/latex:/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data/nbconvert/templates/compatibility:/home/tkloczko/.local/share/jupyter:/home/tkloczko/.local/share/jupyter/nbconvert/templates:/home/tkloczko/.local/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/share/jupyter:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/share/jupyter/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/share/jupyter:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/share/jupyter/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/data/nbconvert/templates/latex:/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/env/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-53/test_from_file_zip0/share/jupyter/nbconvert/templates/latex
ERROR ServerApp:handlers.py:125 nbconvert failed: index.tex.j2
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3/jupyter_server/nbconvert/handlers.py", line 122, in get
exporter.from_notebook_node(nb, resources=resource_dict)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/latex.py", line 77, in from_notebook_node
return super().from_notebook_node(nb, resources, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 390, in from_notebook_node
output = self.template.render(nb=nb_copy, resources=resources)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 149, in template
self._template_cached = self._load_template()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 360, in _load_template
return self.environment.get_template(template_file)
File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 997, in get_template
return self._load_template(name, globals)
File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 958, in _load_template
template = self.loader.load(self, name, self.make_globals(globals))
File "/usr/lib/python3.8/site-packages/jinja2/loaders.py", line 566, in load
raise TemplateNotFound(name)
jinja2.exceptions.TemplateNotFound: index.tex.j2
WARNING ServerApp:web.py:1787 500 GET /a%40b/nbconvert/latex/foo/testnb.ipynb?download=True (127.0.0.1): nbconvert failed: index.tex.j2
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
ERROR ServerApp:log.py:54 {
"Authorization": "token 0b006c21",
"Connection": "close",
"Host": "127.0.0.1:42513",
"User-Agent": "Tornado/6.1",
"Accept-Encoding": "gzip"
}
ERROR ServerApp:log.py:55 500 GET /a%40b/nbconvert/latex/foo/testnb.ipynb?download=True (127.0.0.1) 117.93ms referer=None
______________________________________________________________________________ test_from_post ______________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f7bd6538dc0>, notebook = None
async def test_from_post(jp_fetch, notebook):
r = await jp_fetch(
"api/contents/foo/testnb.ipynb",
method="GET",
)
nbmodel = json.loads(r.body.decode())
> r = await jp_fetch("nbconvert", "html", method="POST", body=json.dumps(nbmodel))
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
jupyter_server/tests/nbconvert/test_handlers.py:109: HTTPClientError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-01-20 12:36:42.359 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG asyncio:selector_events.py:59 Using selector: EpollSelector
DEBUG ServerApp:application.py:174 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3', '/tmp/pytest-of-tkloczko/pytest-53/test_from_post0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_post0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_post0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post0/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post0/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post0/config
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post0/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post0/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post0/config
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_post0/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_post0/env/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/home/tkloczko/.local/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_post0/config/jupyter_server_config.json
INFO ServerApp:serverapp.py:2581 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-53/test_from_post0/root_dir
INFO ServerApp:serverapp.py:2581 Jupyter Server 1.13.3 is running at:
INFO ServerApp:serverapp.py:2581 http://localhost:38649/a%40b/?token=...
INFO ServerApp:serverapp.py:2581 or http://127.0.0.1:38649/a%40b/?token=...
INFO ServerApp:serverapp.py:2582 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:212 Accepting token-authenticated connection from 127.0.0.1
INFO ServerApp:sign.py:399 Writing notebook-signing key to /tmp/pytest-of-tkloczko/pytest-53/test_from_post0/data/notebook_secret
WARNING ServerApp:manager.py:533 Notebook foo/testnb.ipynb is not trusted
DEBUG ServerApp:log.py:55 200 GET /a%40b/api/contents/foo/testnb.ipynb (127.0.0.1) 7.92ms
DEBUG ServerApp:login.py:212 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1789 Uncaught exception POST /a%40b/nbconvert/html (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:38649', method='POST', uri='/a%40b/nbconvert/html', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 537, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1702, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 3173, in wrapper
return method(self, *args, **kwargs)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3/jupyter_server/nbconvert/handlers.py", line 150, in post
exporter = get_exporter(format, config=self.config)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3/jupyter_server/nbconvert/handlers.py", line 67, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 103, in get_exporter
if getattr(exporter(config=config), 'enabled', True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 330, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 114, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 497, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 515, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 577, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 540, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1580, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 977, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 526, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 609, in get_template_names
raise ValueError('No template sub-directory with name %r found in the following paths:\n\t%s' % (base_template, paths))
ValueError: No template sub-directory with name 'lab' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-53/test_from_post0/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_post0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_post0/share/jupyter
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
ERROR ServerApp:log.py:54 {
"Authorization": "token ad37e172",
"Connection": "close",
"Host": "127.0.0.1:38649",
"User-Agent": "Tornado/6.1",
"Content-Length": "796",
"Content-Type": "application/x-www-form-urlencoded",
"Accept-Encoding": "gzip"
}
ERROR ServerApp:log.py:55 500 POST /a%40b/nbconvert/html (127.0.0.1) 48.31ms referer=None
____________________________________________________________________________ test_from_post_zip ____________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f7bd638b310>, notebook = None
async def test_from_post_zip(jp_fetch, notebook):
r = await jp_fetch(
"api/contents/foo/testnb.ipynb",
method="GET",
)
nbmodel = json.loads(r.body.decode())
> r = await jp_fetch("nbconvert", "latex", method="POST", body=json.dumps(nbmodel))
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
jupyter_server/tests/nbconvert/test_handlers.py:128: HTTPClientError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-01-20 12:36:42.470 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG asyncio:selector_events.py:59 Using selector: EpollSelector
DEBUG ServerApp:application.py:174 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3', '/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/config
DEBUG ServerApp:application.py:731 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/config
DEBUG ServerApp:application.py:731 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.13.3
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/home/tkloczko/.local/etc/jupyter/jupyter_server_config.json
DEBUG traitlets:config_manager.py:97 Paths used for configuration of jupyter_server_config:
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/config/jupyter_server_config.json
INFO ServerApp:serverapp.py:2581 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/root_dir
INFO ServerApp:serverapp.py:2581 Jupyter Server 1.13.3 is running at:
INFO ServerApp:serverapp.py:2581 http://localhost:44547/a%40b/?token=...
INFO ServerApp:serverapp.py:2581 or http://127.0.0.1:44547/a%40b/?token=...
INFO ServerApp:serverapp.py:2582 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:212 Accepting token-authenticated connection from 127.0.0.1
INFO ServerApp:sign.py:399 Writing notebook-signing key to /tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data/notebook_secret
WARNING ServerApp:manager.py:533 Notebook foo/testnb.ipynb is not trusted
DEBUG ServerApp:log.py:55 200 GET /a%40b/api/contents/foo/testnb.ipynb (127.0.0.1) 7.87ms
DEBUG ServerApp:login.py:212 Accepting token-authenticated connection from 127.0.0.1
DEBUG traitlets:templateexporter.py:470 Template paths:
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data/nbconvert/templates/latex
/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data/nbconvert/templates/compatibility
/home/tkloczko/.local/share/jupyter
/home/tkloczko/.local/share/jupyter/nbconvert/templates
/home/tkloczko/.local/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/share/jupyter/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/share/jupyter
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/share/jupyter/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data/nbconvert/templates/latex
/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/share/jupyter/nbconvert/templates/latex
DEBUG traitlets:base.py:45 Applying preprocessor: TagRemovePreprocessor
DEBUG traitlets:base.py:45 Applying preprocessor: RegexRemovePreprocessor
DEBUG traitlets:coalescestreams.py:26 Applying preprocessor: coalesce_streams
DEBUG traitlets:base.py:45 Applying preprocessor: SVG2PDFPreprocessor
DEBUG traitlets:base.py:45 Applying preprocessor: LatexPreprocessor
DEBUG traitlets:base.py:45 Applying preprocessor: HighlightMagicsPreprocessor
DEBUG traitlets:base.py:45 Applying preprocessor: ExtractOutputPreprocessor
DEBUG traitlets:templateexporter.py:358 Attempting to load template index.tex.j2
DEBUG traitlets:templateexporter.py:359 template_paths: /tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data/nbconvert/templates/latex:/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data/nbconvert/templates/compatibility:/home/tkloczko/.local/share/jupyter:/home/tkloczko/.local/share/jupyter/nbconvert/templates:/home/tkloczko/.local/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/share/jupyter:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/share/jupyter/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/share/jupyter:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/share/jupyter/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/data/nbconvert/templates/latex:/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/env/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-53/test_from_post_zip0/share/jupyter/nbconvert/templates/latex
WARNING ServerApp:web.py:1787 500 POST /a%40b/nbconvert/latex (127.0.0.1): nbconvert failed: index.tex.j2
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
DEBUG ServerApp:handlers.py:253 Using contents: services/contents
ERROR ServerApp:log.py:54 {
"Authorization": "token 8ca9bbbf",
"Connection": "close",
"Host": "127.0.0.1:44547",
"User-Agent": "Tornado/6.1",
"Content-Length": "796",
"Content-Type": "application/x-www-form-urlencoded",
"Accept-Encoding": "gzip"
}
ERROR ServerApp:log.py:55 500 POST /a%40b/nbconvert/latex (127.0.0.1) 106.29ms referer=None
============================================================================= warnings summary =============================================================================
jupyter_server/tests/test_files.py: 3 warnings
jupyter_server/tests/nbconvert/test_handlers.py: 24 warnings
jupyter_server/tests/services/contents/test_api.py: 6 warnings
jupyter_server/tests/services/contents/test_manager.py: 48 warnings
/usr/lib/python3.8/site-packages/nbformat/validator.py:315: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).iter_errors(...) instead.
for error in errors:
jupyter_server/tests/extension/test_serverextension.py::test_merge_config
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:3044: FutureWarning: --jpserver_extensions={'jupyter_server.tests.extension.mockextensions.mockext_py': True} for dict-traits is deprecated in traitlets 5.0. You can pass --jpserver_extensions <key=value> ... multiple times to add items to a dict.
warn(
jupyter_server/tests/nbconvert/test_handlers.py::test_from_file
/usr/lib/python3.8/site-packages/nbconvert/exporters/html.py:110: DeprecationWarning: 'contextfilter' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
def markdown2html(self, context, source):
jupyter_server/tests/services/kernelspecs/test_api.py::test_list_kernelspecs_bad
/usr/lib/python3.8/site-packages/jupyter_client/kernelspec.py:309: UserWarning: Invalid kernelspec directory name (Kernel names can only contain ASCII letters and numbers and these separators: - . _ (hyphen, period, and underscore).): /tmp/pytest-of-tkloczko/pytest-53/test_list_kernelspecs_bad0/data/kernels/sample 2
d = self.find_kernel_specs()
jupyter_server/tests/services/kernelspecs/test_api.py::test_list_kernelspecs
/usr/lib/python3.8/site-packages/jupyter_client/kernelspec.py:309: UserWarning: Invalid kernelspec directory name (Kernel names can only contain ASCII letters and numbers and these separators: - . _ (hyphen, period, and underscore).): /tmp/pytest-of-tkloczko/pytest-53/test_list_kernelspecs0/data/kernels/sample 2
d = self.find_kernel_specs()
-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [5] jupyter_server/conftest.py:29: Skipping this test because it's marked 'integration_test'. Run integration tests using the `--integration_tests` flag.
FAILED jupyter_server/tests/nbconvert/test_handlers.py::test_from_file - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED jupyter_server/tests/nbconvert/test_handlers.py::test_from_file_404 - assert False
FAILED jupyter_server/tests/nbconvert/test_handlers.py::test_from_file_download - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED jupyter_server/tests/nbconvert/test_handlers.py::test_from_file_zip - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED jupyter_server/tests/nbconvert/test_handlers.py::test_from_post - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED jupyter_server/tests/nbconvert/test_handlers.py::test_from_post_zip - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
===================================================== 6 failed, 570 passed, 5 skipped, 85 warnings in 87.66s (0:01:27) =====================================================
Just in case list of installed modules in build env:
Package Version
----------------------------- -------------------
alabaster 0.7.12
anyio 3.3.4
argon2-cffi 21.1.0
attrs 21.4.0
Babel 2.9.1
backcall 0.2.0
bleach 4.1.0
build 0.7.0
cffi 1.15.0
chardet 4.0.0
charset-normalizer 2.0.10
coverage 6.2
cycler 0.11.0
dbus-python 1.2.18
decorator 5.1.1
defusedxml 0.7.1
deprecation 2.0.7
distro 1.6.0
docutils 0.17.1
entrypoints 0.3
extras 1.0.0
fixtures 3.0.0
fonttools 4.28.5
gpg 1.16.0-unknown
html5lib 1.1
idna 3.3
imagesize 1.3.0
importlib-resources 5.4.0
iniconfig 1.1.1
ipykernel 6.7.0
ipython 7.30.1
ipython-genutils 0.2.0
jedi 0.18.1
Jinja2 3.0.3
jsonschema 4.4.0
jupyter-client 7.1.0
jupyter-core 4.9.1
jupyter-packaging 0.11.1
jupyter-packaging-test-foo 0.1
jupyterlab-pygments 0.1.2
kiwisolver 1.3.2
libcomps 0.1.18
lxml 4.7.1
m2r 0.2.1
markdown-it-py 1.1.0
MarkupSafe 2.0.1
matplotlib 3.5.1
matplotlib-inline 0.1.3
mdit-py-plugins 0.3.0
meson 0.61.1
mistune 0.8.4
mock 4.0.3
myst-parser 0.16.1
nbclient 0.5.10
nbconvert 6.1.0
nbformat 5.1.3
nest-asyncio 1.5.4
numpy 1.22.0
olefile 0.46
packaging 21.3
pandocfilters 1.5.0
parso 0.8.3
pbr 5.8.0
pep517 0.12.0
pexpect 4.8.0
pickleshare 0.7.5
Pillow 9.0.0
pip 21.3.1
pluggy 1.0.0
ply 3.11
prometheus-client 0.12.0
prompt-toolkit 3.0.24
ptyprocess 0.7.0
py 1.11.0
pycairo 1.20.1
pycparser 2.21
Pygments 2.11.2
PyGObject 3.42.0
pyparsing 3.0.6
pyrsistent 0.18.0
pytest 6.2.5
pytest-console-scripts 1.2.2
pytest-cov 3.0.0
pytest-mock 3.6.1
pytest-tornasync 0.6.0.post2
python-dateutil 2.8.2
pytz 2021.3
PyYAML 6.0
pyzmq 22.3.0
requests 2.27.1
requests-unixsocket 0.3.0
rpm 4.17.0
Send2Trash 1.8.0
setuptools 60.5.4.post20220117
six 1.16.0
sniffio 1.2.0
snowballstemmer 2.2.0
Sphinx 4.3.2.dev20220106
sphinxcontrib-applehelp 1.0.2.dev20220108
sphinxcontrib-devhelp 1.0.2.dev20220108
sphinxcontrib_github_alt 1.2
sphinxcontrib-htmlhelp 2.0.0
sphinxcontrib-httpdomain 1.8.0
sphinxcontrib-jsmath 1.0.1.dev20220108
sphinxcontrib-openapi 0.7.0
sphinxcontrib-qthelp 1.0.3.dev20220108
sphinxcontrib-serializinghtml 1.1.5
sphinxemoji 0.2.0
terminado 0.12.1
testpath 0.5.0
testtools 2.5.0
toml 0.10.2
tomli 2.0.0
tomlkit 0.8.0
tornado 6.1
traitlets 5.1.1
urllib3 1.26.8
wcwidth 0.2.5
webencodings 0.5.1
websocket-client 1.2.3
wheel 0.37.1
zipp 3.7.0
Just tested 1.17.1 and it looks way better now however still there are few failing units.
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-server-1.17.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-server-1.17.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
==================================================================== test session starts =====================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1, configfile: pyproject.toml, testpaths: tests/
plugins: cov-3.0.0, console-scripts-1.3.1, mock-3.7.0, timeout-2.1.0, tornasync-0.6.0.post2, anyio-3.6.1
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 711 items
tests/test_config_manager.py . [ 0%]
tests/test_files.py ........ [ 1%]
tests/test_gateway.py ....... [ 2%]
tests/test_paths.py ...... [ 3%]
tests/test_serialize.py .. [ 3%]
tests/test_serverapp.py ............................................. [ 9%]
tests/test_terminal.py ........ [ 10%]
tests/test_traittypes.py ........... [ 12%]
tests/test_utils.py .......... [ 13%]
tests/test_version.py ........ [ 14%]
tests/test_view.py .... [ 15%]
tests/auth/test_authorizer.py .............................................................. [ 24%]
tests/auth/test_login.py ......... [ 25%]
tests/auth/test_security.py .... [ 26%]
tests/auth/test_utils.py ............ [ 27%]
tests/extension/test_app.py ............... [ 29%]
tests/extension/test_config.py . [ 29%]
tests/extension/test_entrypoint.py . [ 30%]
tests/extension/test_handler.py ..... [ 30%]
tests/extension/test_launch.py ... [ 31%]
tests/extension/test_manager.py .......... [ 32%]
tests/extension/test_serverextension.py ..... [ 33%]
tests/extension/test_utils.py . [ 33%]
tests/nbconvert/test_handlers.py FFFFFF [ 34%]
tests/services/api/test_api.py .. [ 34%]
tests/services/config/test_api.py ... [ 35%]
tests/services/contents/test_api.py .................................................................................................................. [ 51%]
...................................................................................................................... [ 67%]
tests/services/contents/test_config.py ..... [ 68%]
tests/services/contents/test_fileio.py ... [ 68%]
tests/services/contents/test_largefilemanager.py .............. [ 70%]
tests/services/contents/test_manager.py ............................................................................................ [ 83%]
tests/services/kernels/test_api.py ..................... [ 86%]
tests/services/kernels/test_config.py .. [ 86%]
tests/services/kernels/test_cull.py ... [ 87%]
tests/services/kernelspecs/test_api.py ...... [ 88%]
tests/services/nbconvert/test_api.py . [ 88%]
tests/services/sessions/test_api.py ............................................................ [ 96%]
tests/services/sessions/test_manager.py ................ [ 99%]
tests/unix_sockets/test_api.py .. [ 99%]
tests/unix_sockets/test_serverapp_integration.py sssss [100%]
========================================================================== FAILURES ==========================================================================
_______________________________________________________________________ test_from_file _______________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fd840a32160>, notebook = None
async def test_from_file(jp_fetch, notebook):
> r = await jp_fetch(
"nbconvert",
"html",
"foo",
"testnb.ipynb",
method="GET",
params={"download": False},
)
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
tests/nbconvert/test_handlers.py:49: HTTPClientError
------------------------------------------------------------------- Captured stderr setup --------------------------------------------------------------------
[D 2022-06-15 07:34:18.302 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
--------------------------------------------------------------------- Captured log setup ---------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-66/test_from_file0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.17.1 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:42107/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:42107/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
--------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1789 Uncaught exception GET /a%40b/nbconvert/html/foo/testnb.ipynb?download=False (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:42107', method='GET', uri='/a%40b/nbconvert/html/foo/testnb.ipynb?download=False', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 645, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1/jupyter_server/nbconvert/handlers.py", line 96, in get
exporter = get_exporter(format, config=self.config, log=self.log)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1/jupyter_server/nbconvert/handlers.py", line 75, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 101, in get_exporter
if getattr(exporter(config=config), "enabled", True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 341, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 117, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 507, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 525, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 686, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 648, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1752, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1132, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 536, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 620, in get_template_names
raise ValueError(
ValueError: No template sub-directory with name 'lab' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-66/test_from_file0/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-66/test_from_file0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-66/test_from_file0/share/jupyter
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:42107",
"User-Agent": "Tornado/6.1"
}
ERROR ServerApp:log.py:59 500 GET /a%40b/nbconvert/html/foo/testnb.ipynb?download=False (127.0.0.1) 35.55ms referer=None
------------------------------------------------------------------- Captured log teardown --------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
_____________________________________________________________________ test_from_file_404 _____________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fd840969e50>, notebook = None
async def test_from_file_404(jp_fetch, notebook):
with pytest.raises(HTTPClientError) as e:
await jp_fetch(
"nbconvert",
"html",
"foo",
"thisdoesntexist.ipynb",
method="GET",
params={"download": False},
)
> assert expected_http_error(e, 404)
E assert False
E + where False = expected_http_error(<ExceptionInfo HTTP 500: Internal Server Error tblen=1>, 404)
tests/nbconvert/test_handlers.py:87: AssertionError
------------------------------------------------------------------- Captured stderr setup --------------------------------------------------------------------
[D 2022-06-15 07:34:18.469 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
--------------------------------------------------------------------- Captured log setup ---------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.17.1 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:36251/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:36251/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
--------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1789 Uncaught exception GET /a%40b/nbconvert/html/foo/thisdoesntexist.ipynb?download=False (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:36251', method='GET', uri='/a%40b/nbconvert/html/foo/thisdoesntexist.ipynb?download=False', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 645, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1/jupyter_server/nbconvert/handlers.py", line 96, in get
exporter = get_exporter(format, config=self.config, log=self.log)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1/jupyter_server/nbconvert/handlers.py", line 75, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 101, in get_exporter
if getattr(exporter(config=config), "enabled", True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 341, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 117, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 507, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 525, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 686, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 648, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1752, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1132, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 536, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 620, in get_template_names
raise ValueError(
ValueError: No template sub-directory with name 'lab' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_4040/share/jupyter
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:36251",
"User-Agent": "Tornado/6.1"
}
ERROR ServerApp:log.py:59 500 GET /a%40b/nbconvert/html/foo/thisdoesntexist.ipynb?download=False (127.0.0.1) 32.20ms referer=None
------------------------------------------------------------------- Captured log teardown --------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
__________________________________________________________________ test_from_file_download ___________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fd840971b80>, notebook = None
async def test_from_file_download(jp_fetch, notebook):
> r = await jp_fetch(
"nbconvert",
"python",
"foo",
"testnb.ipynb",
method="GET",
params={"download": True},
)
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
tests/nbconvert/test_handlers.py:91: HTTPClientError
------------------------------------------------------------------- Captured stderr setup --------------------------------------------------------------------
[D 2022-06-15 07:34:18.538 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
--------------------------------------------------------------------- Captured log setup ---------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.17.1 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:44589/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:44589/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
--------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1789 Uncaught exception GET /a%40b/nbconvert/python/foo/testnb.ipynb?download=True (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:44589', method='GET', uri='/a%40b/nbconvert/python/foo/testnb.ipynb?download=True', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 645, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1/jupyter_server/nbconvert/handlers.py", line 96, in get
exporter = get_exporter(format, config=self.config, log=self.log)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1/jupyter_server/nbconvert/handlers.py", line 75, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 101, in get_exporter
if getattr(exporter(config=config), "enabled", True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 341, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 117, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 507, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 525, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 686, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 648, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1752, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1132, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 536, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 620, in get_template_names
raise ValueError(
ValueError: No template sub-directory with name 'python' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_download0/share/jupyter
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:44589",
"User-Agent": "Tornado/6.1"
}
ERROR ServerApp:log.py:59 500 GET /a%40b/nbconvert/python/foo/testnb.ipynb?download=True (127.0.0.1) 32.22ms referer=None
------------------------------------------------------------------- Captured log teardown --------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
_____________________________________________________________________ test_from_file_zip _____________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fd840b5c040>, notebook = None
async def test_from_file_zip(jp_fetch, notebook):
> r = await jp_fetch(
"nbconvert",
"latex",
"foo",
"testnb.ipynb",
method="GET",
params={"download": True},
)
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
tests/nbconvert/test_handlers.py:105: HTTPClientError
------------------------------------------------------------------- Captured stderr setup --------------------------------------------------------------------
[D 2022-06-15 07:34:18.606 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
--------------------------------------------------------------------- Captured log setup ---------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.17.1 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:40031/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:40031/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
--------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
INFO ServerApp:sign.py:412 Writing notebook-signing key to /tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/data/notebook_secret
WARNING ServerApp:manager.py:669 Notebook foo/testnb.ipynb is not trusted
DEBUG ServerApp:templateexporter.py:480 Template paths:
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/data/nbconvert/templates/latex
/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/data
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/data/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/data/nbconvert/templates/compatibility
/home/tkloczko/.local/share/jupyter
/home/tkloczko/.local/share/jupyter/nbconvert/templates
/home/tkloczko/.local/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/env/share/jupyter/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/env/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/share/jupyter
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/share/jupyter/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-66/test_authorized_requests_True_15/data/nbconvert/templates
/home/tkloczko/.local/share/jupyter/nbconvert/templates
DEBUG ServerApp:base.py:46 Applying preprocessor: TagRemovePreprocessor
DEBUG ServerApp:base.py:46 Applying preprocessor: RegexRemovePreprocessor
DEBUG ServerApp:base.py:46 Applying preprocessor: SVG2PDFPreprocessor
DEBUG ServerApp:base.py:46 Applying preprocessor: LatexPreprocessor
DEBUG ServerApp:base.py:46 Applying preprocessor: HighlightMagicsPreprocessor
DEBUG ServerApp:base.py:46 Applying preprocessor: ExtractOutputPreprocessor
DEBUG ServerApp:templateexporter.py:368 Attempting to load template index.tex.j2
DEBUG ServerApp:templateexporter.py:369 template_paths: /tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/data/nbconvert/templates/latex:/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/data:/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/data/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/data/nbconvert/templates/compatibility:/home/tkloczko/.local/share/jupyter:/home/tkloczko/.local/share/jupyter/nbconvert/templates:/home/tkloczko/.local/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/env/share/jupyter:/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/env/share/jupyter/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/env/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/share/jupyter:/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/share/jupyter/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-66/test_from_file_zip0/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-66/test_authorized_requests_True_15/data/nbconvert/templates:/home/tkloczko/.local/share/jupyter/nbconvert/templates
ERROR ServerApp:handlers.py:135 nbconvert failed: index.tex.j2
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1/jupyter_server/nbconvert/handlers.py", line 131, in get
output, resources = await run_sync(
File "/usr/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1/jupyter_server/nbconvert/handlers.py", line 132, in <lambda>
lambda: exporter.from_notebook_node(nb, resources=resource_dict)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/latex.py", line 74, in from_notebook_node
return super().from_notebook_node(nb, resources, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 400, in from_notebook_node
output = self.template.render(nb=nb_copy, resources=resources)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 156, in template
self._template_cached = self._load_template()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 370, in _load_template
return self.environment.get_template(template_file)
File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 1000, in get_template
return self._load_template(name, globals)
File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 959, in _load_template
template = self.loader.load(self, name, self.make_globals(globals))
File "/usr/lib/python3.8/site-packages/jinja2/loaders.py", line 575, in load
raise TemplateNotFound(name)
jinja2.exceptions.TemplateNotFound: index.tex.j2
WARNING ServerApp:web.py:1787 500 GET /a%40b/nbconvert/latex/foo/testnb.ipynb?download=True (127.0.0.1): nbconvert failed: index.tex.j2
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:40031",
"User-Agent": "Tornado/6.1"
}
ERROR ServerApp:log.py:59 500 GET /a%40b/nbconvert/latex/foo/testnb.ipynb?download=True (127.0.0.1) 264.06ms referer=None
------------------------------------------------------------------- Captured log teardown --------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
_______________________________________________________________________ test_from_post _______________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fd840920160>, notebook = None
async def test_from_post(jp_fetch, notebook):
r = await jp_fetch(
"api/contents/foo/testnb.ipynb",
method="GET",
)
nbmodel = json.loads(r.body.decode())
> r = await jp_fetch("nbconvert", "html", method="POST", body=json.dumps(nbmodel))
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
tests/nbconvert/test_handlers.py:124: HTTPClientError
------------------------------------------------------------------- Captured stderr setup --------------------------------------------------------------------
[D 2022-06-15 07:34:18.909 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
--------------------------------------------------------------------- Captured log setup ---------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1', '/tmp/pytest-of-tkloczko/pytest-66/test_from_post0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_post0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_post0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-66/test_from_post0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.17.1 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:42293/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:42293/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
--------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
INFO ServerApp:sign.py:412 Writing notebook-signing key to /tmp/pytest-of-tkloczko/pytest-66/test_from_post0/data/notebook_secret
WARNING ServerApp:manager.py:669 Notebook foo/testnb.ipynb is not trusted
DEBUG ServerApp:log.py:59 200 GET /a%40b/api/contents/foo/testnb.ipynb (127.0.0.1) 3.25ms
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1789 Uncaught exception POST /a%40b/nbconvert/html (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:42293', method='POST', uri='/a%40b/nbconvert/html', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 645, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1/jupyter_server/nbconvert/handlers.py", line 162, in post
exporter = get_exporter(format, config=self.config)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1/jupyter_server/nbconvert/handlers.py", line 75, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 101, in get_exporter
if getattr(exporter(config=config), "enabled", True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 341, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 117, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 507, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 525, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 686, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 648, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1752, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1132, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 536, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 620, in get_template_names
raise ValueError(
ValueError: No template sub-directory with name 'lab' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-66/test_from_post0/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-66/test_from_post0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-66/test_from_post0/share/jupyter
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:42293",
"User-Agent": "Tornado/6.1"
}
ERROR ServerApp:log.py:59 500 POST /a%40b/nbconvert/html (127.0.0.1) 32.14ms referer=None
------------------------------------------------------------------- Captured log teardown --------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
_____________________________________________________________________ test_from_post_zip _____________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7fd840a6d940>, notebook = None
async def test_from_post_zip(jp_fetch, notebook):
r = await jp_fetch(
"api/contents/foo/testnb.ipynb",
method="GET",
)
nbmodel = json.loads(r.body.decode())
> r = await jp_fetch("nbconvert", "latex", method="POST", body=json.dumps(nbmodel))
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
tests/nbconvert/test_handlers.py:143: HTTPClientError
------------------------------------------------------------------- Captured stderr setup --------------------------------------------------------------------
[D 2022-06-15 07:34:18.983 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
--------------------------------------------------------------------- Captured log setup ---------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1', '/tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.17.1
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.17.1 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:43509/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:43509/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
--------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
INFO ServerApp:sign.py:412 Writing notebook-signing key to /tmp/pytest-of-tkloczko/pytest-66/test_from_post_zip0/data/notebook_secret
WARNING ServerApp:manager.py:669 Notebook foo/testnb.ipynb is not trusted
DEBUG ServerApp:log.py:59 200 GET /a%40b/api/contents/foo/testnb.ipynb (127.0.0.1) 2.91ms
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
WARNING ServerApp:web.py:1787 500 POST /a%40b/nbconvert/latex (127.0.0.1): nbconvert failed: index.tex.j2
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:43509",
"User-Agent": "Tornado/6.1"
}
ERROR ServerApp:log.py:59 500 POST /a%40b/nbconvert/latex (127.0.0.1) 244.66ms referer=None
------------------------------------------------------------------- Captured log teardown --------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
==================================================================== slowest 10 durations ====================================================================
12.14s call tests/test_terminal.py::test_culling
7.31s call tests/services/kernels/test_cull.py::test_cull_idle[jp_server_config1]
7.31s call tests/services/kernels/test_cull.py::test_cull_idle[jp_server_config0]
5.22s call tests/test_terminal.py::test_terminal_create_with_cwd
5.17s call tests/test_terminal.py::test_terminal_create_with_relative_cwd
5.17s call tests/test_terminal.py::test_terminal_create_with_bad_cwd
3.11s call tests/services/sessions/test_manager.py::test_pending_kernel
1.47s call tests/auth/test_authorizer.py::test_authorized_requests[True-GET-/api/kernels-None]
1.36s call tests/auth/test_authorizer.py::test_authorized_requests[True-POST-/api/kernels/{kernel_id}/restart-None]
1.33s call tests/auth/test_authorizer.py::test_authorized_requests[True-DELETE-/api/kernels/{kernel_id}-None]
================================================================== short test summary info ===================================================================
SKIPPED [5] tests/conftest.py:36: Skipping this test because it's marked 'integration_test'. Run integration tests using the `--integration_tests` flag.
FAILED tests/nbconvert/test_handlers.py::test_from_file - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED tests/nbconvert/test_handlers.py::test_from_file_404 - assert False
FAILED tests/nbconvert/test_handlers.py::test_from_file_download - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED tests/nbconvert/test_handlers.py::test_from_file_zip - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED tests/nbconvert/test_handlers.py::test_from_post - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED tests/nbconvert/test_handlers.py::test_from_post_zip - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
==================================================== 6 failed, 700 passed, 5 skipped in 138.69s (0:02:18) ====================================================
Just FTR 1.21.0 still fails
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-server-1.21.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-server-1.21.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.14, pytest-7.1.3, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0, configfile: pyproject.toml, testpaths: tests/
plugins: cov-3.0.0, console-scripts-1.3.1, mock-3.10.0, timeout-2.1.0, tornasync-0.6.0.post2, anyio-3.6.1
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 721 items
tests/test_config_manager.py . [ 0%]
tests/test_files.py ........ [ 1%]
tests/test_gateway.py ................. [ 3%]
tests/test_paths.py ...... [ 4%]
tests/test_serialize.py .. [ 4%]
tests/test_serverapp.py ............................................. [ 10%]
tests/test_terminal.py ........ [ 12%]
tests/test_traittypes.py ........... [ 13%]
tests/test_utils.py .......... [ 14%]
tests/test_version.py ........ [ 16%]
tests/test_view.py .... [ 16%]
tests/auth/test_authorizer.py .............................................................. [ 25%]
tests/auth/test_login.py ......... [ 26%]
tests/auth/test_security.py .... [ 27%]
tests/auth/test_utils.py ............ [ 28%]
tests/extension/test_app.py ............... [ 30%]
tests/extension/test_config.py . [ 30%]
tests/extension/test_entrypoint.py . [ 31%]
tests/extension/test_handler.py ..... [ 31%]
tests/extension/test_launch.py ... [ 32%]
tests/extension/test_manager.py .......... [ 33%]
tests/extension/test_serverextension.py ..... [ 34%]
tests/extension/test_utils.py . [ 34%]
tests/nbconvert/test_handlers.py FFFFFF [ 35%]
tests/services/api/test_api.py .. [ 35%]
tests/services/config/test_api.py ... [ 35%]
tests/services/contents/test_api.py ................................................................................................................................ [ 53%]
........................................................................................................ [ 68%]
tests/services/contents/test_config.py ..... [ 68%]
tests/services/contents/test_fileio.py ... [ 69%]
tests/services/contents/test_largefilemanager.py .............. [ 71%]
tests/services/contents/test_manager.py ............................................................................................ [ 83%]
tests/services/kernels/test_api.py ..................... [ 86%]
tests/services/kernels/test_config.py .. [ 87%]
tests/services/kernels/test_cull.py ... [ 87%]
tests/services/kernelspecs/test_api.py ...... [ 88%]
tests/services/nbconvert/test_api.py . [ 88%]
tests/services/sessions/test_api.py ............................................................ [ 96%]
tests/services/sessions/test_manager.py ................ [ 99%]
tests/unix_sockets/test_api.py .. [ 99%]
tests/unix_sockets/test_serverapp_integration.py sssss [100%]
================================================================================= FAILURES =================================================================================
______________________________________________________________________________ test_from_file ______________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f71c8e4fb80>, notebook = None
async def test_from_file(jp_fetch, notebook):
> r = await jp_fetch(
"nbconvert",
"html",
"foo",
"testnb.ipynb",
method="GET",
params={"download": False},
)
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
tests/nbconvert/test_handlers.py:49: HTTPClientError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-10-12 08:48:45.763 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-11/test_from_file0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.21.0 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:33047/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:33047/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1798 Uncaught exception GET /a%40b/nbconvert/html/foo/testnb.ipynb?download=False (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:33047', method='GET', uri='/a%40b/nbconvert/html/foo/testnb.ipynb?download=False', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 645, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1713, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0/jupyter_server/nbconvert/handlers.py", line 96, in get
exporter = get_exporter(format, config=self.config, log=self.log)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0/jupyter_server/nbconvert/handlers.py", line 75, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 106, in get_exporter
if getattr(exporter(config=config), "enabled", True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 342, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 118, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 508, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 526, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 686, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 648, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1752, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1132, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 537, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 621, in get_template_names
raise ValueError(
ValueError: No template sub-directory with name 'lab' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-11/test_from_file0/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-11/test_from_file0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-11/test_from_file0/share/jupyter
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:33047",
"User-Agent": "Tornado/6.2"
}
ERROR ServerApp:log.py:59 500 GET /a%40b/nbconvert/html/foo/testnb.ipynb?download=False (127.0.0.1) 26.25ms referer=None
-------------------------------------------------------------------------- Captured log teardown ---------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
____________________________________________________________________________ test_from_file_404 ____________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f71c8aadc10>, notebook = None
async def test_from_file_404(jp_fetch, notebook):
with pytest.raises(HTTPClientError) as e:
await jp_fetch(
"nbconvert",
"html",
"foo",
"thisdoesntexist.ipynb",
method="GET",
params={"download": False},
)
> assert expected_http_error(e, 404)
E assert False
E + where False = expected_http_error(<ExceptionInfo HTTP 500: Internal Server Error tblen=1>, 404)
tests/nbconvert/test_handlers.py:87: AssertionError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-10-12 08:48:45.923 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.21.0 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:37627/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:37627/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1798 Uncaught exception GET /a%40b/nbconvert/html/foo/thisdoesntexist.ipynb?download=False (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:37627', method='GET', uri='/a%40b/nbconvert/html/foo/thisdoesntexist.ipynb?download=False', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 645, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1713, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0/jupyter_server/nbconvert/handlers.py", line 96, in get
exporter = get_exporter(format, config=self.config, log=self.log)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0/jupyter_server/nbconvert/handlers.py", line 75, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 106, in get_exporter
if getattr(exporter(config=config), "enabled", True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 342, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 118, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 508, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 526, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 686, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 648, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1752, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1132, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 537, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 621, in get_template_names
raise ValueError(
ValueError: No template sub-directory with name 'lab' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_4040/share/jupyter
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:37627",
"User-Agent": "Tornado/6.2"
}
ERROR ServerApp:log.py:59 500 GET /a%40b/nbconvert/html/foo/thisdoesntexist.ipynb?download=False (127.0.0.1) 23.40ms referer=None
-------------------------------------------------------------------------- Captured log teardown ---------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
_________________________________________________________________________ test_from_file_download __________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f71c8e27e50>, notebook = None
async def test_from_file_download(jp_fetch, notebook):
> r = await jp_fetch(
"nbconvert",
"python",
"foo",
"testnb.ipynb",
method="GET",
params={"download": True},
)
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
tests/nbconvert/test_handlers.py:91: HTTPClientError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-10-12 08:48:45.985 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.21.0 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:43497/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:43497/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1798 Uncaught exception GET /a%40b/nbconvert/python/foo/testnb.ipynb?download=True (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:43497', method='GET', uri='/a%40b/nbconvert/python/foo/testnb.ipynb?download=True', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 645, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1713, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0/jupyter_server/nbconvert/handlers.py", line 96, in get
exporter = get_exporter(format, config=self.config, log=self.log)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0/jupyter_server/nbconvert/handlers.py", line 75, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 106, in get_exporter
if getattr(exporter(config=config), "enabled", True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 342, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 118, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 508, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 526, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 686, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 648, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1752, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1132, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 537, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 621, in get_template_names
raise ValueError(
ValueError: No template sub-directory with name 'python' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_download0/share/jupyter
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:43497",
"User-Agent": "Tornado/6.2"
}
ERROR ServerApp:log.py:59 500 GET /a%40b/nbconvert/python/foo/testnb.ipynb?download=True (127.0.0.1) 23.23ms referer=None
-------------------------------------------------------------------------- Captured log teardown ---------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
____________________________________________________________________________ test_from_file_zip ____________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f71c8bd1700>, notebook = None
async def test_from_file_zip(jp_fetch, notebook):
> r = await jp_fetch(
"nbconvert",
"latex",
"foo",
"testnb.ipynb",
method="GET",
params={"download": True},
)
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
tests/nbconvert/test_handlers.py:105: HTTPClientError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-10-12 08:48:46.046 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.21.0 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:33733/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:33733/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
INFO ServerApp:sign.py:412 Writing notebook-signing key to /tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/data/notebook_secret
WARNING ServerApp:manager.py:669 Notebook foo/testnb.ipynb is not trusted
DEBUG ServerApp:templateexporter.py:481 Template paths:
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/data/nbconvert/templates/latex
/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/data
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/data/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/data/nbconvert/templates/compatibility
/home/tkloczko/.local/share/jupyter
/home/tkloczko/.local/share/jupyter/nbconvert/templates
/home/tkloczko/.local/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/env/share/jupyter/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/env/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/share/jupyter
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/share/jupyter/nbconvert/templates
/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/share/jupyter/nbconvert/templates/compatibility
/tmp/pytest-of-tkloczko/pytest-11/test_authorized_requests_True_15/data/nbconvert/templates
/home/tkloczko/.local/share/jupyter/nbconvert/templates
DEBUG ServerApp:base.py:46 Applying preprocessor: TagRemovePreprocessor
DEBUG ServerApp:base.py:46 Applying preprocessor: RegexRemovePreprocessor
DEBUG ServerApp:base.py:46 Applying preprocessor: SVG2PDFPreprocessor
DEBUG ServerApp:base.py:46 Applying preprocessor: LatexPreprocessor
DEBUG ServerApp:base.py:46 Applying preprocessor: HighlightMagicsPreprocessor
DEBUG ServerApp:base.py:46 Applying preprocessor: ExtractOutputPreprocessor
DEBUG ServerApp:templateexporter.py:369 Attempting to load template index.tex.j2
DEBUG ServerApp:templateexporter.py:370 template_paths: /tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/data/nbconvert/templates/latex:/home/tkloczko/.local/share/jupyter/nbconvert/templates/latex:/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/data:/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/data/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/data/nbconvert/templates/compatibility:/home/tkloczko/.local/share/jupyter:/home/tkloczko/.local/share/jupyter/nbconvert/templates:/home/tkloczko/.local/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/env/share/jupyter:/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/env/share/jupyter/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/env/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/share/jupyter:/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/share/jupyter/nbconvert/templates:/tmp/pytest-of-tkloczko/pytest-11/test_from_file_zip0/share/jupyter/nbconvert/templates/compatibility:/tmp/pytest-of-tkloczko/pytest-11/test_authorized_requests_True_15/data/nbconvert/templates:/home/tkloczko/.local/share/jupyter/nbconvert/templates
ERROR ServerApp:handlers.py:135 nbconvert failed: index.tex.j2
Traceback (most recent call last):
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0/jupyter_server/nbconvert/handlers.py", line 131, in get
output, resources = await run_sync(
File "/usr/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0/jupyter_server/nbconvert/handlers.py", line 132, in <lambda>
lambda: exporter.from_notebook_node(nb, resources=resource_dict)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/latex.py", line 74, in from_notebook_node
return super().from_notebook_node(nb, resources, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 401, in from_notebook_node
output = self.template.render(nb=nb_copy, resources=resources)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 157, in template
self._template_cached = self._load_template()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 371, in _load_template
return self.environment.get_template(template_file)
File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 1000, in get_template
return self._load_template(name, globals)
File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 959, in _load_template
template = self.loader.load(self, name, self.make_globals(globals))
File "/usr/lib/python3.8/site-packages/jinja2/loaders.py", line 575, in load
raise TemplateNotFound(name)
jinja2.exceptions.TemplateNotFound: index.tex.j2
WARNING ServerApp:web.py:1796 500 GET /a%40b/nbconvert/latex/foo/testnb.ipynb?download=True (127.0.0.1): nbconvert failed: index.tex.j2
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:33733",
"User-Agent": "Tornado/6.2"
}
ERROR ServerApp:log.py:59 500 GET /a%40b/nbconvert/latex/foo/testnb.ipynb?download=True (127.0.0.1) 58.48ms referer=None
-------------------------------------------------------------------------- Captured log teardown ---------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
______________________________________________________________________________ test_from_post ______________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f71c8acb430>, notebook = None
async def test_from_post(jp_fetch, notebook):
r = await jp_fetch(
"api/contents/foo/testnb.ipynb",
method="GET",
)
nbmodel = json.loads(r.body.decode())
> r = await jp_fetch("nbconvert", "html", method="POST", body=json.dumps(nbmodel))
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
tests/nbconvert/test_handlers.py:124: HTTPClientError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-10-12 08:48:46.142 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0', '/tmp/pytest-of-tkloczko/pytest-11/test_from_post0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_post0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_post0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-11/test_from_post0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.21.0 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:44317/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:44317/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
INFO ServerApp:sign.py:412 Writing notebook-signing key to /tmp/pytest-of-tkloczko/pytest-11/test_from_post0/data/notebook_secret
WARNING ServerApp:manager.py:669 Notebook foo/testnb.ipynb is not trusted
DEBUG ServerApp:log.py:59 200 GET /a%40b/api/contents/foo/testnb.ipynb (127.0.0.1) 2.98ms
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
ERROR ServerApp:web.py:1798 Uncaught exception POST /a%40b/nbconvert/html (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:44317', method='POST', uri='/a%40b/nbconvert/html', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 645, in get
value = obj._trait_values[self.name]
KeyError: 'template_paths'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1713, in _execute
result = await result
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0/jupyter_server/nbconvert/handlers.py", line 162, in post
exporter = get_exporter(format, config=self.config)
File "/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0/jupyter_server/nbconvert/handlers.py", line 75, in get_exporter
Exporter = get_exporter(format)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 106, in get_exporter
if getattr(exporter(config=config), "enabled", True):
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 342, in __init__
super().__init__(config=config, **kw)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 118, in __init__
self._init_preprocessors()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 508, in _init_preprocessors
conf = self._get_conf()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 526, in _get_conf
for path in map(Path, self.template_paths):
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 686, in __get__
return self.get(obj, cls)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 648, in get
default = obj.trait_defaults(self.name)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1752, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1132, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 537, in _template_paths
template_names = self.get_template_names()
File "/usr/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 621, in get_template_names
raise ValueError(
ValueError: No template sub-directory with name 'lab' found in the following paths:
/tmp/pytest-of-tkloczko/pytest-11/test_from_post0/data
/home/tkloczko/.local/share/jupyter
/tmp/pytest-of-tkloczko/pytest-11/test_from_post0/env/share/jupyter
/tmp/pytest-of-tkloczko/pytest-11/test_from_post0/share/jupyter
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:44317",
"User-Agent": "Tornado/6.2"
}
ERROR ServerApp:log.py:59 500 POST /a%40b/nbconvert/html (127.0.0.1) 24.88ms referer=None
-------------------------------------------------------------------------- Captured log teardown ---------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
____________________________________________________________________________ test_from_post_zip ____________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f71c8d85dc0>, notebook = None
async def test_from_post_zip(jp_fetch, notebook):
r = await jp_fetch(
"api/contents/foo/testnb.ipynb",
method="GET",
)
nbmodel = json.loads(r.body.decode())
> r = await jp_fetch("nbconvert", "latex", method="POST", body=json.dumps(nbmodel))
E tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
tests/nbconvert/test_handlers.py:143: HTTPClientError
-------------------------------------------------------------------------- Captured stderr setup ---------------------------------------------------------------------------
[D 2022-10-12 08:48:46.209 ServerApp] Config changed: {'NotebookNotary': {'db_file': ':memory:'}}
---------------------------------------------------------------------------- Captured log setup ----------------------------------------------------------------------------
DEBUG ServerApp:application.py:183 Searching ['/home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0', '/tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/env/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/config
DEBUG ServerApp:application.py:837 Looking for jupyter_server_config in /home/tkloczko/rpmbuild/BUILD/jupyter_server-1.21.0
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.21.0 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:38827/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:38827/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
INFO ServerApp:sign.py:412 Writing notebook-signing key to /tmp/pytest-of-tkloczko/pytest-11/test_from_post_zip0/data/notebook_secret
WARNING ServerApp:manager.py:669 Notebook foo/testnb.ipynb is not trusted
DEBUG ServerApp:log.py:59 200 GET /a%40b/api/contents/foo/testnb.ipynb (127.0.0.1) 3.07ms
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
WARNING ServerApp:web.py:1796 500 POST /a%40b/nbconvert/latex (127.0.0.1): nbconvert failed: index.tex.j2
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
DEBUG ServerApp:handlers.py:273 Using contents: services/contents
ERROR ServerApp:log.py:58 {
"Host": "127.0.0.1:38827",
"User-Agent": "Tornado/6.2"
}
ERROR ServerApp:log.py:59 500 POST /a%40b/nbconvert/latex (127.0.0.1) 49.41ms referer=None
-------------------------------------------------------------------------- Captured log teardown ---------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
============================================================================= warnings summary =============================================================================
tests/test_config_manager.py: 1 warning
tests/test_files.py: 8 warnings
tests/test_gateway.py: 17 warnings
tests/test_paths.py: 6 warnings
tests/test_serialize.py: 2 warnings
tests/test_serverapp.py: 45 warnings
tests/test_terminal.py: 8 warnings
tests/test_traittypes.py: 11 warnings
tests/test_utils.py: 10 warnings
tests/test_version.py: 8 warnings
tests/test_view.py: 4 warnings
tests/auth/test_authorizer.py: 62 warnings
tests/auth/test_login.py: 9 warnings
tests/auth/test_security.py: 4 warnings
tests/auth/test_utils.py: 12 warnings
tests/extension/test_app.py: 15 warnings
tests/extension/test_config.py: 1 warning
tests/extension/test_entrypoint.py: 1 warning
tests/extension/test_handler.py: 5 warnings
tests/extension/test_launch.py: 3 warnings
tests/extension/test_manager.py: 10 warnings
tests/extension/test_serverextension.py: 5 warnings
tests/extension/test_utils.py: 1 warning
tests/nbconvert/test_handlers.py: 6 warnings
tests/services/api/test_api.py: 2 warnings
tests/services/config/test_api.py: 3 warnings
tests/services/contents/test_api.py: 232 warnings
tests/services/contents/test_config.py: 5 warnings
tests/services/contents/test_fileio.py: 3 warnings
tests/services/contents/test_largefilemanager.py: 14 warnings
tests/services/contents/test_manager.py: 92 warnings
tests/services/kernels/test_api.py: 21 warnings
tests/services/kernels/test_config.py: 2 warnings
tests/services/kernels/test_cull.py: 3 warnings
tests/services/kernelspecs/test_api.py: 6 warnings
tests/services/nbconvert/test_api.py: 1 warning
tests/services/sessions/test_api.py: 60 warnings
tests/services/sessions/test_manager.py: 16 warnings
tests/unix_sockets/test_api.py: 2 warnings
/usr/lib64/python3.8/site-packages/tornado/ioloop.py:350: DeprecationWarning: make_current is deprecated; start the event loop first
self.make_current()
tests/test_config_manager.py: 1 warning
tests/test_files.py: 8 warnings
tests/test_gateway.py: 17 warnings
tests/test_paths.py: 6 warnings
tests/test_serialize.py: 2 warnings
tests/test_serverapp.py: 45 warnings
tests/test_terminal.py: 8 warnings
tests/test_traittypes.py: 11 warnings
tests/test_utils.py: 10 warnings
tests/test_version.py: 8 warnings
tests/test_view.py: 4 warnings
tests/auth/test_authorizer.py: 62 warnings
tests/auth/test_login.py: 9 warnings
tests/auth/test_security.py: 4 warnings
tests/auth/test_utils.py: 12 warnings
tests/extension/test_app.py: 15 warnings
tests/extension/test_config.py: 1 warning
tests/extension/test_entrypoint.py: 1 warning
tests/extension/test_handler.py: 5 warnings
tests/extension/test_launch.py: 3 warnings
tests/extension/test_manager.py: 10 warnings
tests/extension/test_serverextension.py: 5 warnings
tests/extension/test_utils.py: 1 warning
tests/nbconvert/test_handlers.py: 6 warnings
tests/services/api/test_api.py: 2 warnings
tests/services/config/test_api.py: 3 warnings
tests/services/contents/test_api.py: 232 warnings
tests/services/contents/test_config.py: 5 warnings
tests/services/contents/test_fileio.py: 3 warnings
tests/services/contents/test_largefilemanager.py: 14 warnings
tests/services/contents/test_manager.py: 92 warnings
tests/services/kernels/test_api.py: 21 warnings
tests/services/kernels/test_config.py: 2 warnings
tests/services/kernels/test_cull.py: 3 warnings
tests/services/kernelspecs/test_api.py: 6 warnings
tests/services/nbconvert/test_api.py: 1 warning
tests/services/sessions/test_api.py: 60 warnings
tests/services/sessions/test_manager.py: 16 warnings
tests/unix_sockets/test_api.py: 2 warnings
/usr/lib/python3.8/site-packages/pytest_tornasync/plugin.py:65: DeprecationWarning: make_current is deprecated; start the event loop first
loop.make_current()
tests/test_config_manager.py: 1 warning
tests/test_files.py: 8 warnings
tests/test_gateway.py: 17 warnings
tests/test_paths.py: 6 warnings
tests/test_serialize.py: 2 warnings
tests/test_serverapp.py: 45 warnings
tests/test_terminal.py: 8 warnings
tests/test_traittypes.py: 11 warnings
tests/test_utils.py: 10 warnings
tests/test_version.py: 8 warnings
tests/test_view.py: 4 warnings
tests/auth/test_authorizer.py: 62 warnings
tests/auth/test_login.py: 9 warnings
tests/auth/test_security.py: 4 warnings
tests/auth/test_utils.py: 12 warnings
tests/extension/test_app.py: 15 warnings
tests/extension/test_config.py: 1 warning
tests/extension/test_entrypoint.py: 1 warning
tests/extension/test_handler.py: 5 warnings
tests/extension/test_launch.py: 3 warnings
tests/extension/test_manager.py: 10 warnings
tests/extension/test_serverextension.py: 5 warnings
tests/extension/test_utils.py: 1 warning
tests/nbconvert/test_handlers.py: 6 warnings
tests/services/api/test_api.py: 2 warnings
tests/services/config/test_api.py: 3 warnings
tests/services/contents/test_api.py: 232 warnings
tests/services/contents/test_config.py: 5 warnings
tests/services/contents/test_fileio.py: 3 warnings
tests/services/contents/test_largefilemanager.py: 14 warnings
tests/services/contents/test_manager.py: 92 warnings
tests/services/kernels/test_api.py: 21 warnings
tests/services/kernels/test_config.py: 2 warnings
tests/services/kernels/test_cull.py: 3 warnings
tests/services/kernelspecs/test_api.py: 6 warnings
tests/services/nbconvert/test_api.py: 1 warning
tests/services/sessions/test_api.py: 60 warnings
tests/services/sessions/test_manager.py: 16 warnings
tests/unix_sockets/test_api.py: 2 warnings
/usr/lib/python3.8/site-packages/pytest_tornasync/plugin.py:67: DeprecationWarning: clear_current is deprecated
loop.clear_current()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================================================================== slowest 10 durations ===========================================================================
12.14s call tests/test_terminal.py::test_culling
7.48s call tests/services/kernels/test_cull.py::test_cull_idle[jp_server_config1]
7.34s call tests/services/kernels/test_cull.py::test_cull_idle[jp_server_config0]
5.19s call tests/test_terminal.py::test_terminal_create_with_cwd
5.16s call tests/test_terminal.py::test_terminal_create_with_relative_cwd
5.16s call tests/test_terminal.py::test_terminal_create_with_bad_cwd
3.11s call tests/services/sessions/test_manager.py::test_pending_kernel
1.49s call tests/auth/test_authorizer.py::test_authorized_requests[True-GET-/api/kernels-None]
1.40s call tests/auth/test_authorizer.py::test_authorized_requests[True-DELETE-/api/kernels/{kernel_id}-None]
1.33s call tests/auth/test_authorizer.py::test_authorized_requests[True-POST-/api/kernels/{kernel_id}/restart-None]
========================================================================= short test summary info ==========================================================================
SKIPPED [5] tests/conftest.py:36: Skipping this test because it's marked 'integration_test'. Run integration tests using the `--integration_tests` flag.
FAILED tests/nbconvert/test_handlers.py::test_from_file - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED tests/nbconvert/test_handlers.py::test_from_file_404 - assert False
FAILED tests/nbconvert/test_handlers.py::test_from_file_download - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED tests/nbconvert/test_handlers.py::test_from_file_zip - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED tests/nbconvert/test_handlers.py::test_from_post - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
FAILED tests/nbconvert/test_handlers.py::test_from_post_zip - tornado.httpclient.HTTPClientError: HTTP 500: Internal Server Error
=================================================== 6 failed, 710 passed, 5 skipped, 2148 warnings in 138.69s (0:02:18) ====================================================
Just FTR 2.0.5 still fails
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.17.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyterlab-server-2.17.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyterlab_server-2.17.0, configfile: pyproject.toml, testpaths: tests/
plugins: anyio-3.6.2, requests-mock-1.10.0, console-scripts-1.3.1, timeout-2.1.0
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 141 items
tests/test_config.py . [ 0%]
tests/test_labapp.py ... [ 2%]
tests/test_licenses_api.py ..................................................................................... [ 63%]
tests/test_listings_api.py .. [ 64%]
tests/test_process.py .... [ 67%]
tests/test_settings_api.py FFFFF.FF..... [ 76%]
tests/test_themes_api.py .. [ 78%]
tests/test_translation_api.py ................. [ 90%]
tests/test_translation_utils.py ..... [ 93%]
tests/test_workspaces_api.py ........ [ 99%]
tests/test_workspaces_app.py . [100%]
========================================================================================= FAILURES ==========================================================================================
_____________________________________________________________________________ test_get_settings_overrides_dicts _____________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f455a0f5a60>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f4559bd8af0>
async def test_get_settings_overrides_dicts(jp_fetch, labserverapp):
# Check that values that are dictionaries in overrides.json are
# merged with the schema.
id = "@jupyterlab/apputils-extension:themes"
r = await jp_fetch("lab", "api", "settings", id)
> validate_request(r)
tests/test_settings_api.py:19:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:147: in validate_request
result2.raise_for_errors()
/usr/lib/python3.8/site-packages/openapi_core/validation/datatypes.py:12: in raise_for_errors
raise error
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:245: in validate
data = self._get_data(response, operation_response)
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:88: in _get_data
data = self._unmarshal(schema, casted)
/usr/lib/python3.8/site-packages/openapi_core/validation/validators.py:76: in _unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:285: in _unmarshal_properties
properties[prop_name] = self.unmarshallers_factory.create(prop)(
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:76: in __call__
self.validate(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openapi_core.unmarshalling.schemas.unmarshallers.AnyUnmarshaller object at 0x7f455a4a9e50>, value = None
def validate(self, value: Any) -> None:
errors_iter = self.validator.iter_errors(value)
errors = tuple(errors_iter)
if errors:
schema_type = self.schema.getkey("type", "any")
> raise InvalidSchemaValue(value, schema_type, schema_errors=errors)
E openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:95: InvalidSchemaValue
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2022-12-27 16:57:50.642 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {}}, 'NotebookNotary': {'db_file': ':memory:'}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_di0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_di0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_di0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_di0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_di0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_di0/config
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_di0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_di0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_di0/config
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_di0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.23.3 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:35817/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:35817/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
_________________________________________________________________________ test_get_settings_overrides_d_dicts[json] _________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f455a2733a0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f4559b42040>, ext = 'json'
@pytest.mark.parametrize("ext", ["json", "json5"])
async def test_get_settings_overrides_d_dicts(jp_fetch, labserverapp, ext):
# Check that values that are dictionaries in overrides.d/*.json are
# merged with the schema.
id = "@jupyterlab/apputils-extension:themes"
overrides_d = Path(labserverapp.app_settings_dir) / "overrides.d"
overrides_d.mkdir(exist_ok=True, parents=True)
for i in range(10):
text = json.dumps({id: {"codeCellConfig": {"cursorBlinkRate": 530 + i}}})
if ext == "json5":
text += "\n// a comment"
(overrides_d / f"foo-{i}.{ext}").write_text(text, encoding="utf-8")
r = await jp_fetch("lab", "api", "settings", id)
> validate_request(r)
tests/test_settings_api.py:42:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:147: in validate_request
result2.raise_for_errors()
/usr/lib/python3.8/site-packages/openapi_core/validation/datatypes.py:12: in raise_for_errors
raise error
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:245: in validate
data = self._get_data(response, operation_response)
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:88: in _get_data
data = self._unmarshal(schema, casted)
/usr/lib/python3.8/site-packages/openapi_core/validation/validators.py:76: in _unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:285: in _unmarshal_properties
properties[prop_name] = self.unmarshallers_factory.create(prop)(
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:76: in __call__
self.validate(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openapi_core.unmarshalling.schemas.unmarshallers.AnyUnmarshaller object at 0x7f455a218d30>, value = None
def validate(self, value: Any) -> None:
errors_iter = self.validator.iter_errors(value)
errors = tuple(errors_iter)
if errors:
schema_type = self.schema.getkey("type", "any")
> raise InvalidSchemaValue(value, schema_type, schema_errors=errors)
E openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:95: InvalidSchemaValue
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2022-12-27 16:57:50.879 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {}}, 'NotebookNotary': {'db_file': ':memory:'}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_0/config
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_0/config
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.23.3 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:33835/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:33835/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
________________________________________________________________________ test_get_settings_overrides_d_dicts[json5] _________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f455a266160>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f455a1da730>, ext = 'json5'
@pytest.mark.parametrize("ext", ["json", "json5"])
async def test_get_settings_overrides_d_dicts(jp_fetch, labserverapp, ext):
# Check that values that are dictionaries in overrides.d/*.json are
# merged with the schema.
id = "@jupyterlab/apputils-extension:themes"
overrides_d = Path(labserverapp.app_settings_dir) / "overrides.d"
overrides_d.mkdir(exist_ok=True, parents=True)
for i in range(10):
text = json.dumps({id: {"codeCellConfig": {"cursorBlinkRate": 530 + i}}})
if ext == "json5":
text += "\n// a comment"
(overrides_d / f"foo-{i}.{ext}").write_text(text, encoding="utf-8")
r = await jp_fetch("lab", "api", "settings", id)
> validate_request(r)
tests/test_settings_api.py:42:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:147: in validate_request
result2.raise_for_errors()
/usr/lib/python3.8/site-packages/openapi_core/validation/datatypes.py:12: in raise_for_errors
raise error
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:245: in validate
data = self._get_data(response, operation_response)
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:88: in _get_data
data = self._unmarshal(schema, casted)
/usr/lib/python3.8/site-packages/openapi_core/validation/validators.py:76: in _unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:285: in _unmarshal_properties
properties[prop_name] = self.unmarshallers_factory.create(prop)(
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:76: in __call__
self.validate(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openapi_core.unmarshalling.schemas.unmarshallers.AnyUnmarshaller object at 0x7f455a2a9280>, value = None
def validate(self, value: Any) -> None:
errors_iter = self.validator.iter_errors(value)
errors = tuple(errors_iter)
if errors:
schema_type = self.schema.getkey("type", "any")
> raise InvalidSchemaValue(value, schema_type, schema_errors=errors)
E openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:95: InvalidSchemaValue
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2022-12-27 16:57:51.044 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {}}, 'NotebookNotary': {'db_file': ':memory:'}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_1/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_1/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_1/etc/jupyter'] for config files
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_1/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_1/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_1/config
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_1/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_1/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_1/config
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-1/test_get_settings_overrides_d_1/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.23.3 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:37133/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:37133/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
_____________________________________________________________________________________ test_get_settings _____________________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f455a166ca0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f455a2b0670>
async def test_get_settings(jp_fetch, labserverapp):
id = "@jupyterlab/apputils-extension:themes"
r = await jp_fetch("lab", "api", "settings", id)
> validate_request(r)
tests/test_settings_api.py:54:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:147: in validate_request
result2.raise_for_errors()
/usr/lib/python3.8/site-packages/openapi_core/validation/datatypes.py:12: in raise_for_errors
raise error
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:245: in validate
data = self._get_data(response, operation_response)
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:88: in _get_data
data = self._unmarshal(schema, casted)
/usr/lib/python3.8/site-packages/openapi_core/validation/validators.py:76: in _unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:285: in _unmarshal_properties
properties[prop_name] = self.unmarshallers_factory.create(prop)(
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:76: in __call__
self.validate(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openapi_core.unmarshalling.schemas.unmarshallers.AnyUnmarshaller object at 0x7f4559af6d90>, value = None
def validate(self, value: Any) -> None:
errors_iter = self.validator.iter_errors(value)
errors = tuple(errors_iter)
if errors:
schema_type = self.schema.getkey("type", "any")
> raise InvalidSchemaValue(value, schema_type, schema_errors=errors)
E openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:95: InvalidSchemaValue
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2022-12-27 16:57:51.232 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {}}, 'NotebookNotary': {'db_file': ':memory:'}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-1/test_get_settings0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_get_settings0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_get_settings0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings0/config
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_settings0/config
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-1/test_get_settings0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.23.3 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:33201/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:33201/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
____________________________________________________________________________________ test_get_federated _____________________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f455a1e35e0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f4559bd8100>
async def test_get_federated(jp_fetch, labserverapp):
id = "@jupyterlab/apputils-extension-federated:themes"
r = await jp_fetch("lab", "api", "settings", id)
> validate_request(r)
tests/test_settings_api.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:147: in validate_request
result2.raise_for_errors()
/usr/lib/python3.8/site-packages/openapi_core/validation/datatypes.py:12: in raise_for_errors
raise error
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:245: in validate
data = self._get_data(response, operation_response)
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:88: in _get_data
data = self._unmarshal(schema, casted)
/usr/lib/python3.8/site-packages/openapi_core/validation/validators.py:76: in _unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:285: in _unmarshal_properties
properties[prop_name] = self.unmarshallers_factory.create(prop)(
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:76: in __call__
self.validate(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openapi_core.unmarshalling.schemas.unmarshallers.AnyUnmarshaller object at 0x7f455a501f70>, value = None
def validate(self, value: Any) -> None:
errors_iter = self.validator.iter_errors(value)
errors = tuple(errors_iter)
if errors:
schema_type = self.schema.getkey("type", "any")
> raise InvalidSchemaValue(value, schema_type, schema_errors=errors)
E openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:95: InvalidSchemaValue
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2022-12-27 16:57:51.395 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {}}, 'NotebookNotary': {'db_file': ':memory:'}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-1/test_get_federated0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_get_federated0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_get_federated0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_federated0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_federated0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_federated0/config
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_federated0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_federated0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_get_federated0/config
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-1/test_get_federated0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.23.3 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:43537/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:43537/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
_______________________________________________________________________________________ test_listing ________________________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f455a1c4dc0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f455a157970>
async def test_listing(jp_fetch, labserverapp):
ids = [
"@jupyterlab/apputils-extension:themes",
"@jupyterlab/apputils-extension-federated:themes",
"@jupyterlab/codemirror-extension:commands",
"@jupyterlab/codemirror-extension-federated:commands",
"@jupyterlab/shortcuts-extension:plugin",
"@jupyterlab/translation-extension:plugin",
"@jupyterlab/unicode-extension:plugin",
]
versions = ["N/A", "N/A", "test-version"]
r = await jp_fetch("lab", "api", "settings/")
> validate_request(r)
tests/test_settings_api.py:90:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:147: in validate_request
result2.raise_for_errors()
/usr/lib/python3.8/site-packages/openapi_core/validation/datatypes.py:12: in raise_for_errors
raise error
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:245: in validate
data = self._get_data(response, operation_response)
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:88: in _get_data
data = self._unmarshal(schema, casted)
/usr/lib/python3.8/site-packages/openapi_core/validation/validators.py:76: in _unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:285: in _unmarshal_properties
properties[prop_name] = self.unmarshallers_factory.create(prop)(
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:203: in unmarshal
return list(map(self.items_unmarshaller, value))
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:285: in _unmarshal_properties
properties[prop_name] = self.unmarshallers_factory.create(prop)(
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:76: in __call__
self.validate(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openapi_core.unmarshalling.schemas.unmarshallers.AnyUnmarshaller object at 0x7f455a072430>, value = None
def validate(self, value: Any) -> None:
errors_iter = self.validator.iter_errors(value)
errors = tuple(errors_iter)
if errors:
schema_type = self.schema.getkey("type", "any")
> raise InvalidSchemaValue(value, schema_type, schema_errors=errors)
E openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:95: InvalidSchemaValue
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2022-12-27 16:57:51.596 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {}}, 'NotebookNotary': {'db_file': ':memory:'}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-1/test_listing0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_listing0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_listing0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_listing0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_listing0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_listing0/config
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_listing0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_listing0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_listing0/config
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-1/test_listing0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.23.3 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:44829/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:44829/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
________________________________________________________________________________________ test_patch _________________________________________________________________________________________
jp_fetch = <function jp_fetch.<locals>.client_fetch at 0x7f455a44faf0>, labserverapp = <jupyterlab_server.app.LabServerApp object at 0x7f4559cc4040>
async def test_patch(jp_fetch, labserverapp):
id = "@jupyterlab/shortcuts-extension:plugin"
r = await jp_fetch(
"lab", "api", "settings", id, method="PUT", body=json.dumps(dict(raw=json5.dumps(dict())))
)
validate_request(r)
r = await jp_fetch(
"lab",
"api",
"settings",
id,
method="GET",
)
validate_request(r)
data = json.loads(r.body.decode())
first_created = rfc3339_to_timestamp(data["created"])
first_modified = rfc3339_to_timestamp(data["last_modified"])
r = await jp_fetch(
"lab", "api", "settings", id, method="PUT", body=json.dumps(dict(raw=json5.dumps(dict())))
)
validate_request(r)
r = await jp_fetch(
"lab",
"api",
"settings",
id,
method="GET",
)
validate_request(r)
data = json.loads(r.body.decode())
second_created = rfc3339_to_timestamp(data["created"])
second_modified = rfc3339_to_timestamp(data["last_modified"])
assert first_created <= second_created
assert first_modified < second_modified
r = await jp_fetch(
"lab",
"api",
"settings/",
method="GET",
)
> validate_request(r)
tests/test_settings_api.py:150:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jupyterlab_server/test_utils.py:147: in validate_request
result2.raise_for_errors()
/usr/lib/python3.8/site-packages/openapi_core/validation/datatypes.py:12: in raise_for_errors
raise error
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:245: in validate
data = self._get_data(response, operation_response)
/usr/lib/python3.8/site-packages/openapi_core/validation/response/validators.py:88: in _get_data
data = self._unmarshal(schema, casted)
/usr/lib/python3.8/site-packages/openapi_core/validation/validators.py:76: in _unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:285: in _unmarshal_properties
properties[prop_name] = self.unmarshallers_factory.create(prop)(
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:203: in unmarshal
return list(map(self.items_unmarshaller, value))
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:285: in _unmarshal_properties
properties[prop_name] = self.unmarshallers_factory.create(prop)(
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:374: in unmarshal
return super().unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:343: in unmarshal
return unmarshaller(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:82: in __call__
return self.unmarshal(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:217: in unmarshal
properties = self.format(value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:226: in format
return self._unmarshal_properties(formatted)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:305: in _unmarshal_properties
properties[prop_name] = additional_prop_unmarshaler(prop_value)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:76: in __call__
self.validate(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openapi_core.unmarshalling.schemas.unmarshallers.AnyUnmarshaller object at 0x7f455a2b0a30>, value = None
def validate(self, value: Any) -> None:
errors_iter = self.validator.iter_errors(value)
errors = tuple(errors_iter)
if errors:
schema_type = self.schema.getkey("type", "any")
> raise InvalidSchemaValue(value, schema_type, schema_errors=errors)
E openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/unmarshallers.py:95: InvalidSchemaValue
----------------------------------------------------------------------------------- Captured stderr setup -----------------------------------------------------------------------------------
[D 2022-12-27 16:57:51.978 ServerApp] Config changed: {'ServerApp': {'jpserver_extensions': {}}, 'NotebookNotary': {'db_file': ':memory:'}}
------------------------------------------------------------------------------------ Captured log setup -------------------------------------------------------------------------------------
DEBUG ServerApp:application.py:190 Searching ['/tmp/pytest-of-tkloczko/pytest-1/test_patch0/config', '/home/tkloczko/.local/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_patch0/env/etc/jupyter', '/tmp/pytest-of-tkloczko/pytest-1/test_patch0/etc/jupyter'] for config files
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_patch0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_patch0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_config in /tmp/pytest-of-tkloczko/pytest-1/test_patch0/config
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_patch0/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_patch0/env/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /home/tkloczko/.local/etc/jupyter
DEBUG ServerApp:application.py:851 Looking for jupyter_server_config in /tmp/pytest-of-tkloczko/pytest-1/test_patch0/config
INFO ServerApp:serverapp.py:2726 Serving notebooks from local directory: /tmp/pytest-of-tkloczko/pytest-1/test_patch0/root_dir
INFO ServerApp:serverapp.py:2726 Jupyter Server 1.23.3 is running at:
INFO ServerApp:serverapp.py:2726 http://localhost:38441/a%40b/?token=...
INFO ServerApp:serverapp.py:2726 or http://127.0.0.1:38441/a%40b/?token=...
INFO ServerApp:serverapp.py:2727 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
DEBUG ServerApp:login.py:211 Accepting token-authenticated connection from 127.0.0.1
----------------------------------------------------------------------------------- Captured log teardown -----------------------------------------------------------------------------------
INFO ServerApp:serverapp.py:2514 Shutting down 0 extensions
INFO ServerApp:serverapp.py:2503 Shutting down 0 terminals
=================================================================================== slowest 10 durations ====================================================================================
247.76s setup tests/test_translation_api.py::test_get
2.03s call tests/test_process.py::test_process
1.22s teardown tests/test_translation_api.py::test_get_display_name_invalid
1.04s call tests/test_process.py::test_process_app
0.53s call tests/test_settings_api.py::test_patch
0.17s call tests/test_settings_api.py::test_listing
0.14s call tests/test_translation_api.py::test_get
0.12s call tests/test_workspaces_api.py::test_get_non_existant
0.10s call tests/test_listings_api.py::test_get_listing
0.08s call tests/test_settings_api.py::test_patch_unicode
================================================================================== short test summary info ==================================================================================
FAILED tests/test_settings_api.py::test_get_settings_overrides_dicts - openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
FAILED tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json] - openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
FAILED tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json5] - openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
FAILED tests/test_settings_api.py::test_get_settings - openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
FAILED tests/test_settings_api.py::test_get_federated - openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
FAILED tests/test_settings_api.py::test_listing - openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
FAILED tests/test_settings_api.py::test_patch - openapi_core.unmarshalling.schemas.exceptions.InvalidSchemaValue: Value None not valid for schema of type any: (<ValidationError: 'None for not nullable'>,)
========================================================================= 7 failed, 134 passed in 258.94s (0:04:18) =========================================================================
In 2.1.0 fails with errors because missing pytest.mark.script_launch_mode
custom mark.
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-server-2.1.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-server-2.1.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network' --deselect tests/test_settings_api.py::test_get_settings_overrides_dicts --deselect 'tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json]' --deselect 'tests/test_settings_api.py::test_get_settings_overrides_d_dicts[json5]' --deselect tests/test_settings_api.py::test_get_settings --deselect tests/test_settings_api.py::test_get_federated --deselect tests/test_settings_api.py::test_listing --deselect tests/test_settings_api.py::test_patch
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.16, pytest-7.2.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/jupyter_server-2.1.0, configfile: pyproject.toml, testpaths: tests/
plugins: timeout-2.1.0, anyio-3.6.2
timeout: 100.0s
timeout method: thread
timeout func_only: False
collected 868 items / 2 errors
========================================================================================== ERRORS ===========================================================================================
____________________________________________________________________ ERROR collecting tests/extension/test_entrypoint.py ____________________________________________________________________
tests/extension/test_entrypoint.py:4: in <module>
pytestmark = pytest.mark.script_launch_mode("subprocess")
/usr/lib/python3.8/site-packages/_pytest/mark/structures.py:544: in __getattr__
warnings.warn(
E pytest.PytestUnknownMarkWarning: Unknown pytest.mark.script_launch_mode - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
____________________________________________________________________ ERROR collecting tests/extension/test_entrypoint.py ____________________________________________________________________
tests/extension/test_entrypoint.py:4: in <module>
pytestmark = pytest.mark.script_launch_mode("subprocess")
/usr/lib/python3.8/site-packages/_pytest/mark/structures.py:544: in __getattr__
warnings.warn(
E pytest.PytestUnknownMarkWarning: Unknown pytest.mark.script_launch_mode - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
===================================================================================== warnings summary ======================================================================================
jupyter_server/base/handlers.py:22
/home/tkloczko/rpmbuild/BUILD/jupyter_server-2.1.0/jupyter_server/base/handlers.py:22: 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 is_hidden
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
ERROR tests/extension/test_entrypoint.py - pytest.PytestUnknownMarkWarning: Unknown pytest.mark.script_launch_mode - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.or...
ERROR tests/extension/test_entrypoint.py - pytest.PytestUnknownMarkWarning: Unknown pytest.mark.script_launch_mode - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.or...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================================== 1 warning, 2 errors in 1.31s ================================================================================
Closing. I found that I had few modules missing in build env.