[Slackbuilds-users] Had to revert python3-mistune to build python-m2r

Duncan Roe duncan_roe at optusnet.com.au
Mon Jan 23 01:27:32 UTC 2023


Hi,

python-m2r says it requires python2-mistune but it also seems to require
python3-mistune or maybe only uses it if available.

python3-mistune is at 2.0.4 while python2-mistune is at 0.8.4. python-m2r for
python3 gets build error

> ++ python3 setup.py install --root=/tmp/SBo/package-python-m2r
> Traceback (most recent call last):
>   File "/tmp/SBo/m2r-0.2.1/setup.py", line 14, in <module>
>     from m2r import parse_from_file
>   File "/tmp/SBo/m2r-0.2.1/m2r.py", line 59, in <module>
>     class RestBlockGrammar(mistune.BlockGrammar):
> AttributeError: module 'mistune' has no attribute 'BlockGrammar'

Reverting python3-mistune to 0.8.4 allowed me to build python-m2r (/usr/bin/m2r
starts #!/usr/bin/python3).

Cheeers ... Duncan.


More information about the SlackBuilds-users mailing list