Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

7.0.0: tyest is failing when nbconvert is tested as installed #1846

Open
kloczek opened this issue Aug 22, 2022 · 20 comments
Open

7.0.0: tyest is failing when nbconvert is tested as installed #1846

kloczek opened this issue Aug 22, 2022 · 20 comments

Comments

@kloczek
Copy link

kloczek commented Aug 22, 2022

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Looks like in such scenatio test suite is checking only in exact paths templates files and by this many units are failing
IMO it would be good to add some env variable over which would be possible to access to installed in </install/prefix> templates.

@kloczek
Copy link
Author

kloczek commented Aug 22, 2022

Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.0.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.0.0-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/nbconvert-7.0.0, configfile: pyproject.toml, testpaths: nbconvert/
plugins: cov-3.0.0, dependency-0.5.1
collected 303 items

nbconvert/exporters/tests/test_asciidoc.py .FFF.                                                                                                                     [  1%]
nbconvert/exporters/tests/test_export.py ..FFFFFF....                                                                                                                [  5%]
nbconvert/exporters/tests/test_exporter.py .......                                                                                                                   [  7%]
nbconvert/exporters/tests/test_html.py .FFFFFFFFFFFF                                                                                                                 [ 12%]
nbconvert/exporters/tests/test_latex.py ..FFF.FFFFFF                                                                                                                 [ 16%]
nbconvert/exporters/tests/test_markdown.py .FFF                                                                                                                      [ 17%]
nbconvert/exporters/tests/test_notebook.py .....                                                                                                                     [ 19%]
nbconvert/exporters/tests/test_pdf.py ..s.                                                                                                                           [ 20%]
nbconvert/exporters/tests/test_python.py .FFF                                                                                                                        [ 21%]
nbconvert/exporters/tests/test_qtpdf.py .ss                                                                                                                          [ 22%]
nbconvert/exporters/tests/test_qtpng.py .ss                                                                                                                          [ 23%]
nbconvert/exporters/tests/test_rst.py .FFFFF                                                                                                                         [ 25%]
nbconvert/exporters/tests/test_script.py .FFFF.F                                                                                                                     [ 28%]
nbconvert/exporters/tests/test_slides.py .FFF.F                                                                                                                      [ 30%]
nbconvert/exporters/tests/test_templateexporter.py ..FFFF..FFFFFFF.F.FFFFFF.FFFFFFFFFFF....F                                                                         [ 43%]
nbconvert/exporters/tests/test_webpdf.py .F..F                                                                                                                       [ 45%]
nbconvert/filters/tests/test_ansi.py ...                                                                                                                             [ 46%]
nbconvert/filters/tests/test_citation.py ...................                                                                                                         [ 52%]
nbconvert/filters/tests/test_datatypefilter.py ...                                                                                                                   [ 53%]
nbconvert/filters/tests/test_highlight.py ....                                                                                                                       [ 54%]
nbconvert/filters/tests/test_latex.py .                                                                                                                              [ 55%]
nbconvert/filters/tests/test_markdown.py .........                                                                                                                   [ 58%]
nbconvert/filters/tests/test_metadata.py .                                                                                                                           [ 58%]
nbconvert/filters/tests/test_strings.py ..............                                                                                                               [ 63%]
nbconvert/postprocessors/tests/test_serve.py .                                                                                                                       [ 63%]
nbconvert/preprocessors/tests/test_clearmetadata.py .........                                                                                                        [ 66%]
nbconvert/preprocessors/tests/test_clearoutput.py ..                                                                                                                 [ 66%]
nbconvert/preprocessors/tests/test_coalescestreams.py ...                                                                                                            [ 67%]
nbconvert/preprocessors/tests/test_csshtmlheader.py ..                                                                                                               [ 68%]
nbconvert/preprocessors/tests/test_execute.py .....                                                                                                                  [ 70%]
nbconvert/preprocessors/tests/test_extractoutput.py ...                                                                                                              [ 71%]
nbconvert/preprocessors/tests/test_highlightmagics.py ...                                                                                                            [ 72%]
nbconvert/preprocessors/tests/test_latex.py ...                                                                                                                      [ 73%]
nbconvert/preprocessors/tests/test_regexremove.py ..                                                                                                                 [ 73%]
nbconvert/preprocessors/tests/test_sanitize.py .........                                                                                                             [ 76%]
nbconvert/preprocessors/tests/test_svg2pdf.py .....                                                                                                                  [ 78%]
nbconvert/preprocessors/tests/test_tagremove.py ..                                                                                                                   [ 79%]
nbconvert/tests/test_nbconvertapp.py FFFFF.FFFFF.FFFFFFFFssFFF..sFFFF.F.FsFFFFFFFFF                                                                                  [ 94%]
nbconvert/utils/tests/test_io.py ..                                                                                                                                  [ 95%]
nbconvert/utils/tests/test_pandoc.py ..                                                                                                                              [ 95%]
nbconvert/utils/tests/test_version.py .                                                                                                                              [ 96%]
nbconvert/writers/tests/test_debug.py .                                                                                                                              [ 96%]
nbconvert/writers/tests/test_files.py ..........                                                                                                                     [ 99%]
nbconvert/writers/tests/test_stdout.py .                                                                                                                             [100%]

================================================================================= FAILURES =================================================================================
__________________________________________________________________ TestASCIIDocExporter.test_constructor ___________________________________________________________________

self = <traitlets.traitlets.List object at 0x7f3daeb455e0>, obj = <nbconvert.exporters.asciidoc.ASCIIDocExporter object at 0x7f3dad8a8e50>
cls = <class 'nbconvert.exporters.asciidoc.ASCIIDocExporter'>

    def get(self, obj, cls=None):
        try:
>           value = obj._trait_values[self.name]
E           KeyError: 'template_paths'

/usr/lib/python3.8/site-packages/traitlets/traitlets.py:645: KeyError

During handling of the above exception, another exception occurred:

self = <nbconvert.exporters.tests.test_asciidoc.TestASCIIDocExporter testMethod=test_constructor>

    def test_constructor(self):
        """
        Can a ASCIIDocExporter be constructed?
        """
>       ASCIIDocExporter()

nbconvert/exporters/tests/test_asciidoc.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/templateexporter.py:343: in __init__
    super().__init__(config=config, **kw)
nbconvert/exporters/exporter.py:118: in __init__
    self._init_preprocessors()
nbconvert/exporters/templateexporter.py:509: in _init_preprocessors
    conf = self._get_conf()
nbconvert/exporters/templateexporter.py:527: in _get_conf
    for path in map(Path, self.template_paths):
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:686: in __get__
    return self.get(obj, cls)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:648: in get
    default = obj.trait_defaults(self.name)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1752: in trait_defaults
    return self._get_trait_default_generator(names[0])(self)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1132: in __call__
    return self.func(*args, **kwargs)
