Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1002372: nbconvert: FTBFS: AttributeError: module 'mistune' has no attribute 'BlockGrammar'

637 views
Skip to first unread message

Lucas Nussbaum

unread,
Dec 22, 2021, 3:10:11 AM12/22/21
to
Source: nbconvert
Version: 6.1.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> PYTHONPATH=. python3 -m sphinx -b html docs/source debian/python-nbconvert-doc/usr/share/doc/python-nbconvert-doc/html
> Running Sphinx v4.3.2
>
> Configuration error:
> There is a programmable error in your configuration file:
>
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/sphinx/config.py", line 329, in eval_config_file
> exec(code, namespace)
> File "/<<PKGBUILDDIR>>/docs/source/conf.py", line 25, in <module>
> exec(compile(f.read(), 'autogen_config.py', 'exec'), {})
> File "autogen_config.py", line 11, in <module>
> File "/<<PKGBUILDDIR>>/nbconvert/__init__.py", line 4, in <module>
> from .exporters import *
> File "/<<PKGBUILDDIR>>/nbconvert/exporters/__init__.py", line 3, in <module>
> from .html import HTMLExporter
> File "/<<PKGBUILDDIR>>/nbconvert/exporters/html.py", line 18, in <module>
> from nbconvert.filters.highlight import Highlight2HTML
> File "/<<PKGBUILDDIR>>/nbconvert/filters/__init__.py", line 6, in <module>
> from .markdown import *
> File "/<<PKGBUILDDIR>>/nbconvert/filters/markdown.py", line 13, in <module>
> from .markdown_mistune import markdown2html_mistune
> File "/<<PKGBUILDDIR>>/nbconvert/filters/markdown_mistune.py", line 31, in <module>
> class MathBlockGrammar(mistune.BlockGrammar):
> AttributeError: module 'mistune' has no attribute 'BlockGrammar'
>
> make[1]: *** [debian/rules:26: override_dh_sphinxdoc] Error 2


The full build log is available from:
http://qa-logs.debian.net/2021/12/20/nbconvert_6.1.0-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Gordon Ball

unread,
Jan 9, 2022, 4:20:03 PM1/9/22
to
On Sun, Jan 09, 2022 at 11:47:47AM -0500, Sandro Tosi wrote:
> Gordon,
>
> > [ Gordon Ball ]
> > * Vendor mistune 0.8.4 due to incompatibility with mistune 2
> > (Closes: #1001283, #1002372)
>
> i think you closed *all* the mistune bugs by doing this. can you
> reopen the ones not affecting nbconvert so that we dont lose track of
> them?

Hi Sandro

I _think_ the closed bugs (#1001283 was merged with 6 others) only cover
the cases where the FTBFS tracebacks showed nbconvert (rather than
direct import of mistune). I haven't admittedly tried rebuilding them
all, but given the failure mode, I think the bug was correctly merged
and they're likely to be fixed.

* #1002371 python-fluids
* #1002373 python-fabio
* #1002374 silx
* #1002375 mdtraj
* #1002383 pyswarms
* #1002790 statsmodels

The main tracking bug for mistune (#1001591) should still be open, along
with related bugs for packages which imported mistune directly (#1002163
python-m2r, #1002254 lookatme, #1002380 python-matrix-nio).

Am I missing anything else which was wrongly closed?

>
> Thanks,
> --
> Sandro "morph" Tosi
> My website: http://sandrotosi.me/
> Me at Debian: http://wiki.debian.org/SandroTosi
> Twitter: https://twitter.com/sandrotosi

Sandro Tosi

unread,
Jan 9, 2022, 6:30:03 PM1/9/22
to
> I _think_ the closed bugs (#1001283 was merged with 6 others) only cover
> the cases where the FTBFS tracebacks showed nbconvert (rather than
> direct import of mistune).

you're right, i've mis-read them -- thanks for checking!
0 new messages