[Pkg-matrix-maintainers] Bug#1078310: python-matrix-nio: FTBFS: AttributeError: module 'docutils.nodes' has no attribute 'reprunicode'

Santiago Vila sanvila at debian.org
Fri Aug 9 13:18:02 BST 2024


Package: src:python-matrix-nio
Version: 0.24.0-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --buildsystem=pybuild
    dh_update_autotools_config -O--buildsystem=pybuild
    dh_autoreconf -O--buildsystem=pybuild
    dh_auto_configure -O--buildsystem=pybuild
    dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12
* Building wheel...
Successfully built matrix_nio-0.24.0-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module
    dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest -k "not test_connect_wrapper"
============================= test session starts ==============================
platform linux -- Python 3.12.5, pytest-8.3.2, pluggy-1.5.0
benchmark: 4.0.0 (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>>
configfile: setup.cfg
plugins: hypothesis-6.105.1, aiohttp-1.0.5, Faker-26.0.0, asyncio-0.20.3, benchmark-4.0.0, cov-5.0.0
asyncio: mode=Mode.STRICT
collected 423 items / 1 deselected / 422 selected

tests/api_test.py ....                                                   [  0%]
tests/async_attachment_test.py ...............                           [  4%]
tests/async_client_test.py ............................................. [ 15%]
..............................................................           [ 29%]
tests/attachment_test.py .......                                         [ 31%]
tests/client_test.py ...........................................         [ 41%]
tests/encryption_test.py ...............................                 [ 49%]
tests/event_builders_test.py .......                                     [ 50%]
tests/event_test.py ..................................................   [ 62%]
tests/http2_test.py ....                                                 [ 63%]
tests/http_test.py ..                                                    [ 63%]
tests/key_export_test.py ........                                        [ 65%]
tests/memory_store_test.py ....                                          [ 66%]
tests/responses_test.py ...................................              [ 75%]
tests/room_test.py ...............................                       [ 82%]
tests/sas_test.py ...............................                        [ 89%]
tests/sessions_test.py ....                                              [ 90%]
tests/store_test.py .......................................              [100%]

=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1437
   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1437: PytestConfigWarning: Unknown config option: flake8-ignore
   
     self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

------------------------------------------------ benchmark: 1 tests ------------------------------------------------
Name (time in ms)            Min       Max      Mean  StdDev    Median     IQR  Outliers     OPS  Rounds  Iterations
--------------------------------------------------------------------------------------------------------------------
test_encrypt_rounds     170.8587  172.8753  171.9222  0.7541  171.8337  1.0841       2;0  5.8166       6           1
--------------------------------------------------------------------------------------------------------------------

Legend:
   Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.
   OPS: Operations Per Second, computed as 1 / Mean
================ 422 passed, 1 deselected, 1 warning in 49.91s =================
    create-stamp debian/debhelper-build-stamp
    dh_testroot -O--buildsystem=pybuild
    dh_prep -O--buildsystem=pybuild
    dh_auto_install -O--buildsystem=pybuild
I: pybuild plugin_pyproject:178: Copying package built for python3.12 to destdir
    dh_install -O--buildsystem=pybuild
    dh_installdocs -O--buildsystem=pybuild
    debian/rules execute_before_dh_sphinxdoc
make[1]: Entering directory '/<<PKGBUILDDIR>>'
sphinx-build \
	-b html doc debian/python3-matrix-nio-doc/usr/share/doc/python3-matrix-nio-doc/html
Running Sphinx v7.4.7
WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English).
loading translations [en]... done
making output directory... done
WARNING: html_static_path entry '_static' does not exist
Converting `source_suffix = ['.rst', '.md']` to `source_suffix = {'.rst': 'restructuredtext', '.md': 'restructuredtext'}`.
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 5 source files that are out of date
updating environment: [new config] 5 added, 0 changed, 0 removed
reading sources... [ 20%] built-with-nio
reading sources... [ 40%] contributing
reading sources... [ 60%] examples
reading sources... [ 80%] index
/<<PKGBUILDDIR>>/doc/examples.rst:102: ERROR: Unknown target name: "asyncio tasks <>".

Exception occurred:
   File "/usr/lib/python3/dist-packages/m2r.py", line 585, in run
     path = nodes.reprunicode(path)
            ^^^^^^^^^^^^^^^^^
AttributeError: module 'docutils.nodes' has no attribute 'reprunicode'
The full traceback has been saved in /tmp/sphinx-err-3qeqn1xk.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make[1]: *** [debian/rules:13: execute_before_dh_sphinxdoc] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

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

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

If you could not 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 affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Pkg-matrix-maintainers mailing list