Control: reassign -1 python3-astroid 2.15.6-1
Control: retitle -1 python3-astroid: incompatible with Python 3.12 (exception: 
'TreeRebuilder' object has no attribute 'visit_typealias')
Control: affects -1 + src:python-cloup src:sphinx-autoapi
Control: block 1056529 1058408 by -1
Control: tags -1 + fixed-upstream

Hi all,

On Tue, Dec 12, 2023 at 09:27:12AM +0100, Lucas Nussbaum wrote:
> Source: python-cloup
> Version: 3.0.3-1
> Severity: serious
> Justification: FTBFS
> Tags: trixie sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20231212 ftbfs-trixie
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
>
> Relevant part (hopefully):
> > make[1]: Entering directory '/<<PKGBUILDDIR>>/docs'
> > Running Sphinx v7.2.6
> > making output directory... done
> > /usr/lib/python3/dist-packages/autoapi/extension.py:137: 
> > RemovedInSphinx80Warning: Sphinx 8 will drop support for representing paths 
> > as strings. Use "pathlib.Path" or "os.fspath" instead.
> >   elif app.srcdir != os.getcwd():
> > /usr/lib/python3/dist-packages/autoapi/mappers/python/mapper.py:300: 
> > RemovedInSphinx80Warning: The alias 'sphinx.util.status_iterator' is 
> > deprecated, use 'sphinx.util.display.status_iterator' instead. Check 
> > CHANGES for Sphinx API modifications.
> >   for dir_root, path in sphinx.util.status_iterator(
> > [AutoAPI] Reading files... [  4%] /<<PKGBUILDDIR>>/cloup/__init__.py
> > [AutoAPI] Reading files... [  9%] /<<PKGBUILDDIR>>/cloup/_util.py
> > [AutoAPI] Reading files... [ 13%] /<<PKGBUILDDIR>>/cloup/_sections.py
> > [AutoAPI] Reading files... [ 17%] /<<PKGBUILDDIR>>/cloup/_commands.py
> >
> > Extension error (autoapi.extension):
> > Handler <function run_autoapi at 0x7f31088ca5c0> for event 'builder-inited' 
> > threw an exception (exception: 'TreeRebuilder' object has no attribute 
> > 'visit_typealias')
> > make[1]: *** [Makefile:20: html] Error 2

This is actually caused by astroid 2.15 being incompatible with Python 3.12.

In upstream it was fixed in commit [1], which is part of a larger PR [2] that
adds support for Python 3.12. These changes were included in astroid 3.0, so
updating to that release should fix the problem.

[1]: https://github.com/pylint-dev/astroid/commit/6d4f364a08289bf3
[2]: https://github.com/pylint-dev/astroid/pull/2219

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to