Package: src:nb2plots
Version: 0.7.2-3
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202511/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:nb2plots, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:311: python3.13 setup.py clean 
/usr/lib/python3/dist-packages/setuptools/dist.py:759: 
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        
********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX 
license expression:

        License :: OSI Approved :: BSD License

        See 
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license 
for details.
        
********************************************************************************


[... snipped ...]

nb2plots/tests/test_timeout.py .........                                 [ 50%]
tests/test_builders.py ..........                                        [ 54%]
tests/test_codelinks.py ...                                              [ 55%]
tests/test_config.py .                                                   [ 56%]
tests/test_converters.py .                                               [ 56%]
tests/test_doctree2md.py .....                                           [ 58%]
tests/test_doctree2nb.py ........                                        [ 62%]
tests/test_doctree2py.py ..                                              [ 63%]
tests/test_from_notebook.py ......                                       [ 66%]
tests/test_mpl_interactive.py .                                          [ 66%]
tests/test_nbplots.py ....................F.F.F......................    [ 87%]
tests/test_proj1.py .....                                                [ 89%]
tests/test_regression.py .                                               [ 90%]
tests/test_runroles.py ..........                                        [ 94%]
tests/test_sphinx2md.py ..                                               [ 95%]
tests/test_strdiff.py .                                                  [ 95%]
tests/test_timeout.py .........                                          [100%]

=================================== FAILURES ===================================
_________________________ TestReference.test_reference _________________________

self = <nb2plots.tests.test_nbplots.TestReference object at 0x7faa83de4050>

        def test_reference(self):
            # Check that reference correctly included
            built = self.get_built_file('a_page.pseudoxml')
            expected_regexp = re.compile(
                r'<document _plot_counter="1" source=".*?a_page.rst"'
                rf'{OPT_TRANS}'
                r'( xmlns:\w+=".*")*>'
                r"""
    \s+<section ids="a-title" names="a\\ title">
    \s+    <title>
    \s+        A title
    \s+    <target ids="a-ref" names="a-ref">
    \s+    <nbplot_container>
    \s+        <doctest_block.*>
    \s+            >>> a = 1
    \s+    <nbplot_epilogue>
    \s+        <.*>
    \s+    <paragraph>
    \s+        See\s
    \s+        <reference internal="True" refid="a-ref">
    \s+            <inline.*?>
    \s+                the ref
                \.""", re.DOTALL)
>           assert expected_regexp.match(built)
E           assert None
E            +  where None = <built-in method match of re.Pattern object at 
0x19c243a0>('<document _plot_counter="1" 
source="/tmp/tmp_xnn2ckm/source/a_page.rst" translation_progress="{\'total\': 
0, \'transl...ernal="1" refid="a-ref">\n                <inline classes="std 
std-ref">\n                    the ref\n            .\n')
E            +    where <built-in method match of re.Pattern object at 
0x19c243a0> = re.compile('<document _plot_counter="1" source=".*?a_page.rst"( 
translation_progress=".*")?( xmlns:\\w+=".*")*>\n\\s+<section ids="a-title" 
names="a\\\\ title">\n\\s+    <title>\n\\s+        A title\n\\s+    <ta, 
re.DOTALL).match

nb2plots/tests/test_nbplots.py:473: AssertionError
_____________________________ TestFlags.test_flags _____________________________

self = <nb2plots.tests.test_nbplots.TestFlags object at 0x7faa83de42d0>

    def test_flags(self):
        # Check that flags correctly set from flag directives
        built = self.get_built_file('a_page.pseudoxml')
        expected = r"""
        <title>
            A title
        {literal_header}
            {{'a': 1, 'b': 2}}
        <paragraph>
            Some text
        {literal_header}
            {{'a': 1, 'b': 2, 'c': 3}}""".format(
                literal_header=self.literal_header)
>       assert re.search(expected, built)
E       assert None
E        +  where None = <function search at 0x7faa8ef636a0>('\n        
<title>\n            A title\n        <literal_block 
force(_highlighting)?="False" language="default" linen...ighting)?="False" 
language="default" linenos="False" xml:space="preserve">\n            {\'a\': 
1, \'b\': 2, \'c\': 3}', '<document source="/tmp/tmpxpnq2_9p/source/a_page.rst" 
translation_progress="{\'total\': 0, \'translated\': 0}" xmlns:...ral_block 
force="0" language="default" linenos="0" xml:space="preserve">\n            
{\'a\': 1, \'b\': 2, \'c\': 3}\n')
E        +    where <function search at 0x7faa8ef636a0> = re.search

nb2plots/tests/test_nbplots.py:521: AssertionError
__________________________ TestFlagsConfig.test_flags __________________________

self = <nb2plots.tests.test_nbplots.TestFlagsConfig object at 0x7faa83de4550>

    def test_flags(self):
        # Check that global flags merged with local
        built = self.get_built_file('a_page.pseudoxml')
        expected = r"""
        <title>
            A title
        {literal_header}
            {{'a': 1, 'b': 2, 'flag1': 5, 'flag2': 6}}
        <paragraph>
            Some text
        {literal_header}
            {{'a': 1, 'b': 2, 'c': 3, 'flag1': 5, 'flag2': 6}}""".format(
                literal_header=self.literal_header)
>       assert re.search(expected, built)
E       assert None
E        +  where None = <function search at 0x7faa8ef636a0>('\n        
<title>\n            A title\n        <literal_block 
force(_highlighting)?="False" language="default" linen...default" 
linenos="False" xml:space="preserve">\n            {\'a\': 1, \'b\': 2, \'c\': 
3, \'flag1\': 5, \'flag2\': 6}', '<document 
source="/tmp/tmp5154tt0w/source/a_page.rst" translation_progress="{\'total\': 
0, \'translated\': 0}" xmlns:...="default" linenos="0" xml:space="preserve">\n  
          {\'a\': 1, \'b\': 2, \'c\': 3, \'flag1\': 5, \'flag2\': 6}\n')
E        +    where <function search at 0x7faa8ef636a0> = re.search

nb2plots/tests/test_nbplots.py:545: AssertionError
_________________________ TestReference.test_reference _________________________

self = <tests.test_nbplots.TestReference object at 0x7faa83d3e350>

        def test_reference(self):
            # Check that reference correctly included
            built = self.get_built_file('a_page.pseudoxml')
            expected_regexp = re.compile(
                r'<document _plot_counter="1" source=".*?a_page.rst"'
                rf'{OPT_TRANS}'
                r'( xmlns:\w+=".*")*>'
                r"""
    \s+<section ids="a-title" names="a\\ title">
    \s+    <title>
    \s+        A title
    \s+    <target ids="a-ref" names="a-ref">
    \s+    <nbplot_container>
    \s+        <doctest_block.*>
    \s+            >>> a = 1
    \s+    <nbplot_epilogue>
    \s+        <.*>
    \s+    <paragraph>
    \s+        See\s
    \s+        <reference internal="True" refid="a-ref">
    \s+            <inline.*?>
    \s+                the ref
                \.""", re.DOTALL)
>           assert expected_regexp.match(built)
E           assert None
E            +  where None = <built-in method match of re.Pattern object at 
0x19c243a0>('<document _plot_counter="1" 
source="/tmp/tmpzh38lqt9/source/a_page.rst" translation_progress="{\'total\': 
0, \'transl...ernal="1" refid="a-ref">\n                <inline classes="std 
std-ref">\n                    the ref\n            .\n')
E            +    where <built-in method match of re.Pattern object at 
0x19c243a0> = re.compile('<document _plot_counter="1" source=".*?a_page.rst"( 
translation_progress=".*")?( xmlns:\\w+=".*")*>\n\\s+<section ids="a-title" 
names="a\\\\ title">\n\\s+    <title>\n\\s+        A title\n\\s+    <ta, 
re.DOTALL).match

tests/test_nbplots.py:473: AssertionError
_____________________________ TestFlags.test_flags _____________________________

self = <tests.test_nbplots.TestFlags object at 0x7faa83d3e5d0>

    def test_flags(self):
        # Check that flags correctly set from flag directives
        built = self.get_built_file('a_page.pseudoxml')
        expected = r"""
        <title>
            A title
        {literal_header}
            {{'a': 1, 'b': 2}}
        <paragraph>
            Some text
        {literal_header}
            {{'a': 1, 'b': 2, 'c': 3}}""".format(
                literal_header=self.literal_header)
>       assert re.search(expected, built)
E       assert None
E        +  where None = <function search at 0x7faa8ef636a0>('\n        
<title>\n            A title\n        <literal_block 
force(_highlighting)?="False" language="default" linen...ighting)?="False" 
language="default" linenos="False" xml:space="preserve">\n            {\'a\': 
1, \'b\': 2, \'c\': 3}', '<document source="/tmp/tmpynnomhq6/source/a_page.rst" 
translation_progress="{\'total\': 0, \'translated\': 0}" xmlns:...ral_block 
force="0" language="default" linenos="0" xml:space="preserve">\n            
{\'a\': 1, \'b\': 2, \'c\': 3}\n')
E        +    where <function search at 0x7faa8ef636a0> = re.search

tests/test_nbplots.py:521: AssertionError
__________________________ TestFlagsConfig.test_flags __________________________

self = <tests.test_nbplots.TestFlagsConfig object at 0x7faa83d3e850>

    def test_flags(self):
        # Check that global flags merged with local
        built = self.get_built_file('a_page.pseudoxml')
        expected = r"""
        <title>
            A title
        {literal_header}
            {{'a': 1, 'b': 2, 'flag1': 5, 'flag2': 6}}
        <paragraph>
            Some text
        {literal_header}
            {{'a': 1, 'b': 2, 'c': 3, 'flag1': 5, 'flag2': 6}}""".format(
                literal_header=self.literal_header)
>       assert re.search(expected, built)
E       assert None
E        +  where None = <function search at 0x7faa8ef636a0>('\n        
<title>\n            A title\n        <literal_block 
force(_highlighting)?="False" language="default" linen...default" 
linenos="False" xml:space="preserve">\n            {\'a\': 1, \'b\': 2, \'c\': 
3, \'flag1\': 5, \'flag2\': 6}', '<document 
source="/tmp/tmpvs1qg0xw/source/a_page.rst" translation_progress="{\'total\': 
0, \'translated\': 0}" xmlns:...="default" linenos="0" xml:space="preserve">\n  
          {\'a\': 1, \'b\': 2, \'c\': 3, \'flag1\': 5, \'flag2\': 6}\n')
E        +    where <function search at 0x7faa8ef636a0> = re.search

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

.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_builders.py: 9 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_codelinks.py: 13 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_doctree2nb.py: 2 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_nbplots.py: 3 warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_proj1.py: 9 warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_runroles.py: 23 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_timeout.py: 18 
warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_builders.py: 9 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_codelinks.py: 13 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_doctree2nb.py: 2 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_nbplots.py: 3 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_proj1.py: 9 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_runroles.py: 23 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_timeout.py: 18 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_nb2plots/build/nb2plots/runroles.py:80: 
PendingDeprecationWarning: The auxiliary function roles.set_classes() is 
obsoleted by roles.normalize_options() and will be removed in Docutils 2.0
    set_classes(options)

.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_builders.py: 19 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_codelinks.py: 17 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_doctree2nb.py: 66 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_doctree2py.py: 38 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_mpl_interactive.py: 4 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_nbplots.py: 47 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_proj1.py: 9 warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_regression.py: 4 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_runroles.py: 47 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_sphinx2md.py: 40 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_timeout.py: 20 
warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_builders.py: 19 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_codelinks.py: 17 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_doctree2nb.py: 66 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_doctree2py.py: 38 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_mpl_interactive.py: 4 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_nbplots.py: 47 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_proj1.py: 9 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_regression.py: 4 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_runroles.py: 47 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_sphinx2md.py: 40 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_timeout.py: 20 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_nb2plots/build/nb2plots/runroles.py:275:
 DeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
    for ref in doctree.traverse(runrole_reference):

.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_codelinks.py: 1 
warning
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_nbplots.py: 11 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_proj1.py: 4 warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_runroles.py: 4 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_timeout.py: 6 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_codelinks.py: 1 warning
.pybuild/cpython3_3.13_nb2plots/build/tests/test_nbplots.py: 11 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_proj1.py: 4 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_runroles.py: 4 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_timeout.py: 6 warnings
  /usr/lib/python3/dist-packages/sphinx/builders/html/__init__.py:154: 
PendingDeprecationWarning: Argument "parser_name" will be removed in Docutils 
2.0.
    Specify parser name in the "parser" argument.
    reader: Reader[DocTreeInput] = docutils.readers.doctree.Reader(

.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_doctree2nb.py: 2 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_doctree2py.py: 2 
warnings
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_sphinx2md.py: 2 
warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_doctree2nb.py: 2 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_doctree2py.py: 2 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_sphinx2md.py: 2 warnings
  /usr/lib/python3/dist-packages/sphinx/directives/patches.py:103: 
PendingDeprecationWarning: The auxiliary function roles.set_classes() is 
obsoleted by roles.normalize_options() and will be removed in Docutils 2.0
    set_classes(self.options)

.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_nbplots.py: 9 warnings
.pybuild/cpython3_3.13_nb2plots/build/tests/test_nbplots.py: 9 warnings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_nb2plots/build/nb2plots/nbplots.py:349: 
DeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
    for node in tree.traverse(doctest_filter):

.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_timeout.py::TestCLOptsTimeout::test_build_error
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_timeout.py::TestConfigCLTimeout::test_build_error
.pybuild/cpython3_3.13_nb2plots/build/nb2plots/tests/test_timeout.py::TestBestTimeout::test_build_error
.pybuild/cpython3_3.13_nb2plots/build/tests/test_timeout.py::TestCLOptsTimeout::test_build_error
.pybuild/cpython3_3.13_nb2plots/build/tests/test_timeout.py::TestConfigCLTimeout::test_build_error
.pybuild/cpython3_3.13_nb2plots/build/tests/test_timeout.py::TestBestTimeout::test_build_error
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_nb2plots/build/nb2plots/codelinks.py:107:
 DeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
    for node in node.traverse(runrole_reference):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED nb2plots/tests/test_nbplots.py::TestReference::test_reference - assert...
FAILED nb2plots/tests/test_nbplots.py::TestFlags::test_flags - assert None
FAILED nb2plots/tests/test_nbplots.py::TestFlagsConfig::test_flags - assert None
FAILED tests/test_nbplots.py::TestReference::test_reference - assert None
FAILED tests/test_nbplots.py::TestFlags::test_flags - assert None
FAILED tests/test_nbplots.py::TestFlagsConfig::test_flags - assert None
=========== 6 failed, 218 passed, 865 warnings in 149.72s (0:02:29) ============
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_nb2plots/build; python3.13 -m pytest 
--ignore-glob *test_scripts.py
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to