=dev-python/notebook-6.4.12 fails its test phase for me. (I've also believe I've tried all the later versions in the tree, with similar results, but knowing which versions of which dependencies to add to package.accept_keywords is tricky enough I hesitate to specify one of those versions in the title of the bug.) Six tests in notebook/nbconvert/tests/test_nbconvert_handlers.py fail with "requests.exceptions.HTTPError: 500 Server Error: Intern..." (except one failing with an AssertionError because it got a 500 instead of a 404 error). The cause of these 500 errors is plain from the "captured log calls", such as the following: DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 WARNING NotebookApp:manager.py:508 Notebook foo/testnb.ipynb is not trusted DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/contents/foo/testnb.ipynb (127.0.0.1) 5.240000ms DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from 127.0.0.1 ERROR NotebookApp:web.py:1798 Uncaught exception POST /a%40b/nbconvert/latex (127.0.0.1) HTTPServerRequest(protocol='http', host='localhost:12341', method='POST', uri='/a%40b/nbconvert/latex', version='HTTP/1.1', remote_ip='127.0.0.1 ') Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/traitlets/traitlets.py", line 656, 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/lib/python3.10/site-packages/tornado/web.py", line 1711, in _execute result = method(*self.path_args, **self.path_kwargs) File "/usr/lib/python3.10/site-packages/tornado/web.py", line 3208, in wrapper return method(self, *args, **kwargs) File "/var/tmp/portage/dev-python/notebook-6.4.12/work/notebook-6.4.12/notebook/nbconvert/handlers.py", line 164, in post exporter = get_exporter(format, config=self.config) File "/var/tmp/portage/dev-python/notebook-6.4.12/work/notebook-6.4.12/notebook/nbconvert/handlers.py", line 67, in get_exporter Exporter = get_exporter(format) File "/usr/lib/python3.10/site-packages/nbconvert/exporters/base.py", line 110, in get_exporter if getattr(exporter(config=config), "enabled", True): File "/usr/lib/python3.10/site-packages/nbconvert/exporters/templateexporter.py", line 348, in __init__ super().__init__(config=config, **kw) File "/usr/lib/python3.10/site-packages/nbconvert/exporters/exporter.py", line 122, in __init__ self._init_preprocessors() File "/usr/lib/python3.10/site-packages/nbconvert/exporters/templateexporter.py", line 528, in _init_preprocessors conf = self._get_conf() File "/usr/lib/python3.10/site-packages/nbconvert/exporters/templateexporter.py", line 546, in _get_conf for path in map(Path, self.template_paths): File "/usr/lib/python3.10/site-packages/traitlets/traitlets.py", line 703, in __get__ return self.get(obj, cls) File "/usr/lib/python3.10/site-packages/traitlets/traitlets.py", line 659, in get default = obj.trait_defaults(self.name) File "/usr/lib/python3.10/site-packages/traitlets/traitlets.py", line 1872, in trait_defaults return self._get_trait_default_generator(names[0])(self) File "/usr/lib/python3.10/site-packages/traitlets/traitlets.py", line 1233, in __call__ return self.func(*args, **kwargs) File "/usr/lib/python3.10/site-packages/nbconvert/exporters/templateexporter.py", line 557, in _template_paths template_names = self.get_template_names() File "/usr/lib/python3.10/site-packages/nbconvert/exporters/templateexporter.py", line 642, in get_template_names raise ValueError( ValueError: No template sub-directory with name 'latex' found in the following paths: /var/tmp/portage/dev-python/notebook-6.4.12/temp/tmp8idj9qi3/data /var/tmp/portage/dev-python/notebook-6.4.12/homedir/.local/share/jupyter /var/tmp/portage/dev-python/notebook-6.4.12/work/notebook-6.4.12-python3_10/install/usr/share/jupyter /var/tmp/portage/dev-python/notebook-6.4.12/temp/tmp8idj9qi3/share/jupyter DEBUG NotebookApp:handlers.py:249 Using contents: services/contents DEBUG NotebookApp:handlers.py:249 Using contents: services/contents ERROR NotebookApp:log.py:55 { "Host": "localhost:12341", "Accept": "*/*", "User-Agent": "python-requests/2.28.2" } ERROR NotebookApp:log.py:59 500 POST /a%40b/nbconvert/latex (127.0.0.1) 62.730000ms referer=None
Created attachment 860776 [details] dev-python:notebook-6.4.12:20230426-033549.log
Created attachment 860777 [details] emerge-info.txt
I've looked into it and I think that it's notebook 6.x doing something stupid that replaces /usr/share with <tempdir>/share in the test suite. I can't reproduce the failure with 7.x, so I don't think it's worth spending more time on it.