nbconvert/exporters/templateexporter.py:538: in _template_paths
    template_names = self.get_template_names()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.exporters.asciidoc.ASCIIDocExporter object at 0x7f3dad8a8e50>

    def get_template_names(self):
        # finds a list of template names where each successive template name is the base template
        template_names = []
        root_dirs = self.get_prefix_root_dirs()
        base_template = self.template_name
        merged_conf = {}  # the configuration once all conf files are merged
        while base_template is not None:
            template_names.append(base_template)
            conf = {}
            found_at_least_one = False
            for base_dir in self.extra_template_basedirs:
                template_dir = os.path.join(base_dir, base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            for root_dir in root_dirs:
                template_dir = os.path.join(root_dir, "nbconvert", "templates", base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            if not found_at_least_one:
                # Check for backwards compatibility template names
                for root_dir in root_dirs:
                    compatibility_file = base_template + ".tpl"
                    compatibility_path = os.path.join(
                        root_dir, "nbconvert", "templates", "compatibility", compatibility_file
                    )
                    if os.path.exists(compatibility_path):
                        found_at_least_one = True
                        warnings.warn(
                            f"5.x template name passed '{self.template_name}'. Use 'lab' or 'classic' for new template usage.",
                            DeprecationWarning,
                        )
                        self.template_file = compatibility_file
                        conf = self.get_compatibility_base_template_conf(base_template)
                        self.template_name = conf.get("base_template")
                        break
                if not found_at_least_one:
                    paths = "\n\t".join(root_dirs)
>                   raise ValueError(
                        "No template sub-directory with name %r found in the following paths:\n\t%s"
                        % (base_template, paths)
                    )
E                   ValueError: No template sub-directory with name 'asciidoc' found in the following paths:
E                       /home/tkloczko/.local/share/jupyter
E                       /usr/share/jupyter

nbconvert/exporters/templateexporter.py:622: ValueError
_____________________________________________________________________ TestASCIIDocExporter.test_export _____________________________________________________________________

self = <traitlets.traitlets.List object at 0x7f3daeb455e0>, obj = <nbconvert.exporters.asciidoc.ASCIIDocExporter object at 0x7f3dad4fb4f0>
cls = <class 'nbconvert.exporters.asciidoc.ASCIIDocExporter'>

    def get(self, obj, cls=None):
        try:
>           value = obj._trait_values[self.name]
E           KeyError: 'template_paths'

/usr/lib/python3.8/site-packages/traitlets/traitlets.py:645: KeyError

During handling of the above exception, another exception occurred:

self = <nbconvert.exporters.tests.test_asciidoc.TestASCIIDocExporter testMethod=test_export>

    @onlyif_cmds_exist("pandoc")
    def test_export(self):
        """
        Can a ASCIIDocExporter export something?
        """
>       (output, resources) = ASCIIDocExporter().from_filename(self._get_notebook())

nbconvert/exporters/tests/test_asciidoc.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/templateexporter.py:343: in __init__
    super().__init__(config=config, **kw)
nbconvert/exporters/exporter.py:118: in __init__
    self._init_preprocessors()
nbconvert/exporters/templateexporter.py:509: in _init_preprocessors
    conf = self._get_conf()
nbconvert/exporters/templateexporter.py:527: in _get_conf
    for path in map(Path, self.template_paths):
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:686: in __get__
    return self.get(obj, cls)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:648: in get
    default = obj.trait_defaults(self.name)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1752: in trait_defaults
    return self._get_trait_default_generator(names[0])(self)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1132: in __call__
    return self.func(*args, **kwargs)
nbconvert/exporters/templateexporter.py:538: in _template_paths
    template_names = self.get_template_names()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.exporters.asciidoc.ASCIIDocExporter object at 0x7f3dad4fb4f0>

    def get_template_names(self):
        # finds a list of template names where each successive template name is the base template
        template_names = []
        root_dirs = self.get_prefix_root_dirs()
        base_template = self.template_name
        merged_conf = {}  # the configuration once all conf files are merged
        while base_template is not None:
            template_names.append(base_template)
            conf = {}
            found_at_least_one = False
            for base_dir in self.extra_template_basedirs:
                template_dir = os.path.join(base_dir, base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            for root_dir in root_dirs:
                template_dir = os.path.join(root_dir, "nbconvert", "templates", base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            if not found_at_least_one:
                # Check for backwards compatibility template names
                for root_dir in root_dirs:
                    compatibility_file = base_template + ".tpl"
                    compatibility_path = os.path.join(
                        root_dir, "nbconvert", "templates", "compatibility", compatibility_file
                    )
                    if os.path.exists(compatibility_path):
                        found_at_least_one = True
                        warnings.warn(
                            f"5.x template name passed '{self.template_name}'. Use 'lab' or 'classic' for new template usage.",
                            DeprecationWarning,
                        )
                        self.template_file = compatibility_file
                        conf = self.get_compatibility_base_template_conf(base_template)
                        self.template_name = conf.get("base_template")
                        break
                if not found_at_least_one:
                    paths = "\n\t".join(root_dirs)
>                   raise ValueError(
                        "No template sub-directory with name %r found in the following paths:\n\t%s"
                        % (base_template, paths)
                    )
E                   ValueError: No template sub-directory with name 'asciidoc' found in the following paths:
E                       /home/tkloczko/.local/share/jupyter
E                       /usr/share/jupyter

nbconvert/exporters/templateexporter.py:622: ValueError
________________________________________________________________ TestASCIIDocExporter.test_export_no_prompt ________________________________________________________________

self = <traitlets.traitlets.List object at 0x7f3daeb455e0>, obj = <nbconvert.exporters.asciidoc.ASCIIDocExporter object at 0x7f3dad618760>
cls = <class 'nbconvert.exporters.asciidoc.ASCIIDocExporter'>

    def get(self, obj, cls=None):
        try:
>           value = obj._trait_values[self.name]
E           KeyError: 'template_paths'

/usr/lib/python3.8/site-packages/traitlets/traitlets.py:645: KeyError

During handling of the above exception, another exception occurred:

self = <nbconvert.exporters.tests.test_asciidoc.TestASCIIDocExporter testMethod=test_export_no_prompt>

    @onlyif_cmds_exist("pandoc")
    def test_export_no_prompt(self):
        """
        Can a ASCIIDocExporter export something without prompts?
        """
        no_prompt = {
            "TemplateExporter": {
                "exclude_input_prompt": True,
                "exclude_output_prompt": True,
            }
        }
        c_no_prompt = Config(no_prompt)
>       exporter = ASCIIDocExporter(config=c_no_prompt)

nbconvert/exporters/tests/test_asciidoc.py:64:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/templateexporter.py:343: in __init__
    super().__init__(config=config, **kw)
nbconvert/exporters/exporter.py:118: in __init__
    self._init_preprocessors()
nbconvert/exporters/templateexporter.py:509: in _init_preprocessors
    conf = self._get_conf()
nbconvert/exporters/templateexporter.py:527: in _get_conf
    for path in map(Path, self.template_paths):
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:686: in __get__
    return self.get(obj, cls)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:648: in get
    default = obj.trait_defaults(self.name)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1752: in trait_defaults
    return self._get_trait_default_generator(names[0])(self)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1132: in __call__
    return self.func(*args, **kwargs)
nbconvert/exporters/templateexporter.py:538: in _template_paths
    template_names = self.get_template_names()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.exporters.asciidoc.ASCIIDocExporter object at 0x7f3dad618760>

    def get_template_names(self):
        # finds a list of template names where each successive template name is the base template
        template_names = []
        root_dirs = self.get_prefix_root_dirs()
        base_template = self.template_name
        merged_conf = {}  # the configuration once all conf files are merged
        while base_template is not None:
            template_names.append(base_template)
            conf = {}
            found_at_least_one = False
            for base_dir in self.extra_template_basedirs:
                template_dir = os.path.join(base_dir, base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            for root_dir in root_dirs:
                template_dir = os.path.join(root_dir, "nbconvert", "templates", base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            if not found_at_least_one:
                # Check for backwards compatibility template names
                for root_dir in root_dirs:
                    compatibility_file = base_template + ".tpl"
                    compatibility_path = os.path.join(
                        root_dir, "nbconvert", "templates", "compatibility", compatibility_file
                    )
                    if os.path.exists(compatibility_path):
                        found_at_least_one = True
                        warnings.warn(
                            f"5.x template name passed '{self.template_name}'. Use 'lab' or 'classic' for new template usage.",
                            DeprecationWarning,
                        )
                        self.template_file = compatibility_file
                        conf = self.get_compatibility_base_template_conf(base_template)
                        self.template_name = conf.get("base_template")
                        break
                if not found_at_least_one:
                    paths = "\n\t".join(root_dirs)
>                   raise ValueError(
                        "No template sub-directory with name %r found in the following paths:\n\t%s"
                        % (base_template, paths)
                    )
E                   ValueError: No template sub-directory with name 'asciidoc' found in the following paths:
E                       /home/tkloczko/.local/share/jupyter
E                       /usr/share/jupyter

nbconvert/exporters/templateexporter.py:622: ValueError
_____________________________________________________________________ TestExport.test_export_filename ______________________________________________________________________

self = <traitlets.traitlets.List object at 0x7f3daeb455e0>, obj = <nbconvert.exporters.python.PythonExporter object at 0x7f3dad600970>
cls = <class 'nbconvert.exporters.python.PythonExporter'>

    def get(self, obj, cls=None):
        try:
>           value = obj._trait_values[self.name]
E           KeyError: 'template_paths'

/usr/lib/python3.8/site-packages/traitlets/traitlets.py:645: KeyError

During handling of the above exception, another exception occurred:

self = <nbconvert.exporters.tests.test_export.TestExport testMethod=test_export_filename>

    def test_export_filename(self):
        """
        Can a notebook be exported by filename?
        """
>       exporter = get_exporter("python")

nbconvert/exporters/tests/test_export.py:54:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/base.py:106: in get_exporter
    if getattr(exporter(config=config), "enabled", True):
nbconvert/exporters/templateexporter.py:343: in __init__
    super().__init__(config=config, **kw)
nbconvert/exporters/exporter.py:118: in __init__
    self._init_preprocessors()
nbconvert/exporters/templateexporter.py:509: in _init_preprocessors
    conf = self._get_conf()
nbconvert/exporters/templateexporter.py:527: in _get_conf
    for path in map(Path, self.template_paths):
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:686: in __get__
    return self.get(obj, cls)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:648: in get
    default = obj.trait_defaults(self.name)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1752: in trait_defaults
    return self._get_trait_default_generator(names[0])(self)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1132: in __call__
    return self.func(*args, **kwargs)
nbconvert/exporters/templateexporter.py:538: in _template_paths
    template_names = self.get_template_names()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.exporters.python.PythonExporter object at 0x7f3dad600970>

    def get_template_names(self):
        # finds a list of template names where each successive template name is the base template
        template_names = []
        root_dirs = self.get_prefix_root_dirs()
        base_template = self.template_name
        merged_conf = {}  # the configuration once all conf files are merged
        while base_template is not None:
            template_names.append(base_template)
            conf = {}
            found_at_least_one = False
            for base_dir in self.extra_template_basedirs:
                template_dir = os.path.join(base_dir, base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            for root_dir in root_dirs:
                template_dir = os.path.join(root_dir, "nbconvert", "templates", base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            if not found_at_least_one:
                # Check for backwards compatibility template names
                for root_dir in root_dirs:
                    compatibility_file = base_template + ".tpl"
                    compatibility_path = os.path.join(
                        root_dir, "nbconvert", "templates", "compatibility", compatibility_file
                    )
                    if os.path.exists(compatibility_path):
                        found_at_least_one = True
                        warnings.warn(
                            f"5.x template name passed '{self.template_name}'. Use 'lab' or 'classic' for new template usage.",
                            DeprecationWarning,
                        )
                        self.template_file = compatibility_file
                        conf = self.get_compatibility_base_template_conf(base_template)
                        self.template_name = conf.get("base_template")
                        break
                if not found_at_least_one:
                    paths = "\n\t".join(root_dirs)
>                   raise ValueError(
                        "No template sub-directory with name %r found in the following paths:\n\t%s"
                        % (base_template, paths)
                    )
E                   ValueError: No template sub-directory with name 'python' found in the following paths:
E                       /home/tkloczko/.local/share/jupyter
E                       /usr/share/jupyter

nbconvert/exporters/templateexporter.py:622: ValueError
____________________________________________________________________ TestExport.test_export_filestream _____________________________________________________________________

self = <traitlets.traitlets.List object at 0x7f3daeb455e0>, obj = <nbconvert.exporters.python.PythonExporter object at 0x7f3dad89feb0>
cls = <class 'nbconvert.exporters.python.PythonExporter'>

    def get(self, obj, cls=None):
        try:
>           value = obj._trait_values[self.name]
E           KeyError: 'template_paths'

/usr/lib/python3.8/site-packages/traitlets/traitlets.py:645: KeyError

During handling of the above exception, another exception occurred:

self = <nbconvert.exporters.tests.test_export.TestExport testMethod=test_export_filestream>

    def test_export_filestream(self):
        """
        Can a notebook be exported by a filesteam?
        """
        with open(self._get_notebook()) as f:
>           exporter = get_exporter("python")

nbconvert/exporters/tests/test_export.py:73:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/base.py:106: in get_exporter
    if getattr(exporter(config=config), "enabled", True):
nbconvert/exporters/templateexporter.py:343: in __init__
    super().__init__(config=config, **kw)
nbconvert/exporters/exporter.py:118: in __init__
    self._init_preprocessors()
nbconvert/exporters/templateexporter.py:509: in _init_preprocessors
    conf = self._get_conf()
nbconvert/exporters/templateexporter.py:527: in _get_conf
    for path in map(Path, self.template_paths):
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:686: in __get__
    return self.get(obj, cls)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:648: in get
    default = obj.trait_defaults(self.name)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1752: in trait_defaults
    return self._get_trait_default_generator(names[0])(self)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1132: in __call__
    return self.func(*args, **kwargs)
nbconvert/exporters/templateexporter.py:538: in _template_paths
    template_names = self.get_template_names()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.exporters.python.PythonExporter object at 0x7f3dad89feb0>

    def get_template_names(self):
        # finds a list of template names where each successive template name is the base template
        template_names = []
        root_dirs = self.get_prefix_root_dirs()
        base_template = self.template_name
        merged_conf = {}  # the configuration once all conf files are merged
        while base_template is not None:
            template_names.append(base_template)
            conf = {}
            found_at_least_one = False
            for base_dir in self.extra_template_basedirs:
                template_dir = os.path.join(base_dir, base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            for root_dir in root_dirs:
                template_dir = os.path.join(root_dir, "nbconvert", "templates", base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            if not found_at_least_one:
                # Check for backwards compatibility template names
                for root_dir in root_dirs:
                    compatibility_file = base_template + ".tpl"
                    compatibility_path = os.path.join(
                        root_dir, "nbconvert", "templates", "compatibility", compatibility_file
                    )
                    if os.path.exists(compatibility_path):
                        found_at_least_one = True
                        warnings.warn(
                            f"5.x template name passed '{self.template_name}'. Use 'lab' or 'classic' for new template usage.",
                            DeprecationWarning,
                        )
                        self.template_file = compatibility_file
                        conf = self.get_compatibility_base_template_conf(base_template)
                        self.template_name = conf.get("base_template")
                        break
                if not found_at_least_one:
                    paths = "\n\t".join(root_dirs)
>                   raise ValueError(
                        "No template sub-directory with name %r found in the following paths:\n\t%s"
                        % (base_template, paths)
                    )
E                   ValueError: No template sub-directory with name 'python' found in the following paths:
E                       /home/tkloczko/.local/share/jupyter
E                       /usr/share/jupyter

nbconvert/exporters/templateexporter.py:622: ValueError
______________________________________________________________________ TestExport.test_export_nbnode _______________________________________________________________________

self = <traitlets.traitlets.List object at 0x7f3daeb455e0>, obj = <nbconvert.exporters.python.PythonExporter object at 0x7f3dad8be3d0>
cls = <class 'nbconvert.exporters.python.PythonExporter'>

    def get(self, obj, cls=None):
        try:
>           value = obj._trait_values[self.name]
E           KeyError: 'template_paths'

/usr/lib/python3.8/site-packages/traitlets/traitlets.py:645: KeyError

During handling of the above exception, another exception occurred:

self = <nbconvert.exporters.tests.test_export.TestExport testMethod=test_export_nbnode>

    def test_export_nbnode(self):
        """
        Can a notebook be exported by a notebook node handle?
        """
        with open(self._get_notebook()) as f:
            notebook = nbformat.read(f, 4)
>           exporter = get_exporter("python")

nbconvert/exporters/tests/test_export.py:64:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/base.py:106: in get_exporter
    if getattr(exporter(config=config), "enabled", True):
nbconvert/exporters/templateexporter.py:343: in __init__
    super().__init__(config=config, **kw)
nbconvert/exporters/exporter.py:118: in __init__
    self._init_preprocessors()
nbconvert/exporters/templateexporter.py:509: in _init_preprocessors
    conf = self._get_conf()
nbconvert/exporters/templateexporter.py:527: in _get_conf
    for path in map(Path, self.template_paths):
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:686: in __get__
    return self.get(obj, cls)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:648: in get
    default = obj.trait_defaults(self.name)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1752: in trait_defaults
    return self._get_trait_default_generator(names[0])(self)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1132: in __call__
    return self.func(*args, **kwargs)
nbconvert/exporters/templateexporter.py:538: in _template_paths
    template_names = self.get_template_names()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.exporters.python.PythonExporter object at 0x7f3dad8be3d0>

    def get_template_names(self):
        # finds a list of template names where each successive template name is the base template
        template_names = []
        root_dirs = self.get_prefix_root_dirs()
        base_template = self.template_name
        merged_conf = {}  # the configuration once all conf files are merged
        while base_template is not None:
            template_names.append(base_template)
            conf = {}
            found_at_least_one = False
            for base_dir in self.extra_template_basedirs:
                template_dir = os.path.join(base_dir, base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            for root_dir in root_dirs:
                template_dir = os.path.join(root_dir, "nbconvert", "templates", base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            if not found_at_least_one:
                # Check for backwards compatibility template names
                for root_dir in root_dirs:
                    compatibility_file = base_template + ".tpl"
                    compatibility_path = os.path.join(
                        root_dir, "nbconvert", "templates", "compatibility", compatibility_file
                    )
                    if os.path.exists(compatibility_path):
                        found_at_least_one = True
                        warnings.warn(
                            f"5.x template name passed '{self.template_name}'. Use 'lab' or 'classic' for new template usage.",
                            DeprecationWarning,
                        )
                        self.template_file = compatibility_file
                        conf = self.get_compatibility_base_template_conf(base_template)
                        self.template_name = conf.get("base_template")
                        break
                if not found_at_least_one:
                    paths = "\n\t".join(root_dirs)
>                   raise ValueError(
                        "No template sub-directory with name %r found in the following paths:\n\t%s"
                        % (base_template, paths)
                    )
E                   ValueError: No template sub-directory with name 'python' found in the following paths:
E                       /home/tkloczko/.local/share/jupyter
E                       /usr/share/jupyter

nbconvert/exporters/templateexporter.py:622: ValueError
_____________________________________________________________________ TestExport.test_export_resources _____________________________________________________________________

self = <traitlets.traitlets.List object at 0x7f3daeb455e0>, obj = <nbconvert.exporters.python.PythonExporter object at 0x7f3dad3ca3d0>
cls = <class 'nbconvert.exporters.python.PythonExporter'>

    def get(self, obj, cls=None):
        try:
>           value = obj._trait_values[self.name]
E           KeyError: 'template_paths'

/usr/lib/python3.8/site-packages/traitlets/traitlets.py:645: KeyError

During handling of the above exception, another exception occurred:

self = <nbconvert.exporters.tests.test_export.TestExport testMethod=test_export_resources>

    def test_export_resources(self):
        """
        Can a notebook be exported along with a custom resources dict?
        """
>       (output, resources) = export(PythonExporter, self._get_notebook(), resources={})

nbconvert/exporters/tests/test_export.py:95:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/base.py:82: in export
    exporter_instance = exporter(**kw)
nbconvert/exporters/templateexporter.py:343: in __init__
    super().__init__(config=config, **kw)
nbconvert/exporters/exporter.py:118: in __init__
    self._init_preprocessors()
nbconvert/exporters/templateexporter.py:509: in _init_preprocessors
    conf = self._get_conf()
nbconvert/exporters/templateexporter.py:527: in _get_conf
    for path in map(Path, self.template_paths):
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:686: in __get__
    return self.get(obj, cls)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:648: in get
    default = obj.trait_defaults(self.name)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1752: in trait_defaults
    return self._get_trait_default_generator(names[0])(self)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1132: in __call__
    return self.func(*args, **kwargs)
nbconvert/exporters/templateexporter.py:538: in _template_paths
    template_names = self.get_template_names()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.exporters.python.PythonExporter object at 0x7f3dad3ca3d0>

    def get_template_names(self):
        # finds a list of template names where each successive template name is the base template
        template_names = []
        root_dirs = self.get_prefix_root_dirs()
        base_template = self.template_name
        merged_conf = {}  # the configuration once all conf files are merged
        while base_template is not None:
            template_names.append(base_template)
            conf = {}
            found_at_least_one = False
            for base_dir in self.extra_template_basedirs:
                template_dir = os.path.join(base_dir, base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            for root_dir in root_dirs:
                template_dir = os.path.join(root_dir, "nbconvert", "templates", base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            if not found_at_least_one:
                # Check for backwards compatibility template names
                for root_dir in root_dirs:
                    compatibility_file = base_template + ".tpl"
                    compatibility_path = os.path.join(
                        root_dir, "nbconvert", "templates", "compatibility", compatibility_file
                    )
                    if os.path.exists(compatibility_path):
                        found_at_least_one = True
                        warnings.warn(
                            f"5.x template name passed '{self.template_name}'. Use 'lab' or 'classic' for new template usage.",
                            DeprecationWarning,
                        )
                        self.template_file = compatibility_file
                        conf = self.get_compatibility_base_template_conf(base_template)
                        self.template_name = conf.get("base_template")
                        break
                if not found_at_least_one:
                    paths = "\n\t".join(root_dirs)
>                   raise ValueError(
                        "No template sub-directory with name %r found in the following paths:\n\t%s"
                        % (base_template, paths)
                    )
E                   ValueError: No template sub-directory with name 'python' found in the following paths:
E                       /home/tkloczko/.local/share/jupyter
E                       /usr/share/jupyter

nbconvert/exporters/templateexporter.py:622: ValueError
__________________________________________________________________ TestExport.test_export_using_exporter ___________________________________________________________________

self = <traitlets.traitlets.List object at 0x7f3daeb455e0>, obj = <nbconvert.exporters.python.PythonExporter object at 0x7f3dad723520>
cls = <class 'nbconvert.exporters.python.PythonExporter'>

    def get(self, obj, cls=None):
        try:
>           value = obj._trait_values[self.name]
E           KeyError: 'template_paths'

/usr/lib/python3.8/site-packages/traitlets/traitlets.py:645: KeyError

During handling of the above exception, another exception occurred:

self = <nbconvert.exporters.tests.test_export.TestExport testMethod=test_export_using_exporter>

    def test_export_using_exporter(self):
        """
        Can a notebook be exported using an instanciated exporter?
        """
>       (output, resources) = export(PythonExporter(), self._get_notebook())

nbconvert/exporters/tests/test_export.py:81:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/templateexporter.py:343: in __init__
    super().__init__(config=config, **kw)
nbconvert/exporters/exporter.py:118: in __init__
    self._init_preprocessors()
nbconvert/exporters/templateexporter.py:509: in _init_preprocessors
    conf = self._get_conf()
nbconvert/exporters/templateexporter.py:527: in _get_conf
    for path in map(Path, self.template_paths):
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:686: in __get__
    return self.get(obj, cls)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:648: in get
    default = obj.trait_defaults(self.name)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1752: in trait_defaults
    return self._get_trait_default_generator(names[0])(self)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1132: in __call__
    return self.func(*args, **kwargs)
nbconvert/exporters/templateexporter.py:538: in _template_paths
    template_names = self.get_template_names()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.exporters.python.PythonExporter object at 0x7f3dad723520>

    def get_template_names(self):
        # finds a list of template names where each successive template name is the base template
        template_names = []
        root_dirs = self.get_prefix_root_dirs()
        base_template = self.template_name
        merged_conf = {}  # the configuration once all conf files are merged
        while base_template is not None:
            template_names.append(base_template)
            conf = {}
            found_at_least_one = False
            for base_dir in self.extra_template_basedirs:
                template_dir = os.path.join(base_dir, base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            for root_dir in root_dirs:
                template_dir = os.path.join(root_dir, "nbconvert", "templates", base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            if not found_at_least_one:
                # Check for backwards compatibility template names
                for root_dir in root_dirs:
                    compatibility_file = base_template + ".tpl"
                    compatibility_path = os.path.join(
                        root_dir, "nbconvert", "templates", "compatibility", compatibility_file
                    )
                    if os.path.exists(compatibility_path):
                        found_at_least_one = True
                        warnings.warn(
                            f"5.x template name passed '{self.template_name}'. Use 'lab' or 'classic' for new template usage.",
                            DeprecationWarning,
                        )
                        self.template_file = compatibility_file
                        conf = self.get_compatibility_base_template_conf(base_template)
                        self.template_name = conf.get("base_template")
                        break
                if not found_at_least_one:
                    paths = "\n\t".join(root_dirs)
>                   raise ValueError(
                        "No template sub-directory with name %r found in the following paths:\n\t%s"
                        % (base_template, paths)
                    )
E                   ValueError: No template sub-directory with name 'python' found in the following paths:
E                       /home/tkloczko/.local/share/jupyter
E                       /usr/share/jupyter

nbconvert/exporters/templateexporter.py:622: ValueError

[..]

=========================================================================== slowest 10 durations ===========================================================================
1.33s call     nbconvert/preprocessors/tests/test_execute.py::test_preprocess_cell
1.32s call     nbconvert/preprocessors/tests/test_execute.py::test_basic_execution
1.30s call     nbconvert/preprocessors/tests/test_execute.py::test_populate_language_info
1.24s call     nbconvert/preprocessors/tests/test_execute.py::test_mixed_markdown_execution
1.21s call     nbconvert/preprocessors/tests/test_execute.py::test_executenb
1.19s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium
1.18s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_output_suffix
1.17s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_different_build_dir
1.16s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_inplace
1.14s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_spurious_cr
========================================================================= short test summary info ==========================================================================
SKIPPED [1] nbconvert/exporters/tests/test_pdf.py:28: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/exporters/tests/test_qtpdf.py:19: PyQtWebEngine not installed
SKIPPED [2] nbconvert/exporters/tests/base.py:28: PyQtWebEngine not installed
SKIPPED [1] nbconvert/exporters/tests/test_qtpng.py:21: PyQtWebEngine not installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:272: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:135: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:489: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:159: This test runs only if command 'xelatex' is installed
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_constructor - ValueError: No template sub-directory with name 'asciidoc' found in the follo...
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_export - ValueError: No template sub-directory with name 'asciidoc' found in the following ...
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_export_no_prompt - ValueError: No template sub-directory with name 'asciidoc' found in the ...
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_filename - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_filestream - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_nbnode - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_resources - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_using_exporter - ValueError: No template sub-directory with name 'python' found in the following...
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_using_exporter_class - ValueError: No template sub-directory with name 'python' found in the fol...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_attachments - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_basic_name - ValueError: No template sub-directory with name 'basic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_constructor - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_custom_filter_highlight_code - ValueError: No template sub-directory with name 'classic' found in t...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export_classic - ValueError: No template sub-directory with name 'classic' found in the following p...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export_notebook - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_javascript_injection - ValueError: No template sub-directory with name 'lab' found in the following...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_javascript_output - ValueError: No template sub-directory with name 'classic' found in the followin...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_png_metadata - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_prompt_number - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'lab' found in the following p...
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_custom_filter_highlight_code - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_export - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_export_book - jinja2.exceptions.TemplateNotFound: report
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_no_prompt_yes_input - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_prompt_number_color - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_prompt_number_color_ipython - jinja2.exceptions.TemplateNotFound: style_ipython.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_raw_cell_inclusion - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_svg - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_very_long_cells - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_constructor - ValueError: No template sub-directory with name 'markdown' found in the follo...
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_export - ValueError: No template sub-directory with name 'markdown' found in the following ...
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'markdown' found in th...
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_constructor - ValueError: No template sub-directory with name 'python' found in the following p...
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_export - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'python' found in the foll...
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_constructor - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_empty_code_cell - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_export - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_png_metadata - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_constructor - ValueError: No template sub-directory with name 'script' found in the following p...
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export_config_transfer - ValueError: No template sub-directory with name 'script' found in the ...
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export_python - ValueError: No template sub-directory with name 'script' found in the following...
FAILED nbconvert/exporters/tests/test_script.py::test_script_exporter_entrypoint - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_constructor - ValueError: No template sub-directory with name 'reveal' found in the following p...
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_export - ValueError: No template sub-directory with name 'reveal' found in the following paths:
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_export_reveal - ValueError: No template sub-directory with name 'reveal' found in the following...
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'reveal' found in the foll...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_file - ValueError: No template sub-directory with name 'python' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_file_compatibility - ValueError: No template sub-directory with name 'pyt...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_name_5x_compatibility_display_priority - ValueError: No template sub-dire...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_name_5x_compatibility_full - ValueError: No template sub-directory with n...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_code_cell - ValueError: No template sub-directory with name 'markdown' found in the...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_input_prompt - ValueError: No template sub-directory with name 'markdown' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_markdown - ValueError: No template sub-directory with name 'python' found in the fo...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_output_prompt - ValueError: No template sub-directory with name 'lab' found in the ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_output_stdin - ValueError: No template sub-directory with name 'lab' found in the f...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_export - ValueError: No template sub-directory with name 'python' found in the following pa...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_extract_outputs - ValueError: No template sub-directory with name 'python' found in the fol...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_include_output_stdin - ValueError: No template sub-directory with name 'lab' found in the f...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_local_template_file_extending_lab - ValueError: No template sub-directory with name 'lab' f...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_pickle - ValueError: No template sub-directory with name 'python' found in the following pa...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_class - ValueError: No template sub-directory with name 'python' found in the ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_dottedobjectname - ValueError: No template sub-directory with name 'python' fo...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_instance - ValueError: No template sub-directory with name 'python' found in t...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_via_method - ValueError: No template sub-directory with name 'python' found in...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_assignment - ValueError: No template sub-directory with name 'rst' found in th...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_attr - ValueError: No template sub-directory with name 'rst' found in the foll...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_constructor - ValueError: No template sub-directory with name 'rst' found in t...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_deassignment - ValueError: No template sub-directory with name 'rst' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dereassignment - ValueError: No template sub-directory with name 'rst' found i...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dynamic_attr - ValueError: No template sub-directory with name 'rst' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dynamic_attr_reversed - ValueError: No template sub-directory with name 'rst' ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_init - ValueError: No template sub-directory with name 'rst' found in the foll...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_reassignment - ValueError: No template sub-directory with name 'rst' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_relative_template_file - ValueError: No template sub-directory with name 'python' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_relative_template_file_compatibility - ValueError: No template sub-directory with name 'pyt...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_remove_elements_with_tags - ValueError: No template sub-directory with name 'markdown' foun...
FAILED nbconvert/exporters/tests/test_webpdf.py::TestWebPDFExporter::test_export - jinja2.exceptions.TemplateNotFound: index.html.j2
FAILED nbconvert/exporters/tests/test_webpdf.py::TestWebPDFExporter::test_webpdf_without_pyppeteer - jinja2.exceptions.TemplateNotFound: index.html.j2
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_absolute_template_file - OSError: [NbConvertApp] Searching ['/tmp/tmppivkvvl1', '/home/tkloczko/.jupy...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_accents_in_filename - OSError: [NbConvertApp] Searching ['/tmp/tmpy_w0nl4x', '/home/tkloczko/.jupyter...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_allow_errors - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_build_dir - OSError: [NbConvertApp] Searching ['/tmp/tmpc6hb43j6', '/home/tkloczko/.jupyter', '/home/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_cell_tag_output - OSError: [NbConvertApp] Searching ['/tmp/tmpjlixotvm', '/home/tkloczko/.jupyter', '...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_from_stdin - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_from_stdin_to_stdout - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name - OSError: [NbConvertApp] Searching ['/tmp/tmp4dfi1pzd', '/home/tkloczko/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_cwd_plugin - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_default_config - OSError: [NbConvertApp] Searching ['/tmp/tmp94tg4l4j', '/home/tkloczko/.jupyter', '/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedded_jpeg - OSError: [NbConvertApp] Converting notebook notebook4_jpeg.ipynb to latex
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedding_images_htmlexporter - OSError: [NbConvertApp] Searching ['/tmp/tmp56uankz5', '/home/tkloczk...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_errors_print_traceback - assert 'print("Some text before the error")' in 'Traceback (most recent call...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_execute_multiple_notebooks - OSError: [NbConvertApp] Searching ['/tmp/tmpwll1lm9o', '/home/tkloczko/....
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_execute_widgets_from_nbconvert - OSError: [NbConvertApp] Searching ['/tmp/tmpho_pijia', '/home/tklocz...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_explicit - OSError: [NbConvertApp] Searching ['/tmp/tmpkouy9oe9', '/home/tkloczko/.jupyter', '/home/t...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_explicit_glob - OSError: [NbConvertApp] Searching ['/tmp/tmps2jyxn4n', '/home/tkloczko/.jupyter', '/h...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_fenced_code_blocks_markdown - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob - OSError: [NbConvertApp] Searching ['/tmp/tmpdpu2tnpb', '/home/tkloczko/.jupyter', '/home/tkloc...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob_explicit - OSError: [NbConvertApp] Searching ['/tmp/tmpwsj665tt', '/home/tkloczko/.jupyter', '/h...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob_subdir - OSError: [NbConvertApp] Searching ['/tmp/tmp11shvtha', '/home/tkloczko/.jupyter', '/hom...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_markdown_display_priority - OSError: [NbConvertApp] Searching ['/tmp/tmpd50elnw7', '/home/tkloczko/.j...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_no_input - OSError: [NbConvertApp] Searching ['/tmp/tmpzwptd5c_', '/home/tkloczko/.jupyter', '/home/t...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_no_prompt - OSError: [NbConvertApp] Searching ['/tmp/tmpt4z1p_fv', '/home/tkloczko/.jupyter', '/home/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_not_embedding_images_htmlexporter - OSError: [NbConvertApp] Searching ['/tmp/tmpe9pi9ik6', '/home/tkl...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_output_ext - OSError: [NbConvertApp] Searching ['/tmp/tmpvjzeshvt', '/home/tkloczko/.jupyter', '/home...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_override_config - OSError: [NbConvertApp] Searching ['/tmp/tmpdl2ql3wy', '/home/tkloczko/.jupyter', '...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_png_base64_html_ok - OSError: [NbConvertApp] Searching ['/tmp/tmp_6xwuny9', '/home/tkloczko/.jupyter'...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_post_processor - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_relative_template_file - OSError: [NbConvertApp] Searching ['/tmp/tmp6er3mst4', '/home/tkloczko/.jupy...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_spurious_cr - OSError: [NbConvertApp] Searching ['/tmp/tmp0wfa6fas', '/home/tkloczko/.jupyter', '/hom...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_template - OSError: [NbConvertApp] Searching ['/tmp/tmpjkx34vqe', '/home/tkloczko/.jupyter', '/home/t...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium - OSError: [NbConvertApp] Converting notebook notebook2.ipynb to webpdf
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_widgets_from_htmlexporter - ValueError: No template sub-directory with name 'lab' found in the follow...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_widgets_from_nbconvert - OSError: [NbConvertApp] Searching ['/tmp/tmpcche_9hb', '/home/tkloczko/.jupy...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_write_figures_to_custom_path - OSError: [NbConvertApp] Searching ['/tmp/tmp9gfuobkv', '/home/tkloczko...
========================================================== 118 failed, 176 passed, 9 skipped in 68.50s (0:01:08) ===========================================================

@TiagodePAlves
Copy link
Contributor

python3 -sBm build -w --no-isolation

I'm getting python3: No module named build here. I believe nbconvert >= 7.0.0 is supposed to be built with hatch.

Also, installing from wheel means tests are removed from the installed files (#1822). This causes problems with some tests like test_convert_full_qualified_name, which tries to import nbconvert.tests.fake_exporters.MyExporter. That class is not part nbconvert's wheel however, so it raises an error. The solution I got before was installing nbconvert in --editable mode, which mantains the test files (and MyExporter).

We should try another solution, maybe moving MyExporter to another module, outside nbconvert, for example.

@kloczek
Copy link
Author

kloczek commented Aug 25, 2022

I'm getting python3: No module named build here. I believe nbconvert >= 7.0.0 is supposed to be built with hatch.

This module is not part of python.
It is provided by pypi https://pypi.org/project/build/

@TiagodePAlves
Copy link
Contributor

Yeah, I feel dumb now... but yeah, the resulting wheel from build is equivalent to the one from hatch.

There are two groups of errors here. The ones from nbconvert/tests/test_nbconvertapp.py don't have enough information, but they seem to be mostly related to the exporters, which are also the root cause for errors in nbconvert/exporters/tests/test_*.py. The exporters can't find the templates (from share/templates), but these are part the built wheel and should be installed in $VIRTUAL_ENV/share/jupyter/nbconvert/templates or something like that. How are you installing the package?

@kloczek
Copy link
Author

kloczek commented Aug 26, 2022

Yeah, I feel dumb now... but yeah, the resulting wheel from build is equivalent to the one from hatch.

This is because build provides generic methos of calling pep517.
OK so you been able to reporoduce that issue (which is good).

@TiagodePAlves
Copy link
Contributor

OK so you been able to reporoduce that issue (which is good).

Oh sorry, I couldn't reproduce these issues. Specifically, I couldn't reproduce an installation without the template files.

@kloczek
Copy link
Author

kloczek commented Aug 26, 2022

Oh sorry, I couldn't reproduce these issues. Specifically, I couldn't reproduce an installation without the template files.

Did you just install modulu in python tree (from root account) or did you try to install it in </install/refix and than alter PYTHONPATH as I did?
Sorry for asking but you are giving me kind of contradicting signals ..

@TiagodePAlves
Copy link
Contributor

Sorry, I got confused there. But nbconvert search for templates in JUPYTER_PATH, not in PYTHONPATH. Have you tried setting that?

@kloczek
Copy link
Author

kloczek commented Sep 1, 2022

`PYTHONPATH' it is env variable used by python.
https://www.tutorialspoint.com/What-is-PYTHONPATH-environment-variable-in-Python

@TiagodePAlves
Copy link
Contributor

Oh sure, but PYTHONPATH is for libraries. Templates are not really libraries, so they use a different variable, JUPYTER_PATH.

@kloczek
Copy link
Author

kloczek commented Oct 6, 2022

Just back to this ticket.
Issue is that there is no any templates in source tree.

@TiagodePAlves
Copy link
Contributor

Yes, the templates are installed in </install/prefix>, but since you calling /usr/bin/python (from /usr/bin/pytest) they cannot be found. The ideal solution here is to use a pytest version installed in </install/prefix>.

That said, you can try to manually set JUPYTER_PATH to </install/prefix>/share/jupyter/. Considering your output, the command should be something like:

PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.0.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.0.0-2.fc35.x86_64/usr/lib/python3.8/site-packages JUPYTER_PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.0.0-2.fc35.x86_64/usr/share/jupyter/:/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.0.0-2.fc35.x86_64/usr/share/jupyter/ /usr/bin/pytest -ra

@kloczek
Copy link
Author

kloczek commented Oct 7, 2022

That said, you can try to manually set JUPYTER_PATH to </install/prefix>/share/jupyter/. Considering your output, the command should be something like:

It does not work.
I've added in my spec file

%check
export JUPYTER_PATH=%{buildroot}%{_datadir}/jupyter/nbconvert
%pytest

and result is

+ export JUPYTER_PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.2.1-2.fc35.x86_64/usr/share/jupyter/nbconvert
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.2.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.2.1-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/nbconvert-7.2.1, configfile: pyproject.toml, testpaths: nbconvert/
plugins: cov-3.0.0, dependency-0.5.1
collected 303 items

nbconvert/exporters/tests/test_asciidoc.py .FFF.                                                                                                                     [  1%]
nbconvert/exporters/tests/test_export.py ..FFFFFF....                                                                                                                [  5%]
nbconvert/exporters/tests/test_exporter.py .......                                                                                                                   [  7%]
nbconvert/exporters/tests/test_html.py .FFFFFFFFFFFF                                                                                                                 [ 12%]
nbconvert/exporters/tests/test_latex.py ..FFF.FFFFFF                                                                                                                 [ 16%]
nbconvert/exporters/tests/test_markdown.py .FFF                                                                                                                      [ 17%]
nbconvert/exporters/tests/test_notebook.py .....                                                                                                                     [ 19%]
nbconvert/exporters/tests/test_pdf.py ..s.                                                                                                                           [ 20%]
nbconvert/exporters/tests/test_python.py .FFF                                                                                                                        [ 21%]
nbconvert/exporters/tests/test_qtpdf.py .ss                                                                                                                          [ 22%]
nbconvert/exporters/tests/test_qtpng.py .ss                                                                                                                          [ 23%]
nbconvert/exporters/tests/test_rst.py .FFFFF                                                                                                                         [ 25%]
nbconvert/exporters/tests/test_script.py .FFFF.F                                                                                                                     [ 28%]
nbconvert/exporters/tests/test_slides.py .FFF.F                                                                                                                      [ 30%]
nbconvert/exporters/tests/test_templateexporter.py ..FFFF..FFFFFFF.F.FFFFFF.FFFFFFFFFFF....F                                                                         [ 43%]
nbconvert/exporters/tests/test_webpdf.py .F..F                                                                                                                       [ 45%]
nbconvert/filters/tests/test_ansi.py ...                                                                                                                             [ 46%]
nbconvert/filters/tests/test_citation.py ...................                                                                                                         [ 52%]
nbconvert/filters/tests/test_datatypefilter.py ...                                                                                                                   [ 53%]
nbconvert/filters/tests/test_highlight.py ....                                                                                                                       [ 54%]
nbconvert/filters/tests/test_latex.py .                                                                                                                              [ 55%]
nbconvert/filters/tests/test_markdown.py .........                                                                                                                   [ 58%]
nbconvert/filters/tests/test_metadata.py .                                                                                                                           [ 58%]
nbconvert/filters/tests/test_strings.py ..............                                                                                                               [ 63%]
nbconvert/postprocessors/tests/test_serve.py .                                                                                                                       [ 63%]
nbconvert/preprocessors/tests/test_clearmetadata.py .........                                                                                                        [ 66%]
nbconvert/preprocessors/tests/test_clearoutput.py ..                                                                                                                 [ 66%]
nbconvert/preprocessors/tests/test_coalescestreams.py ...                                                                                                            [ 67%]
nbconvert/preprocessors/tests/test_csshtmlheader.py ..                                                                                                               [ 68%]
nbconvert/preprocessors/tests/test_execute.py .....                                                                                                                  [ 70%]
nbconvert/preprocessors/tests/test_extractoutput.py ...                                                                                                              [ 71%]
nbconvert/preprocessors/tests/test_highlightmagics.py ...                                                                                                            [ 72%]
nbconvert/preprocessors/tests/test_latex.py ...                                                                                                                      [ 73%]
nbconvert/preprocessors/tests/test_regexremove.py ..                                                                                                                 [ 73%]
nbconvert/preprocessors/tests/test_sanitize.py .........                                                                                                             [ 76%]
nbconvert/preprocessors/tests/test_svg2pdf.py .....                                                                                                                  [ 78%]
nbconvert/preprocessors/tests/test_tagremove.py ..                                                                                                                   [ 79%]
nbconvert/tests/test_nbconvertapp.py FFFFF.FFFFF.FFFFFFFFssFFF..sFFFF.F.FsFFFFFFFFF                                                                                  [ 94%]
nbconvert/utils/tests/test_io.py ..                                                                                                                                  [ 95%]
nbconvert/utils/tests/test_pandoc.py ..                                                                                                                              [ 95%]
nbconvert/utils/tests/test_version.py .                                                                                                                              [ 96%]
nbconvert/writers/tests/test_debug.py .                                                                                                                              [ 96%]
nbconvert/writers/tests/test_files.py ..........                                                                                                                     [ 99%]
nbconvert/writers/tests/test_stdout.py .                                                                                                                             [100%]

================================================================================= FAILURES =================================================================================
__________________________________________________________________ TestASCIIDocExporter.test_constructor ___________________________________________________________________

self = <traitlets.traitlets.List object at 0x7f23fddc50d0>, obj = <nbconvert.exporters.asciidoc.ASCIIDocExporter object at 0x7f23fcc523a0>
cls = <class 'nbconvert.exporters.asciidoc.ASCIIDocExporter'>

    def get(self, obj, cls=None):
        try:
>           value = obj._trait_values[self.name]
E           KeyError: 'template_paths'

/usr/lib/python3.8/site-packages/traitlets/traitlets.py:645: KeyError

During handling of the above exception, another exception occurred:

self = <nbconvert.exporters.tests.test_asciidoc.TestASCIIDocExporter testMethod=test_constructor>

    def test_constructor(self):
        """
        Can a ASCIIDocExporter be constructed?
        """
>       ASCIIDocExporter()

nbconvert/exporters/tests/test_asciidoc.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/templateexporter.py:342: in __init__
    super().__init__(config=config, **kw)
nbconvert/exporters/exporter.py:118: in __init__
    self._init_preprocessors()
nbconvert/exporters/templateexporter.py:508: in _init_preprocessors
    conf = self._get_conf()
nbconvert/exporters/templateexporter.py:526: in _get_conf
    for path in map(Path, self.template_paths):
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:686: in __get__
    return self.get(obj, cls)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:648: in get
    default = obj.trait_defaults(self.name)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1752: in trait_defaults
    return self._get_trait_default_generator(names[0])(self)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1132: in __call__
    return self.func(*args, **kwargs)
nbconvert/exporters/templateexporter.py:537: in _template_paths
    template_names = self.get_template_names()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.exporters.asciidoc.ASCIIDocExporter object at 0x7f23fcc523a0>

    def get_template_names(self):
        # finds a list of template names where each successive template name is the base template
        template_names = []
        root_dirs = self.get_prefix_root_dirs()
        base_template = self.template_name
        merged_conf = {}  # the configuration once all conf files are merged
        while base_template is not None:
            template_names.append(base_template)
            conf = {}
            found_at_least_one = False
            for base_dir in self.extra_template_basedirs:
                template_dir = os.path.join(base_dir, base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            for root_dir in root_dirs:
                template_dir = os.path.join(root_dir, "nbconvert", "templates", base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            if not found_at_least_one:
                # Check for backwards compatibility template names
                for root_dir in root_dirs:
                    compatibility_file = base_template + ".tpl"
                    compatibility_path = os.path.join(
                        root_dir, "nbconvert", "templates", "compatibility", compatibility_file
                    )
                    if os.path.exists(compatibility_path):
                        found_at_least_one = True
                        warnings.warn(
                            f"5.x template name passed '{self.template_name}'. Use 'lab' or 'classic' for new template usage.",
                            DeprecationWarning,
                        )
                        self.template_file = compatibility_file
                        conf = self.get_compatibility_base_template_conf(base_template)
                        self.template_name = conf.get("base_template")
                        break
                if not found_at_least_one:
                    paths = "\n\t".join(root_dirs)
>                   raise ValueError(
                        "No template sub-directory with name %r found in the following paths:\n\t%s"
                        % (base_template, paths)
                    )
E                   ValueError: No template sub-directory with name 'asciidoc' found in the following paths:
E                       /home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.2.1-2.fc35.x86_64/usr/share/jupyter/nbconvert
E                       /home/tkloczko/.local/share/jupyter
E                       /usr/share/jupyter

nbconvert/exporters/templateexporter.py:621: ValueError
_____________________________________________________________________ TestASCIIDocExporter.test_export _____________________________________________________________________

self = <traitlets.traitlets.List object at 0x7f23fddc50d0>, obj = <nbconvert.exporters.asciidoc.ASCIIDocExporter object at 0x7f23fcb37550>
cls = <class 'nbconvert.exporters.asciidoc.ASCIIDocExporter'>

    def get(self, obj, cls=None):
        try:
>           value = obj._trait_values[self.name]
E           KeyError: 'template_paths'

/usr/lib/python3.8/site-packages/traitlets/traitlets.py:645: KeyError

During handling of the above exception, another exception occurred:

self = <nbconvert.exporters.tests.test_asciidoc.TestASCIIDocExporter testMethod=test_export>

    @onlyif_cmds_exist("pandoc")
    def test_export(self):
        """
        Can a ASCIIDocExporter export something?
        """
>       (output, resources) = ASCIIDocExporter().from_filename(self._get_notebook())

nbconvert/exporters/tests/test_asciidoc.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/templateexporter.py:342: in __init__
    super().__init__(config=config, **kw)
nbconvert/exporters/exporter.py:118: in __init__
    self._init_preprocessors()
nbconvert/exporters/templateexporter.py:508: in _init_preprocessors
    conf = self._get_conf()
nbconvert/exporters/templateexporter.py:526: in _get_conf
    for path in map(Path, self.template_paths):
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:686: in __get__
    return self.get(obj, cls)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:648: in get
    default = obj.trait_defaults(self.name)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1752: in trait_defaults
    return self._get_trait_default_generator(names[0])(self)
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1132: in __call__
    return self.func(*args, **kwargs)
nbconvert/exporters/templateexporter.py:537: in _template_paths
    template_names = self.get_template_names()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.exporters.asciidoc.ASCIIDocExporter object at 0x7f23fcb37550>

    def get_template_names(self):
        # finds a list of template names where each successive template name is the base template
        template_names = []
        root_dirs = self.get_prefix_root_dirs()
        base_template = self.template_name
        merged_conf = {}  # the configuration once all conf files are merged
        while base_template is not None:
            template_names.append(base_template)
            conf = {}
            found_at_least_one = False
            for base_dir in self.extra_template_basedirs:
                template_dir = os.path.join(base_dir, base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            for root_dir in root_dirs:
                template_dir = os.path.join(root_dir, "nbconvert", "templates", base_template)
                if os.path.exists(template_dir):
                    found_at_least_one = True
                conf_file = os.path.join(template_dir, "conf.json")
                if os.path.exists(conf_file):
                    with open(conf_file) as f:
                        conf = recursive_update(json.load(f), conf)
            if not found_at_least_one:
                # Check for backwards compatibility template names
                for root_dir in root_dirs:
                    compatibility_file = base_template + ".tpl"
                    compatibility_path = os.path.join(
                        root_dir, "nbconvert", "templates", "compatibility", compatibility_file
                    )
                    if os.path.exists(compatibility_path):
                        found_at_least_one = True
                        warnings.warn(
                            f"5.x template name passed '{self.template_name}'. Use 'lab' or 'classic' for new template usage.",
                            DeprecationWarning,
                        )
                        self.template_file = compatibility_file
                        conf = self.get_compatibility_base_template_conf(base_template)
                        self.template_name = conf.get("base_template")
                        break
                if not found_at_least_one:
                    paths = "\n\t".join(root_dirs)
>                   raise ValueError(
                        "No template sub-directory with name %r found in the following paths:\n\t%s"
                        % (base_template, paths)
                    )
E                   ValueError: No template sub-directory with name 'asciidoc' found in the following paths:
E                       /home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.2.1-2.fc35.x86_64/usr/share/jupyter/nbconvert
E                       /home/tkloczko/.local/share/jupyter
E                       /usr/share/jupyter

nbconvert/exporters/templateexporter.py:621: ValueError
________________________________________________________________ TestASCIIDocExporter.test_export_no_prompt ________________________________________________________________

[..]

=========================================================================== slowest 10 durations ===========================================================================
1.38s call     nbconvert/preprocessors/tests/test_execute.py::test_basic_execution
1.27s call     nbconvert/preprocessors/tests/test_execute.py::test_mixed_markdown_execution
1.24s call     nbconvert/preprocessors/tests/test_execute.py::test_preprocess_cell
1.22s call     nbconvert/preprocessors/tests/test_execute.py::test_populate_language_info
1.03s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name
1.00s call     nbconvert/preprocessors/tests/test_execute.py::test_executenb
0.94s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium
0.92s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedded_jpeg
0.91s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_output_suffix
0.91s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_different_build_dir
========================================================================= short test summary info ==========================================================================
SKIPPED [1] nbconvert/exporters/tests/test_pdf.py:28: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/exporters/tests/test_qtpdf.py:19: PyQtWebEngine not installed
SKIPPED [2] nbconvert/exporters/tests/base.py:28: PyQtWebEngine not installed
SKIPPED [1] nbconvert/exporters/tests/test_qtpng.py:21: PyQtWebEngine not installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:272: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:135: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:477: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:159: This test runs only if command 'xelatex' is installed
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_constructor - ValueError: No template sub-directory with name 'asciidoc' found in the follo...
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_export - ValueError: No template sub-directory with name 'asciidoc' found in the following ...
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_export_no_prompt - ValueError: No template sub-directory with name 'asciidoc' found in the ...
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_filename - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_filestream - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_nbnode - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_resources - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_using_exporter - ValueError: No template sub-directory with name 'python' found in the following...
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_using_exporter_class - ValueError: No template sub-directory with name 'python' found in the fol...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_attachments - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_basic_name - ValueError: No template sub-directory with name 'basic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_constructor - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_custom_filter_highlight_code - ValueError: No template sub-directory with name 'classic' found in t...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export_classic - ValueError: No template sub-directory with name 'classic' found in the following p...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export_notebook - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_javascript_injection - ValueError: No template sub-directory with name 'lab' found in the following...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_javascript_output - ValueError: No template sub-directory with name 'classic' found in the followin...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_png_metadata - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_prompt_number - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'lab' found in the following p...
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_custom_filter_highlight_code - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_export - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_export_book - jinja2.exceptions.TemplateNotFound: report
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_no_prompt_yes_input - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_prompt_number_color - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_prompt_number_color_ipython - jinja2.exceptions.TemplateNotFound: style_ipython.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_raw_cell_inclusion - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_svg - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_very_long_cells - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_constructor - ValueError: No template sub-directory with name 'markdown' found in the follo...
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_export - ValueError: No template sub-directory with name 'markdown' found in the following ...
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'markdown' found in th...
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_constructor - ValueError: No template sub-directory with name 'python' found in the following p...
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_export - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'python' found in the foll...
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_constructor - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_empty_code_cell - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_export - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_png_metadata - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_constructor - ValueError: No template sub-directory with name 'script' found in the following p...
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export_config_transfer - ValueError: No template sub-directory with name 'script' found in the ...
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export_python - ValueError: No template sub-directory with name 'script' found in the following...
FAILED nbconvert/exporters/tests/test_script.py::test_script_exporter_entrypoint - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_constructor - ValueError: No template sub-directory with name 'reveal' found in the following p...
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_export - ValueError: No template sub-directory with name 'reveal' found in the following paths:
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_export_reveal - ValueError: No template sub-directory with name 'reveal' found in the following...
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'reveal' found in the foll...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_file - ValueError: No template sub-directory with name 'python' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_file_compatibility - ValueError: No template sub-directory with name 'pyt...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_name_5x_compatibility_display_priority - ValueError: No template sub-dire...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_name_5x_compatibility_full - ValueError: No template sub-directory with n...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_code_cell - ValueError: No template sub-directory with name 'markdown' found in the...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_input_prompt - ValueError: No template sub-directory with name 'markdown' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_markdown - ValueError: No template sub-directory with name 'python' found in the fo...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_output_prompt - ValueError: No template sub-directory with name 'lab' found in the ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_output_stdin - ValueError: No template sub-directory with name 'lab' found in the f...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_export - ValueError: No template sub-directory with name 'python' found in the following pa...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_extract_outputs - ValueError: No template sub-directory with name 'python' found in the fol...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_include_output_stdin - ValueError: No template sub-directory with name 'lab' found in the f...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_local_template_file_extending_lab - ValueError: No template sub-directory with name 'lab' f...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_pickle - ValueError: No template sub-directory with name 'python' found in the following pa...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_class - ValueError: No template sub-directory with name 'python' found in the ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_dottedobjectname - ValueError: No template sub-directory with name 'python' fo...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_instance - ValueError: No template sub-directory with name 'python' found in t...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_via_method - ValueError: No template sub-directory with name 'python' found in...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_assignment - ValueError: No template sub-directory with name 'rst' found in th...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_attr - ValueError: No template sub-directory with name 'rst' found in the foll...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_constructor - ValueError: No template sub-directory with name 'rst' found in t...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_deassignment - ValueError: No template sub-directory with name 'rst' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dereassignment - ValueError: No template sub-directory with name 'rst' found i...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dynamic_attr - ValueError: No template sub-directory with name 'rst' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dynamic_attr_reversed - ValueError: No template sub-directory with name 'rst' ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_init - ValueError: No template sub-directory with name 'rst' found in the foll...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_reassignment - ValueError: No template sub-directory with name 'rst' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_relative_template_file - ValueError: No template sub-directory with name 'python' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_relative_template_file_compatibility - ValueError: No template sub-directory with name 'pyt...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_remove_elements_with_tags - ValueError: No template sub-directory with name 'markdown' foun...
FAILED nbconvert/exporters/tests/test_webpdf.py::TestWebPDFExporter::test_export - jinja2.exceptions.TemplateNotFound: index.html.j2
FAILED nbconvert/exporters/tests/test_webpdf.py::TestWebPDFExporter::test_webpdf_without_pyppeteer - jinja2.exceptions.TemplateNotFound: index.html.j2
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_absolute_template_file - OSError: [NbConvertApp] Searching ['/tmp/tmpg5kcw4c0', '/home/tkloczko/.jupy...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_accents_in_filename - OSError: [NbConvertApp] Searching ['/tmp/tmp4vw5qhye', '/home/tkloczko/.jupyter...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_allow_errors - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_build_dir - OSError: [NbConvertApp] Searching ['/tmp/tmpkplpew6j', '/home/tkloczko/.jupyter', '/home/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_cell_tag_output - OSError: [NbConvertApp] Searching ['/tmp/tmp1amb6xal', '/home/tkloczko/.jupyter', '...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_from_stdin - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_from_stdin_to_stdout - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name - OSError: [NbConvertApp] Searching ['/tmp/tmp6nq0fadr', '/home/tkloczko/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_cwd_plugin - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_default_config - OSError: [NbConvertApp] Searching ['/tmp/tmpbabsll_a', '/home/tkloczko/.jupyter', '/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedded_jpeg - OSError: [NbConvertApp] Converting notebook notebook4_jpeg.ipynb to latex
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedding_images_htmlexporter - OSError: [NbConvertApp] Searching ['/tmp/tmp3_qn1t1t', '/home/tkloczk...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_errors_print_traceback - assert 'print("Some text before the error")' in 'Traceback (most recent call...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_execute_multiple_notebooks - OSError: [NbConvertApp] Searching ['/tmp/tmp1t9r2bkg', '/home/tkloczko/....
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_execute_widgets_from_nbconvert - OSError: [NbConvertApp] Searching ['/tmp/tmpmyc7zwv2', '/home/tklocz...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_explicit - OSError: [NbConvertApp] Searching ['/tmp/tmp7xkm4ikj', '/home/tkloczko/.jupyter', '/home/t...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_explicit_glob - OSError: [NbConvertApp] Searching ['/tmp/tmp5pim6z9w', '/home/tkloczko/.jupyter', '/h...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_fenced_code_blocks_markdown - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob - OSError: [NbConvertApp] Searching ['/tmp/tmpaul52gzw', '/home/tkloczko/.jupyter', '/home/tkloc...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob_explicit - OSError: [NbConvertApp] Searching ['/tmp/tmphi4y11gf', '/home/tkloczko/.jupyter', '/h...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob_subdir - OSError: [NbConvertApp] Searching ['/tmp/tmphicarg5g', '/home/tkloczko/.jupyter', '/hom...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_markdown_display_priority - OSError: [NbConvertApp] Searching ['/tmp/tmplkzue9q4', '/home/tkloczko/.j...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_no_input - OSError: [NbConvertApp] Searching ['/tmp/tmp8w0mov34', '/home/tkloczko/.jupyter', '/home/t...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_no_prompt - OSError: [NbConvertApp] Searching ['/tmp/tmp9vsl2n0s', '/home/tkloczko/.jupyter', '/home/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_not_embedding_images_htmlexporter - OSError: [NbConvertApp] Searching ['/tmp/tmp3axir__h', '/home/tkl...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_output_ext - OSError: [NbConvertApp] Searching ['/tmp/tmp6n6n8xsd', '/home/tkloczko/.jupyter', '/home...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_override_config - OSError: [NbConvertApp] Searching ['/tmp/tmppfgd6tcx', '/home/tkloczko/.jupyter', '...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_png_base64_html_ok - OSError: [NbConvertApp] Searching ['/tmp/tmpo2j76ccz', '/home/tkloczko/.jupyter'...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_post_processor - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_relative_template_file - OSError: [NbConvertApp] Searching ['/tmp/tmpb__z27uv', '/home/tkloczko/.jupy...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_spurious_cr - OSError: [NbConvertApp] Searching ['/tmp/tmpbzf3axdi', '/home/tkloczko/.jupyter', '/hom...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_template - OSError: [NbConvertApp] Searching ['/tmp/tmpx544wtnh', '/home/tkloczko/.jupyter', '/home/t...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium - OSError: [NbConvertApp] Converting notebook notebook2.ipynb to webpdf
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_widgets_from_htmlexporter - ValueError: No template sub-directory with name 'lab' found in the follow...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_widgets_from_nbconvert - OSError: [NbConvertApp] Searching ['/tmp/tmplfoqsl07', '/home/tkloczko/.jupy...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_write_figures_to_custom_path - OSError: [NbConvertApp] Searching ['/tmp/tmpl51wtv41', '/home/tkloczko...
========================================================== 118 failed, 176 passed, 9 skipped in 61.88s (0:01:01) ===========================================================
[tkloczko@pers-jacek SPECS]$ ls /home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.2.1-2.fc35.x86_64/usr/share/jupyter/nbconvert/templates/asciidoc/ -la
total 8
drwxr-xr-x 1 tkloczko tkloczko   52 Oct  7 02:00 .
drwxr-xr-x 1 tkloczko tkloczko  160 Oct  7 02:00 ..
-rw-r--r-- 1 tkloczko tkloczko   78 Oct  7 02:00 conf.json
-rw-r--r-- 1 tkloczko tkloczko 2298 Oct  7 02:00 index.asciidoc.j2

@TiagodePAlves
Copy link
Contributor

Sorry, the path should end in share/jupyter/, without nbconvert. So, JUPYTER_PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.2.1-2.fc35.x86_64/usr/share/jupyter/.

@kloczek
Copy link
Author

kloczek commented Nov 14, 2022

Updated list of failing units with $JUPYTER_PATH env variable for 7.2.5

============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/jupyter_client/connect.py:27
  /usr/lib/python3.8/site-packages/jupyter_client/connect.py:27: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs
  given by the platformdirs library.  To remove this warning and
  see the appropriate new directories, set the environment variable
  `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.
  The use of platformdirs will be the default in `jupyter_core` v6
    from jupyter_core.paths import jupyter_data_dir

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================================================================== slowest 10 durations ===========================================================================
2.04s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_accents_in_filename
1.98s call     nbconvert/preprocessors/tests/test_execute.py::test_populate_language_info
1.95s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_absolute_template_file
1.83s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_allow_errors
1.79s call     nbconvert/preprocessors/tests/test_execute.py::test_executenb
1.79s call     nbconvert/preprocessors/tests/test_execute.py::test_preprocess_cell
1.44s call     nbconvert/preprocessors/tests/test_execute.py::test_basic_execution
1.32s call     nbconvert/preprocessors/tests/test_execute.py::test_mixed_markdown_execution
1.13s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_from_stdin
1.13s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name
========================================================================= short test summary info ==========================================================================
SKIPPED [1] nbconvert/exporters/tests/test_pdf.py:28: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/exporters/tests/test_qtpdf.py:19: PyQtWebEngine not installed
SKIPPED [2] nbconvert/exporters/tests/base.py:28: PyQtWebEngine not installed
SKIPPED [1] nbconvert/exporters/tests/test_qtpng.py:21: PyQtWebEngine not installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:272: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:135: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:477: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:159: This test runs only if command 'xelatex' is installed
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_constructor - ValueError: No template sub-directory with name 'asciidoc' found in the follo...
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_export - ValueError: No template sub-directory with name 'asciidoc' found in the following ...
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_export_no_prompt - ValueError: No template sub-directory with name 'asciidoc' found in the ...
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_filename - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_filestream - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_nbnode - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_resources - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_using_exporter - ValueError: No template sub-directory with name 'python' found in the following...
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_using_exporter_class - ValueError: No template sub-directory with name 'python' found in the fol...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_attachments - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_basic_name - ValueError: No template sub-directory with name 'basic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_constructor - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_custom_filter_highlight_code - ValueError: No template sub-directory with name 'classic' found in t...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export_classic - ValueError: No template sub-directory with name 'classic' found in the following p...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export_notebook - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_javascript_injection - ValueError: No template sub-directory with name 'lab' found in the following...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_javascript_output - ValueError: No template sub-directory with name 'classic' found in the followin...
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_png_metadata - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_prompt_number - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'lab' found in the following p...
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_custom_filter_highlight_code - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_export - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_export_book - jinja2.exceptions.TemplateNotFound: report
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_no_prompt_yes_input - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_prompt_number_color - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_prompt_number_color_ipython - jinja2.exceptions.TemplateNotFound: style_ipython.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_raw_cell_inclusion - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_svg - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_very_long_cells - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_constructor - ValueError: No template sub-directory with name 'markdown' found in the follo...
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_export - ValueError: No template sub-directory with name 'markdown' found in the following ...
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'markdown' found in th...
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_constructor - ValueError: No template sub-directory with name 'python' found in the following p...
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_export - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'python' found in the foll...
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_constructor - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_empty_code_cell - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_export - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_png_metadata - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_constructor - ValueError: No template sub-directory with name 'script' found in the following p...
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export_config_transfer - ValueError: No template sub-directory with name 'script' found in the ...
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export_python - ValueError: No template sub-directory with name 'script' found in the following...
FAILED nbconvert/exporters/tests/test_script.py::test_script_exporter_entrypoint - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_constructor - ValueError: No template sub-directory with name 'reveal' found in the following p...
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_export - ValueError: No template sub-directory with name 'reveal' found in the following paths:
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_export_reveal - ValueError: No template sub-directory with name 'reveal' found in the following...
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'reveal' found in the foll...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_file - ValueError: No template sub-directory with name 'python' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_file_compatibility - ValueError: No template sub-directory with name 'pyt...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_name_5x_compatibility_display_priority - ValueError: No template sub-dire...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_name_5x_compatibility_full - ValueError: No template sub-directory with n...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_code_cell - ValueError: No template sub-directory with name 'markdown' found in the...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_input_prompt - ValueError: No template sub-directory with name 'markdown' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_markdown - ValueError: No template sub-directory with name 'python' found in the fo...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_output_prompt - ValueError: No template sub-directory with name 'lab' found in the ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_output_stdin - ValueError: No template sub-directory with name 'lab' found in the f...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_export - ValueError: No template sub-directory with name 'python' found in the following pa...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_extract_outputs - ValueError: No template sub-directory with name 'python' found in the fol...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_include_output_stdin - ValueError: No template sub-directory with name 'lab' found in the f...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_local_template_file_extending_lab - ValueError: No template sub-directory with name 'lab' f...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_pickle - ValueError: No template sub-directory with name 'python' found in the following pa...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_class - ValueError: No template sub-directory with name 'python' found in the ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_dottedobjectname - ValueError: No template sub-directory with name 'python' fo...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_instance - ValueError: No template sub-directory with name 'python' found in t...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_via_method - ValueError: No template sub-directory with name 'python' found in...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_assignment - ValueError: No template sub-directory with name 'rst' found in th...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_attr - ValueError: No template sub-directory with name 'rst' found in the foll...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_constructor - ValueError: No template sub-directory with name 'rst' found in t...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_deassignment - ValueError: No template sub-directory with name 'rst' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dereassignment - ValueError: No template sub-directory with name 'rst' found i...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dynamic_attr - ValueError: No template sub-directory with name 'rst' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dynamic_attr_reversed - ValueError: No template sub-directory with name 'rst' ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_init - ValueError: No template sub-directory with name 'rst' found in the foll...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_reassignment - ValueError: No template sub-directory with name 'rst' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_relative_template_file - ValueError: No template sub-directory with name 'python' found in ...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_relative_template_file_compatibility - ValueError: No template sub-directory with name 'pyt...
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_remove_elements_with_tags - ValueError: No template sub-directory with name 'markdown' foun...
FAILED nbconvert/exporters/tests/test_webpdf.py::TestWebPDFExporter::test_export - jinja2.exceptions.TemplateNotFound: index.html.j2
FAILED nbconvert/exporters/tests/test_webpdf.py::TestWebPDFExporter::test_webpdf_without_pyppeteer - jinja2.exceptions.TemplateNotFound: index.html.j2
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_absolute_template_file - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczk...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_accents_in_filename - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/....
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_allow_errors - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_build_dir - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_cell_tag_output - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.loca...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_from_stdin - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_from_stdin_to_stdout - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tk...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_cwd_plugin - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_default_config - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedded_jpeg - OSError: [NbConvertApp] Converting notebook notebook4_jpeg.ipynb to latex
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedded_svg_remains - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedding_images_htmlexporter - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_errors_print_traceback - assert 'print("Some text before the error")' in 'Traceback (most recent call...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_execute_multiple_notebooks - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkl...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_execute_widgets_from_nbconvert - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_explicit - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/j...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_explicit_glob - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_fenced_code_blocks_markdown - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyt...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob_explicit - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob_subdir - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/et...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_markdown_display_priority - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tklo...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_no_input - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/j...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_no_prompt - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_not_embedding_images_htmlexporter - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/h...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_output_ext - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_override_config - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.loca...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_png_base64_html_ok - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.l...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_post_processor - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_relative_template_file - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczk...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_spurious_cr - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/et...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_template - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/j...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium - OSError: [NbConvertApp] Converting notebook notebook2.ipynb to webpdf
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_widgets_from_htmlexporter - ValueError: No template sub-directory with name 'lab' found in the follow...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_widgets_from_nbconvert - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczk...
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_write_figures_to_custom_path - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/t...
===================================================== 119 failed, 176 passed, 9 skipped, 1 warning in 73.17s (0:01:13) =====================================================

@kloczek
Copy link
Author

kloczek commented Nov 14, 2022

FYI: I've added list of currently failing units to --deselect list to have wortking baseline and assuming that it is still some set of test suite issues.

@kloczek
Copy link
Author

kloczek commented Dec 5, 2022

Updated list of failing units with $JUPYTER_PATH env variable for 7.2.5

============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/jupyter_client/connect.py:27
  /usr/lib/python3.8/site-packages/jupyter_client/connect.py:27: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs
  given by the platformdirs library.  To remove this warning and
  see the appropriate new directories, set the environment variable
  `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.
  The use of platformdirs will be the default in `jupyter_core` v6
    from jupyter_core.paths import jupyter_data_dir

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================================================================== slowest 10 durations ===========================================================================
1.47s call     nbconvert/preprocessors/tests/test_execute.py::test_basic_execution
1.32s call     nbconvert/preprocessors/tests/test_execute.py::test_mixed_markdown_execution
1.24s call     nbconvert/preprocessors/tests/test_execute.py::test_populate_language_info
1.20s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name
1.19s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_clear_output
1.16s call     nbconvert/preprocessors/tests/test_execute.py::test_executenb
1.13s call     nbconvert/preprocessors/tests/test_execute.py::test_preprocess_cell
1.05s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_spurious_cr
1.05s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_default_config
1.03s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium
========================================================================= short test summary info ==========================================================================
SKIPPED [1] nbconvert/exporters/tests/test_pdf.py:28: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/exporters/tests/test_qtpdf.py:19: PyQtWebEngine not installed
SKIPPED [2] nbconvert/exporters/tests/base.py:28: PyQtWebEngine not installed
SKIPPED [1] nbconvert/exporters/tests/test_qtpng.py:21: PyQtWebEngine not installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:272: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:135: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:477: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:159: This test runs only if command 'xelatex' is installed
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_constructor - ValueError: No template sub-directory with name 'asciidoc' found in the following paths:
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_export - ValueError: No template sub-directory with name 'asciidoc' found in the following paths:
FAILED nbconvert/exporters/tests/test_asciidoc.py::TestASCIIDocExporter::test_export_no_prompt - ValueError: No template sub-directory with name 'asciidoc' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_filename - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_filestream - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_nbnode - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_resources - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_using_exporter - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_export.py::TestExport::test_export_using_exporter_class - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_attachments - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_basic_name - ValueError: No template sub-directory with name 'basic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_constructor - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_custom_filter_highlight_code - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export_classic - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_export_notebook - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_javascript_injection - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_javascript_output - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_png_metadata - ValueError: No template sub-directory with name 'classic' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_prompt_number - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_custom_filter_highlight_code - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_export - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_export_book - jinja2.exceptions.TemplateNotFound: report
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_no_prompt_yes_input - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_prompt_number_color - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_prompt_number_color_ipython - jinja2.exceptions.TemplateNotFound: style_ipython.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_raw_cell_inclusion - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_svg - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_very_long_cells - jinja2.exceptions.TemplateNotFound: index.tex.j2
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_constructor - ValueError: No template sub-directory with name 'markdown' found in the following paths:
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_export - ValueError: No template sub-directory with name 'markdown' found in the following paths:
FAILED nbconvert/exporters/tests/test_markdown.py::TestMarkdownExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'markdown' found in the following paths:
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_constructor - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_export - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_constructor - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_empty_code_cell - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_export - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_png_metadata - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_rst.py::TestRSTExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_constructor - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export_config_transfer - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::TestScriptExporter::test_export_python - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_script.py::test_script_exporter_entrypoint - ValueError: No template sub-directory with name 'script' found in the following paths:
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_constructor - ValueError: No template sub-directory with name 'reveal' found in the following paths:
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_export - ValueError: No template sub-directory with name 'reveal' found in the following paths:
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_export_reveal - ValueError: No template sub-directory with name 'reveal' found in the following paths:
FAILED nbconvert/exporters/tests/test_slides.py::TestSlidesExporter::test_raw_cell_inclusion - ValueError: No template sub-directory with name 'reveal' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_file - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_file_compatibility - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_name_5x_compatibility_display_priority - ValueError: No template sub-directory with name 'display_priority' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_absolute_template_name_5x_compatibility_full - ValueError: No template sub-directory with name 'full' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_code_cell - ValueError: No template sub-directory with name 'markdown' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_input_prompt - ValueError: No template sub-directory with name 'markdown' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_markdown - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_output_prompt - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_exclude_output_stdin - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_export - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_extract_outputs - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_include_output_stdin - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_local_template_file_extending_lab - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_pickle - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_class - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_dottedobjectname - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_instance - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_preprocessor_via_method - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_assignment - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_attr - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_constructor - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_deassignment - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dereassignment - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dynamic_attr - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_dynamic_attr_reversed - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_init - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_raw_template_reassignment - ValueError: No template sub-directory with name 'rst' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_relative_template_file - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_relative_template_file_compatibility - ValueError: No template sub-directory with name 'python' found in the following paths:
FAILED nbconvert/exporters/tests/test_templateexporter.py::TestExporter::test_remove_elements_with_tags - ValueError: No template sub-directory with name 'markdown' found in the following paths:
FAILED nbconvert/exporters/tests/test_webpdf.py::TestWebPDFExporter::test_export - jinja2.exceptions.TemplateNotFound: index.html.j2
FAILED nbconvert/exporters/tests/test_webpdf.py::TestWebPDFExporter::test_webpdf_without_pyppeteer - jinja2.exceptions.TemplateNotFound: index.html.j2
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_absolute_template_file - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_accents_in_filename - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_allow_errors - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_build_dir - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_cell_tag_output - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_from_stdin - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_from_stdin_to_stdout - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_cwd_plugin - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_default_config - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedded_jpeg - OSError: [NbConvertApp] Converting notebook notebook4_jpeg.ipynb to latex
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedded_svg_remains - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_embedding_images_htmlexporter - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_errors_print_traceback - assert 'print("Some text before the error")' in 'Traceback (most recent call last):\n  File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 645, in ge....
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_execute_multiple_notebooks - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_execute_widgets_from_nbconvert - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_explicit - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_explicit_glob - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_fenced_code_blocks_markdown - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob_explicit - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_glob_subdir - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_markdown_display_priority - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_no_input - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_no_prompt - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_not_embedding_images_htmlexporter - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_output_ext - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_override_config - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_png_base64_html_ok - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_post_processor - OSError: Traceback (most recent call last):
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_relative_template_file - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_spurious_cr - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_template - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium - OSError: [NbConvertApp] Converting notebook notebook2.ipynb to webpdf
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_widgets_from_htmlexporter - ValueError: No template sub-directory with name 'lab' found in the following paths:
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_widgets_from_nbconvert - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_write_figures_to_custom_path - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
===================================================== 119 failed, 176 passed, 9 skipped, 1 warning in 68.74s (0:01:08) =====================================================

@kloczek
Copy link
Author

kloczek commented Apr 10, 2023

I back again nbconvert trying updated to 7.3.1.

It was my failt in $JUPYTER_PATH.
After add proper value of that env variable I have now only 4 units failing

Here is list of installed modules in build env

+ JUPYTER_PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-2.fc35.x86_64/usr/share/jupyter
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-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.3.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/nbconvert-7.3.1
configfile: pyproject.toml
testpaths: nbconvert/
plugins: cov-4.0.0, dependency-0.5.1, shutil-1.7.0, virtualenv-1.7.0, flake8-1.1.1, xdist-3.2.0, timeout-2.1.0, checkdocs-2.9.0
collected 305 items / 2 deselected / 303 selected

nbconvert/exporters/tests/test_asciidoc.py .....                                                                                                                                      [  1%]
nbconvert/exporters/tests/test_export.py ............                                                                                                                                 [  5%]
nbconvert/exporters/tests/test_exporter.py .......                                                                                                                                    [  7%]
nbconvert/exporters/tests/test_html.py .............                                                                                                                                  [ 12%]
nbconvert/exporters/tests/test_latex.py ............                                                                                                                                  [ 16%]
nbconvert/exporters/tests/test_markdown.py ....                                                                                                                                       [ 17%]
nbconvert/exporters/tests/test_notebook.py .....                                                                                                                                      [ 19%]
nbconvert/exporters/tests/test_pdf.py ..s.                                                                                                                                            [ 20%]
nbconvert/exporters/tests/test_python.py ..F.                                                                                                                                         [ 21%]
nbconvert/exporters/tests/test_qtpdf.py .ss                                                                                                                                           [ 22%]
nbconvert/exporters/tests/test_qtpng.py .ss                                                                                                                                           [ 23%]
nbconvert/exporters/tests/test_rst.py ......                                                                                                                                          [ 25%]
nbconvert/exporters/tests/test_script.py .......                                                                                                                                      [ 28%]
nbconvert/exporters/tests/test_slides.py ......                                                                                                                                       [ 30%]
nbconvert/exporters/tests/test_templateexporter.py .........................................                                                                                          [ 43%]
nbconvert/exporters/tests/test_webpdf.py ...F                                                                                                                                         [ 44%]
nbconvert/filters/tests/test_ansi.py ...                                                                                                                                              [ 45%]
nbconvert/filters/tests/test_citation.py ...................                                                                                                                          [ 52%]
nbconvert/filters/tests/test_datatypefilter.py ...                                                                                                                                    [ 53%]
nbconvert/filters/tests/test_highlight.py ....                                                                                                                                        [ 54%]
nbconvert/filters/tests/test_latex.py .                                                                                                                                               [ 54%]
nbconvert/filters/tests/test_markdown.py .........                                                                                                                                    [ 57%]
nbconvert/filters/tests/test_metadata.py .                                                                                                                                            [ 58%]
nbconvert/filters/tests/test_strings.py ..............                                                                                                                                [ 62%]
nbconvert/postprocessors/tests/test_serve.py .                                                                                                                                        [ 63%]
nbconvert/preprocessors/tests/test_clearmetadata.py .........                                                                                                                         [ 66%]
nbconvert/preprocessors/tests/test_clearoutput.py ..                                                                                                                                  [ 66%]
nbconvert/preprocessors/tests/test_coalescestreams.py ...                                                                                                                             [ 67%]
nbconvert/preprocessors/tests/test_csshtmlheader.py ..                                                                                                                                [ 68%]
nbconvert/preprocessors/tests/test_execute.py .....                                                                                                                                   [ 69%]
nbconvert/preprocessors/tests/test_extractoutput.py ...                                                                                                                               [ 70%]
nbconvert/preprocessors/tests/test_highlightmagics.py ...                                                                                                                             [ 71%]
nbconvert/preprocessors/tests/test_latex.py ...                                                                                                                                       [ 72%]
nbconvert/preprocessors/tests/test_regexremove.py ..                                                                                                                                  [ 73%]
nbconvert/preprocessors/tests/test_sanitize.py .........                                                                                                                              [ 76%]
nbconvert/preprocessors/tests/test_svg2pdf.py .....                                                                                                                                   [ 78%]
nbconvert/preprocessors/tests/test_tagremove.py ..                                                                                                                                    [ 78%]
nbconvert/tests/test_nbconvertapp.py ........F............ss.....s.........s.F......                                                                                                  [ 94%]
nbconvert/utils/tests/test_io.py ..                                                                                                                                                   [ 95%]
nbconvert/utils/tests/test_pandoc.py ..                                                                                                                                               [ 95%]
nbconvert/utils/tests/test_version.py .                                                                                                                                               [ 96%]
nbconvert/writers/tests/test_debug.py .                                                                                                                                               [ 96%]
nbconvert/writers/tests/test_files.py ..........                                                                                                                                      [ 99%]
nbconvert/writers/tests/test_stdout.py .                                                                                                                                              [100%]

========================================================================================= FAILURES ==========================================================================================
______________________________________________________________________________ TestPythonExporter.test_export _______________________________________________________________________________

self = <nbconvert.exporters.tests.test_python.TestPythonExporter testMethod=test_export>

    def test_export(self):
        """Can a PythonExporter export something?"""
        (output, resources) = self.exporter_class().from_filename(  # type:ignore
            self._get_notebook()
        )
        self.assertIn("coding: utf-8", output)
>       self.assertIn("#!/usr/bin/python3", output)
E       AssertionError: '#!/usr/bin/python3' not found in "#!/usr/bin/env python\n# coding: utf-8\n\n# # NumPy and Matplotlib examples\n\n# First import NumPy and Matplotlib:\n\n# In[1]:\n\n\nget_ipython().run_line_magic('pylab', 'inline')\n\n\n# In[2]:\n\n\nimport numpy as np\n\n\n# Now we show some very basic examples of how they can be used.\n\n# In[6]:\n\n\na = np.random.uniform(size=(100, 100))\n\n\n# In[7]:\n\n\na.shape\n\n\n# In[8]:\n\n\nevs = np.linalg.eigvals(a)\n\n\n# In[10]:\n\n\nevs.shape\n\n\n# Here is a cell that has both text and PNG output:\n\n# In[14]:\n\n\nhist(evs.real)\n\n\n# This cell is just markdown testing whether an ASCIIDoc quirk is caught and whether [header links are rendered](#numpy-and-matplotlib-examples) even if they [don't resolve correctly now](#NumPy-and-Matplotlib-examples).\n# \n# one *test* two *tests*. three *tests*\n\n# Make sure markdown parser doesn't crash with empty Latex formulas blocks\n# $$ $$\n# \\[\\]\n# $$\n"

nbconvert/exporters/tests/test_python.py:26: AssertionError
_____________________________________________________________________ TestWebPDFExporter.test_webpdf_without_pyppeteer ______________________________________________________________________

self = <nbconvert.exporters.tests.test_webpdf.TestWebPDFExporter testMethod=test_webpdf_without_pyppeteer>

    def test_webpdf_without_pyppeteer(self):
        """
        Generate PDFs if chromium not present?
        """
        with pytest.raises(RuntimeError):
            exporter = WebPDFExporter()
            with open(self._get_notebook(), encoding="utf-8") as f:
>               nb = exporter.from_file(f, resources={})

nbconvert/exporters/tests/test_webpdf.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nbconvert/exporters/templateexporter.py:391: in from_file
    return super().from_file(file_stream, resources, **kw)  # type:ignore
nbconvert/exporters/exporter.py:219: in from_file
    return self.from_notebook_node(
nbconvert/exporters/webpdf.py:158: in from_notebook_node
    pdf_data = self.run_pyppeteer(html)
nbconvert/exporters/webpdf.py:146: in run_pyppeteer
    pdf_data = pool.submit(run_coroutine, main(temp_file)).result()
/usr/lib64/python3.8/concurrent/futures/_base.py:444: in result
    return self.__get_result()
/usr/lib64/python3.8/concurrent/futures/_base.py:389: in __get_result
    raise self._exception
/usr/lib64/python3.8/concurrent/futures/thread.py:57: in run
    result = self.fn(*self.args, **self.kwargs)
nbconvert/exporters/webpdf.py:144: in run_coroutine
    return loop.run_until_complete(coro)
/usr/lib64/python3.8/asyncio/base_events.py:616: in run_until_complete
    return future.result()
nbconvert/exporters/webpdf.py:92: in main
    browser = await self._check_launch_reqs()(
/usr/lib/python3.8/site-packages/pyppeteer/launcher.py:307: in launch
    return await Launcher(options, **kwargs).launch()
/usr/lib/python3.8/site-packages/pyppeteer/launcher.py:168: in launch
    self.browserWSEndpoint = get_ws_endpoint(self.url)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

url = 'http://127.0.0.1:49377/json/version'

    def get_ws_endpoint(url) -> str:
        url = url + '/json/version'
        timeout = time.time() + 30
        while (True):
            if time.time() > timeout:
>               raise BrowserError('Browser closed unexpectedly:\n')
E               pyppeteer.errors.BrowserError: Browser closed unexpectedly:

/usr/lib/python3.8/site-packages/pyppeteer/launcher.py:227: BrowserError
_____________________________________________________________________ TestNbConvertApp.test_convert_full_qualified_name _____________________________________________________________________

self = <nbconvert.tests.test_nbconvertapp.TestNbConvertApp testMethod=test_convert_full_qualified_name>

    def test_convert_full_qualified_name(self):
        """
        Test that nbconvert can convert file using a full qualified name for a
        package, import and use it.
        """
        with self.create_temp_cwd():
            self.copy_files_to(["notebook*.ipynb"], "subdir")
>           self.nbconvert(
                "--to nbconvert.tests.fake_exporters.MyExporter --log-level 0 "
                + os.path.join("subdir", "*.ipynb")
            )

nbconvert/tests/test_nbconvertapp.py:79:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.tests.test_nbconvertapp.TestNbConvertApp testMethod=test_convert_full_qualified_name>
parameters = ['--to', 'nbconvert.tests.fake_exporters.MyExporter', '--log-level', '0', 'subdir/*.ipynb'], ignore_return_code = False, stdin = None

    def nbconvert(self, parameters, ignore_return_code=False, stdin=None):
        """
        Run nbconvert as a shell command, listening for both Errors and
        non-zero return codes. Returns the tuple (stdout, stderr) of
        output produced during the nbconvert run.

        Parameters
        ----------
        parameters : str, list(str)
            List of parameters to pass to IPython.
        ignore_return_code : optional bool (default False)
            Throw an OSError if the return code
        """
        cmd = [sys.executable, "-m", "nbconvert"]
        if sys.platform == "win32":
            if isinstance(parameters, (str,)):
                cmd = " ".join(cmd) + " " + parameters
            else:
                cmd = " ".join(cmd + parameters)
        else:
            if isinstance(parameters, (str,)):
                parameters = shlex.split(parameters)
            cmd += parameters
        p = Popen(cmd, stdout=PIPE, stderr=PIPE, stdin=PIPE)
        stdout, stderr = p.communicate(input=stdin)
        if not (p.returncode == 0 or ignore_return_code):
>           raise OSError(stderr.decode("utf8", "replace"))
E           OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
E           [NbConvertApp] Looking for jupyter_config in /etc/jupyter
E           [NbConvertApp] Looking for jupyter_config in /usr/etc/jupyter
E           [NbConvertApp] Looking for jupyter_config in /home/tkloczko/.local/etc/jupyter
E           [NbConvertApp] Looking for jupyter_config in /home/tkloczko/.jupyter
E           [NbConvertApp] Looking for jupyter_nbconvert_config in /etc/jupyter
E           [NbConvertApp] Looking for jupyter_nbconvert_config in /usr/etc/jupyter
E           [NbConvertApp] Looking for jupyter_nbconvert_config in /home/tkloczko/.local/etc/jupyter
E           [NbConvertApp] Looking for jupyter_nbconvert_config in /home/tkloczko/.jupyter
E           [NbConvertApp] ERROR | Error importing nbconvert.tests.fake_exporters.MyExporter
E           Traceback (most recent call last):
E             File "/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 119, in get_exporter
E               exporter = import_item(name)
E             File "/usr/lib/python3.8/site-packages/traitlets/utils/importstring.py", line 30, in import_item
E               module = __import__(package, fromlist=[obj])
E           ModuleNotFoundError: No module named 'nbconvert.tests'
E           Traceback (most recent call last):
E             File "/usr/lib64/python3.8/runpy.py", line 194, in _run_module_as_main
E               return _run_code(code, main_globals, None,
E             File "/usr/lib64/python3.8/runpy.py", line 87, in _run_code
E               exec(code, run_globals)
E             File "/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/nbconvert/__main__.py", line 4, in <module>
E               main()
E             File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 277, in launch_instance
E               return super().launch_instance(argv=argv, **kwargs)
E             File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 1041, in launch_instance
E               app.start()
E             File "/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 414, in start
E               self.convert_notebooks()
E             File "/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 579, in convert_notebooks
E               cls = get_exporter(self.export_format)
E             File "/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/nbconvert/exporters/base.py", line 131, in get_exporter
E               raise ExporterNameError(msg)
E           nbconvert.exporters.base.ExporterNameError: Unknown exporter "nbconvert.tests.fake_exporters.MyExporter", did you mean one of: asciidoc, custom, html, latex, markdown, notebook, pdf, python, qtpdf, qtpng, rst, script, slides, webpdf?

nbconvert/tests/base.py:167: OSError
___________________________________________________________________________ TestNbConvertApp.test_post_processor ____________________________________________________________________________

self = <nbconvert.tests.test_nbconvertapp.TestNbConvertApp testMethod=test_post_processor>

    def test_post_processor(self):
        """Do post processors work?"""
        with self.create_temp_cwd(["notebook1.ipynb"]):
>           out, err = self.nbconvert(
                "--log-level 0 --to python notebook1 --post nbconvert.tests.test_nbconvertapp.DummyPost"
            )

nbconvert/tests/test_nbconvertapp.py:178:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <nbconvert.tests.test_nbconvertapp.TestNbConvertApp testMethod=test_post_processor>, parameters = ['--log-level', '0', '--to', 'python', 'notebook1', '--post', ...]
ignore_return_code = False, stdin = None

    def nbconvert(self, parameters, ignore_return_code=False, stdin=None):
        """
        Run nbconvert as a shell command, listening for both Errors and
        non-zero return codes. Returns the tuple (stdout, stderr) of
        output produced during the nbconvert run.

        Parameters
        ----------
        parameters : str, list(str)
            List of parameters to pass to IPython.
        ignore_return_code : optional bool (default False)
            Throw an OSError if the return code
        """
        cmd = [sys.executable, "-m", "nbconvert"]
        if sys.platform == "win32":
            if isinstance(parameters, (str,)):
                cmd = " ".join(cmd) + " " + parameters
            else:
                cmd = " ".join(cmd + parameters)
        else:
            if isinstance(parameters, (str,)):
                parameters = shlex.split(parameters)
            cmd += parameters
        p = Popen(cmd, stdout=PIPE, stderr=PIPE, stdin=PIPE)
        stdout, stderr = p.communicate(input=stdin)
        if not (p.returncode == 0 or ignore_return_code):
>           raise OSError(stderr.decode("utf8", "replace"))
E           OSError: Traceback (most recent call last):
E             File "/usr/lib64/python3.8/runpy.py", line 194, in _run_module_as_main
E               return _run_code(code, main_globals, None,
E             File "/usr/lib64/python3.8/runpy.py", line 87, in _run_code
E               exec(code, run_globals)
E             File "/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/nbconvert/__main__.py", line 4, in <module>
E               main()
E             File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 277, in launch_instance
E               return super().launch_instance(argv=argv, **kwargs)
E             File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 1040, in launch_instance
E               app.initialize(argv)
E             File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 113, in inner
E               return method(app, *args, **kwargs)
E             File "/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 362, in initialize
E               super().initialize(argv)
E             File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 113, in inner
E               return method(app, *args, **kwargs)
E             File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 248, in initialize
E               self.parse_command_line(argv)
E             File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 113, in inner
E               return method(app, *args, **kwargs)
E             File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 883, in parse_command_line
E               self.update_config(self.cli_config)
E             File "/usr/lib/python3.8/site-packages/traitlets/config/configurable.py", line 230, in update_config
E               self._load_config(config)
E             File "/usr/lib/python3.8/site-packages/traitlets/config/configurable.py", line 200, in _load_config
E               warn(msg)
E             File "/usr/lib64/python3.8/contextlib.py", line 120, in __exit__
E               next(self.gen)
E             File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1502, in hold_trait_notifications
E               self.notify_change(change)
E             File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1517, in notify_change
E               return self._notify_observers(change)
E             File "/usr/lib/python3.8/site-packages/traitlets/traitlets.py", line 1564, in _notify_observers
E               c(event)
E             File "/home/tkloczko/rpmbuild/BUILDROOT/python-nbconvert-7.3.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 330, in _postprocessor_class_changed
E               self.postprocessor_factory = import_item(new)
E             File "/usr/lib/python3.8/site-packages/traitlets/utils/importstring.py", line 30, in import_item
E               module = __import__(package, fromlist=[obj])
E           ModuleNotFoundError: No module named 'nbconvert.tests'

nbconvert/tests/base.py:167: OSError
===================================================================================== warnings summary ======================================================================================
../../../../../usr/lib/python3.8/site-packages/jupyter_client/connect.py:20
  /usr/lib/python3.8/site-packages/jupyter_client/connect.py:20: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs
  given by the platformdirs library.  To remove this warning and
  see the appropriate new directories, set the environment variable
  `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.
  The use of platformdirs will be the default in `jupyter_core` v6
    from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================================================================== slowest 10 durations ====================================================================================
30.51s call     nbconvert/exporters/tests/test_webpdf.py::TestWebPDFExporter::test_webpdf_without_pyppeteer
10.00s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_allow_errors
8.84s call     nbconvert/exporters/tests/test_latex.py::TestLatexExporter::test_very_long_cells
6.71s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_output_base
6.68s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_errors_print_traceback
5.77s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_execute_multiple_notebooks
4.05s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_write_figures_to_custom_path
3.89s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_spurious_cr
3.84s call     nbconvert/exporters/tests/test_html.py::TestHTMLExporter::test_javascript_injection
3.75s call     nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_execute_widgets_from_nbconvert
================================================================================== short test summary info ==================================================================================
SKIPPED [1] nbconvert/exporters/tests/test_pdf.py:28: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/exporters/tests/test_qtpdf.py:19: PyQtWebEngine not installed
SKIPPED [2] nbconvert/exporters/tests/base.py:28: PyQtWebEngine not installed
SKIPPED [1] nbconvert/exporters/tests/test_qtpng.py:21: PyQtWebEngine not installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:274: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:136: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:478: This test runs only if command 'xelatex' is installed
SKIPPED [1] nbconvert/tests/test_nbconvertapp.py:161: This test runs only if command 'xelatex' is installed
FAILED nbconvert/exporters/tests/test_python.py::TestPythonExporter::test_export - AssertionError: '#!/usr/bin/python3' not found in "#!/usr/bin/env python\n# coding: utf-8\n\n# # NumPy and Matplotlib examples\n\n# First import NumPy and Matplotlib:\n\n# In[1]:\n\n\n...
FAILED nbconvert/exporters/tests/test_webpdf.py::TestWebPDFExporter::test_webpdf_without_pyppeteer - pyppeteer.errors.BrowserError: Browser closed unexpectedly:
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name - OSError: [NbConvertApp] Searching ['/home/tkloczko/.jupyter', '/home/tkloczko/.local/etc/jupyter', '/usr/etc/jupyter', '/etc/jupyter'] for config files
FAILED nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_post_processor - OSError: Traceback (most recent call last):
======================================================= 4 failed, 290 passed, 9 skipped, 2 deselected, 1 warning in 189.58s (0:03:09) =======================================================

@kloczek
Copy link
Author

kloczek commented Apr 10, 2023

Looking on pytest output I thin ktaht it woild be good to move nbconvert/tests/ content to tests/ an remove all relative imports beczause seems like thi is now disturbin "test as installed" procedure.

@ivanov
Copy link
Member

ivanov commented Feb 9, 2024

Once #2108 lands, I believe the remaining errors here will be taken care of, is that right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants