Package: src:sphinx-needs
Version: 5.1.0+dfsg-4
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/202512/

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:sphinx-needs, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with sphinxdoc --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   debian/rules override_dh_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf .pytest_cache/
rm -f mem_out.bin
rm -rf sphinx_needs/__pycache__/
rm -rf sphinx_needs/api/__pycache__/
rm -rf sphinx_needs/directives/__pycache__/
rm -rf sphinx_needs/directives/needflow/__pycache__/
rm -rf sphinx_needs/functions/__pycache__/
rm -rf sphinx_needs/nodes/__pycache__/
rm -rf sphinx_needs/roles/__pycache__/

[... snipped ...]

copying images... [  5%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_f5d29c33.svg
copying images... [  7%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_1a22f3d5.svg
copying images... [  8%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_27cf1ee5.svg
copying images... [ 10%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_4b3e44c4.svg
copying images... [ 12%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_c182c60b.svg
copying images... [ 14%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_6e0dbc1e.svg
copying images... [ 15%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_ca1cb304.svg
copying images... [ 17%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_977da59e.svg
copying images... [ 19%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_56c86c7d.svg
copying images... [ 20%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_357d466a.svg
copying images... [ 22%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_b0150031.svg
copying images... [ 24%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_c3bd093b.svg
copying images... [ 25%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_6328c8ca.svg
copying images... [ 27%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_083032d6.svg
copying images... [ 29%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_cf34f05e.svg
copying images... [ 31%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_c6a4e0dc.svg
copying images... [ 32%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_b1a153f3.svg
copying images... [ 34%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_f58d8d5a.svg
copying images... [ 36%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_de61ea12.svg
copying images... [ 37%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_f4bce44c.svg
copying images... [ 39%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_06c6c661.svg
copying images... [ 41%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_7ff112e7.svg
copying images... [ 42%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_76ebe.svg
copying images... [ 44%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_1bc0e.svg
copying images... [ 46%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_dbfaf.svg
copying images... [ 47%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_2c3ed.svg
copying images... [ 49%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_132a2.svg
copying images... [ 51%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_873ef.svg
copying images... [ 53%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_88777.svg
copying images... [ 54%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_47238.svg
copying images... [ 56%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_df9e6.svg
copying images... [ 58%] _images/need_pie_overlapping_labels.png
copying images... [ 59%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_2a651.svg
copying images... [ 61%] badge.svg
copying images... [ 63%] _static/useblocks-logo-long-dark.svg
copying images... [ 64%] _images/logos/sphinx_bazel_logo.png
copying images... [ 66%] _images/logos/sphinx_collections_logo.png
copying images... [ 68%] _images/logos/sphinx-test-reports-logo.png
copying images... [ 69%] _images/needs_logo.png
copying images... [ 71%] _images/daniel.png
copying images... [ 73%] _images/activity.png
copying images... [ 75%] _images/need_blank.png
copying images... [ 76%] _images/need_modern.png
copying images... [ 78%] _images/need_dark.png
copying images... [ 80%] 
/<<PKGBUILDDIR>>/sphinx_needs/images/feather_svg/share-2.svg
copying images... [ 81%] _images/sn_debug_measurement_html_report.png
copying images... [ 83%] _images/snakeviz_needtable.png
copying images... [ 85%] _images/github_issue_1.png
copying images... [ 86%] _images/github_issue_2.png
copying images... [ 88%] _images/github_issue_3.png
copying images... [ 90%] _images/github_issue_4.png
copying images... [ 92%] _images/ons_example.png
copying images... [ 93%] _images/ons_table.png
copying images... [ 95%] _images/logos/useblocks_logo.png
copying images... [ 97%] _images/car.png
copying images... [ 98%] /<<PKGBUILDDIR>>/build/html/_images/need_pie_679b5.svg
copying images... [100%] 
/<<PKGBUILDDIR>>/build/html/_images/need_bar_e92ddbdf.svg

dumping search index in English (code: en)... done
dumping object inventory... done

Checking sphinx-needs warnings
type_check: passed
Needs successfully exported

====================== slowest reading durations =======================
0.392 directives/needbar
0.320 api
0.165 dynamic_functions
0.139 changelog
0.133 configuration
build succeeded, 3 warnings.

The HTML pages are in build/html.
# Remove build log
rm -f build/html/debug_filters.jsonl
# Remove cache
#rm -rf build/.doctrees
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# Replace uptream provided plantuml with debian provided by plantuml package
[ -d tests/doc_test/utils ] || mkdir tests/doc_test/utils
ln -s /usr/share/plantuml/plantuml.jar ./tests/doc_test/utils/plantuml.jar
#PYTHONPATH=. python3 -m pytest tests
dh_auto_test
I: pybuild base:317: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-needs/build; python3.14 -m 
pytest tests
============================= test session starts ==============================
platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0
benchmark: 5.2.3 (defaults: timer=time.perf_counter disable_gc=False 
min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 
warmup=False warmup_iterations=100000)
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-needs/build
configfile: pyproject.toml
plugins: filter-subpackage-0.2.0, benchmark-5.2.3, skip-markers-1.3.0, 
astropy-header-0.2.2, cov-5.0.0, emoji-0.2.0, xprocess-1.0.2, arraydiff-0.6.1, 
datadir-1.4.1+ds, astropy-0.11.0, typeguard-4.4.4, hypothesis-6.148.2, 
mock-3.15.1, anyio-4.11.0, regressions-2.5.0+ds, remotedata-0.4.1, 
syrupy-5.0.0, xdist-3.8.0, doctestplus-1.6.0
collected 183 items / 7 errors / 116 deselected / 67 selected

==================================== ERRORS ====================================
______________ ERROR collecting tests/benchmarks/test_official.py ______________
ImportError while importing test module 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-needs/build/tests/benchmarks/test_official.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.14/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/benchmarks/test_official.py:7: in <module>
    import memray
/usr/lib/python3/dist-packages/memray/__init__.py:2: in <module>
    from ._memray import AllocationRecord
E   ImportError: cannot import name 'AllocationRecord' from 'memray._memray' 
(unknown location)
___________________ ERROR collecting tests/test_api_usage.py ___________________
tests/test_api_usage.py:8: in <module>
    from sphinx_needs.api import add_need_type, get_need_types
sphinx_needs/api/__init__.py:1: in <module>
    from .configuration import (
sphinx_needs/api/configuration.py:17: in <module>
    from sphinx_needs.functions.functions import DynamicFunction
sphinx_needs/functions/__init__.py:9: in <module>
    from sphinx_needs.functions.functions import (  # noqa: F401
sphinx_needs/functions/functions.py:37: in <module>
    ast_boolean = ast.NameConstant
                  ^^^^^^^^^^^^^^^^
E   AttributeError: module 'ast' has no attribute 'NameConstant'
___________________ ERROR collecting tests/test_list2need.py ___________________
tests/test_list2need.py:5: in <module>
    from sphinx_needs.api import get_needs_view
sphinx_needs/api/__init__.py:1: in <module>
    from .configuration import (
sphinx_needs/api/configuration.py:17: in <module>
    from sphinx_needs.functions.functions import DynamicFunction
sphinx_needs/functions/__init__.py:9: in <module>
    from sphinx_needs.functions.functions import (  # noqa: F401
sphinx_needs/functions/functions.py:37: in <module>
    ast_boolean = ast.NameConstant
                  ^^^^^^^^^^^^^^^^
E   AttributeError: module 'ast' has no attribute 'NameConstant'
__________________ ERROR collecting tests/test_needimport.py ___________________
tests/test_needimport.py:11: in <module>
    from sphinx_needs.directives.needimport import NeedimportException
sphinx_needs/directives/needimport.py:15: in <module>
    from sphinx_needs.api import InvalidNeedException, add_need
sphinx_needs/api/__init__.py:1: in <module>
    from .configuration import (
sphinx_needs/api/configuration.py:17: in <module>
    from sphinx_needs.functions.functions import DynamicFunction
sphinx_needs/functions/__init__.py:9: in <module>
    from sphinx_needs.functions.functions import (  # noqa: F401
sphinx_needs/functions/functions.py:37: in <module>
    ast_boolean = ast.NameConstant
                  ^^^^^^^^^^^^^^^^
E   AttributeError: module 'ast' has no attribute 'NameConstant'
______________ ERROR collecting tests/test_open_needs_service.py _______________
tests/test_open_needs_service.py:6: in <module>
    from sphinx_needs.services.manager import ServiceManager
sphinx_needs/services/manager.py:8: in <module>
    from sphinx_needs.directives.needservice import NeedserviceDirective
sphinx_needs/directives/needservice.py:13: in <module>
    from sphinx_needs.api import InvalidNeedException, add_need
sphinx_needs/api/__init__.py:1: in <module>
    from .configuration import (
sphinx_needs/api/configuration.py:17: in <module>
    from sphinx_needs.functions.functions import DynamicFunction
sphinx_needs/functions/__init__.py:9: in <module>
    from sphinx_needs.functions.functions import (  # noqa: F401
sphinx_needs/functions/functions.py:37: in <module>
    ast_boolean = ast.NameConstant
                  ^^^^^^^^^^^^^^^^
E   AttributeError: module 'ast' has no attribute 'NameConstant'
_________ ERROR collecting tests/test_services/test_service_basics.py __________
tests/test_services/test_service_basics.py:7: in <module>
    from sphinx_needs.services.manager import ServiceManager
sphinx_needs/services/manager.py:8: in <module>
    from sphinx_needs.directives.needservice import NeedserviceDirective
sphinx_needs/directives/needservice.py:13: in <module>
    from sphinx_needs.api import InvalidNeedException, add_need
sphinx_needs/api/__init__.py:1: in <module>
    from .configuration import (
sphinx_needs/api/configuration.py:17: in <module>
    from sphinx_needs.functions.functions import DynamicFunction
sphinx_needs/functions/__init__.py:9: in <module>
    from sphinx_needs.functions.functions import (  # noqa: F401
sphinx_needs/functions/functions.py:37: in <module>
    ast_boolean = ast.NameConstant
                  ^^^^^^^^^^^^^^^^
E   AttributeError: module 'ast' has no attribute 'NameConstant'
_____________________ ERROR collecting tests/test_utils.py _____________________
tests/test_utils.py:5: in <module>
    from sphinx_needs.api.need import _split_list_with_dyn_funcs
sphinx_needs/api/__init__.py:1: in <module>
    from .configuration import (
sphinx_needs/api/configuration.py:17: in <module>
    from sphinx_needs.functions.functions import DynamicFunction
sphinx_needs/functions/__init__.py:9: in <module>
    from sphinx_needs.functions.functions import (  # noqa: F401
sphinx_needs/functions/functions.py:37: in <module>
    ast_boolean = ast.NameConstant
                  ^^^^^^^^^^^^^^^^
E   AttributeError: module 'ast' has no attribute 'NameConstant'
=============================== warnings summary ===============================
tests/conftest.py:19
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-needs/build/tests/conftest.py:19:
 RemovedInSphinx90Warning: 'sphinx.testing.path' is deprecated. Use 'os.path' 
or 'pathlib' instead.
    from sphinx.testing.path import path

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/benchmarks/test_official.py
ERROR tests/test_api_usage.py - AttributeError: module 'ast' has no attribute...
ERROR tests/test_list2need.py - AttributeError: module 'ast' has no attribute...
ERROR tests/test_needimport.py - AttributeError: module 'ast' has no attribut...
ERROR tests/test_open_needs_service.py - AttributeError: module 'ast' has no ...
ERROR tests/test_services/test_service_basics.py - AttributeError: module 'as...
ERROR tests/test_utils.py - AttributeError: module 'ast' has no attribute 'Na...
!!!!!!!!!!!!!!!!!!! Interrupted: 7 errors during collection !!!!!!!!!!!!!!!!!!!!
================= 116 deselected, 1 warning, 7 errors in 0.60s =================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-needs/build; python3.14 -m 
pytest tests
I: pybuild base:317: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-needs/build; python3.13 -m 
pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
benchmark: 5.2.3 (defaults: timer=time.perf_counter disable_gc=False 
min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 
warmup=False warmup_iterations=100000)
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-needs/build
configfile: pyproject.toml
plugins: filter-subpackage-0.2.0, benchmark-5.2.3, skip-markers-1.3.0, 
astropy-header-0.2.2, cov-5.0.0, emoji-0.2.0, xprocess-1.0.2, arraydiff-0.6.1, 
datadir-1.4.1+ds, astropy-0.11.0, typeguard-4.4.4, hypothesis-6.148.2, 
mock-3.15.1, anyio-4.11.0, regressions-2.5.0+ds, remotedata-0.4.1, 
syrupy-5.0.0, xdist-3.8.0, doctestplus-1.6.0
collected 228 items / 133 deselected / 95 selected

tests/test_basic_doc.py .                                                [  1%]
tests/test_clean_log.py .                                                [  2%]
tests/test_data.py .                                                     [  3%]
tests/test_external.py .                                                 [  4%]
tests/test_filter.py ..................................................  [ 56%]
tests/test_needpie.py .                                                  [ 57%]
tests/test_styles/test_style_css_js_registration.py .                    [ 58%]
tests/test_utils.py ............................                         [ 88%]
tests/test_variants.py ...........                                       [100%]

=============================== warnings summary ===============================
tests/conftest.py:19
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-needs/build/tests/conftest.py:19:
 RemovedInSphinx90Warning: 'sphinx.testing.path' is deprecated. Use 'os.path' 
or 'pathlib' instead.
    from sphinx.testing.path import path

tests/test_basic_doc.py::test_sphinx_api_build
tests/test_needpie.py::test_sphinx_api_needpie
tests/test_styles/test_style_css_js_registration.py::test_file_registration
  /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(

tests/test_basic_doc.py::test_sphinx_api_build
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-needs/build/sphinx_needs/layout.py:84:
 DeprecationWarning: The frontend.OptionParser class will be replaced by a 
subclass of argparse.ArgumentParser in Docutils 2.0 or later.
    To get default settings, use frontend.get_default_settings().
    doc_settings = OptionParser(components=(Parser,)).get_default_values()

tests/test_basic_doc.py: 72 warnings
  /usr/lib/python3.13/optparse.py:1000: DeprecationWarning: The frontend.Option 
class will be removed in Docutils 2.0 or later.
    option = self.option_class(*args, **kwargs)

tests/test_styles/test_style_css_js_registration.py::test_file_registration
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-needs/build/tests/test_styles/test_style_css_js_registration.py:37:
 RemovedInSphinx90Warning: 
'sphinx.builders.html.StandaloneHTMLBuilder.css_files' is deprecated. Check 
CHANGES for Sphinx API modifications.
    for x in sphinx_app.builder.css_files

tests/test_styles/test_style_css_js_registration.py::test_file_registration
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-needs/build/tests/test_styles/test_style_css_js_registration.py:42:
 RemovedInSphinx90Warning: 
'sphinx.builders.html.StandaloneHTMLBuilder.script_files' is deprecated. Check 
CHANGES for Sphinx API modifications.
    for x in sphinx_app.builder.script_files

tests/test_styles/test_style_css_js_registration.py::test_file_registration
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-needs/build/tests/test_styles/test_style_css_js_registration.py:60:
 RemovedInSphinx90Warning: 
'sphinx.builders.html.StandaloneHTMLBuilder.css_files' is deprecated. Check 
CHANGES for Sphinx API modifications.
    for x in sphinx_app.builder.css_files

tests/test_styles/test_style_css_js_registration.py::test_file_registration
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-needs/build/tests/test_styles/test_style_css_js_registration.py:65:
 RemovedInSphinx90Warning: 
'sphinx.builders.html.StandaloneHTMLBuilder.script_files' is deprecated. Check 
CHANGES for Sphinx API modifications.
    for x in sphinx_app.builder.script_files

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
--------------------------- snapshot report summary ----------------------------
1 snapshot passed.
=============== 95 passed, 133 deselected, 81 warnings in 3.02s ================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" returned exit code 13
make[1]: *** [debian/rules:85: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:28: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to