Starting /usr/bin/jupyter-notebook fails with this backtrace: Traceback (most recent call last): File "/usr/lib/python-exec/python3.9/jupyter-notebook", line 5, in <module> from notebook.notebookapp import main File "/usr/lib/python3.9/site-packages/notebook/notebookapp.py", line 80, in <module> from .services.contents.manager import ContentsManager File "/usr/lib/python3.9/site-packages/notebook/services/contents/manager.py", line 17, in <module> from nbformat import sign, validate as validate_nb, ValidationError File "/usr/lib/python3.9/site-packages/nbformat/__init__.py", line 11, in <module> from . import v1, v2, v3, v4 File "/usr/lib/python3.9/site-packages/nbformat/v4/__init__.py", line 39, in <module> from .convert import downgrade, upgrade File "/usr/lib/python3.9/site-packages/nbformat/v4/convert.py", line 13, in <module> from .. import validator File "/usr/lib/python3.9/site-packages/nbformat/validator.py", line 13, in <module> from .json_compat import ValidationError, _validator_for_name, get_current_validator File "/usr/lib/python3.9/site-packages/nbformat/json_compat.py", line 10, in <module> import fastjsonschema ModuleNotFoundError: No module named 'fastjsonschema' The attached patch tries to fix this by making a fastjsonschema an unconditional dependency. Currently, it is a BDEP when USE="test". Reproducible: Always
According to the comments, #837011 seems to suffer from the same issue.
Created attachment 769856 [details, diff] make fastjsonschema an unconditional dependency I tried to fix this by puting fastjsonschema into DEPEND and including DEPEND in RDEPEND, to indicate that the dependency is required at runtime as well as at build time (with USE="test").
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfc2741b02ad801a9d47f38e415922ff930a2e4a commit dfc2741b02ad801a9d47f38e415922ff930a2e4a Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-10 16:25:50 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-10 16:26:34 +0000 dev-python/nbformat: add missing dev-python/fastjsonschema dependency Closes: https://bugs.gentoo.org/837011 Closes: https://bugs.gentoo.org/837671 Signed-off-by: Sam James <sam@gentoo.org> dev-python/nbformat/{nbformat-5.3.0.ebuild => nbformat-5.3.0-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)